TreeListBox items horizontal scrolling

Grids for WPF Forum

Posted 1 year ago by Hagay
Version: 17.2.0663
Avatar

Hi,

 

Is there a way to disable the horizontal-scroller of the TreeListBox?

 

My intention is that items that exceed the boundaries of the TreeListBox will be cropped.

However, ideally, because my items present text only, I'd like to have '...' at the end of the presented text and the entire text in a tooltip.

Is there a good way to achieve that with your control and its facilities?

 

Thanks in advance!

Comments (2)

Posted 1 year ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

What if you set the ScrollViewer.HorizontalScrollBarVisibility attached property on TreeListBox to Disabled?

And if you use the AdvancedTextBlock class in our Shared Library in place of a TextBlock in your item DataTemplate, it will automatically show ellipses and show a tooltip when needed for overflow.


Actipro Software Support

Posted 1 year ago by Hagay
Avatar

Just Perfect!!!

Thanks allot :)

The latest build of this product (v2018.1 build 0675) was released 13 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.