1
Answer

i want wpf listbox item text scrolling when listboxitem widt

Ask a question
naresh naresh

naresh naresh

11y
1.8k
1
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)