naresh naresh

naresh naresh

  • NA
  • 69
  • 15.6k

i want wpf listbox item text scrolling when listboxitem widt

Aug 3 2013 6:58 AM
i want is  i have a list-box with data template as text-block  and i am binding observable collection of some strings . if any listboxitem is greater than list-box width  i want to show ending of list-box item as "..." . for example : thisisastring... (normal behavior) . but when i mouse on any item it has to check the condition and  if listboxitem is greater than list-box width then  it should scroll on mouse enter and mouse leave events [ the list-box item should scroll from left to right and right to left with a duration of 0:0:5).

Answers (1)