Hello,
How do I make a treeview word wrap? I have a very long header for a treeview item, and it displays a horizontal scroll bar instead of wrapping. Thanks for the help, hopefully this isn't something incredibly basic that I am missing...
You can try setting theTextWrapping property to theTextblock element used for the headers:
<igTree:XamWebTree x:Name="xamWebTree1" Width="200"> <igTree:XamWebTreeItem> <igTree:XamWebTreeItem.Header> <StackPanel> <TextBlock Text="Som looooong text that should be splitted in multiline " TextWrapping="Wrap" Width="120"/> </StackPanel> </igTree:XamWebTreeItem.Header> <igTree:XamWebTreeItem Header="A"/> <igTree:XamWebTreeItem Header="B"/> <igTree:XamWebTreeItem Header="C"/> </igTree:XamWebTreeItem></igTree:XamWebTree>
I hope this helps
-Vlad
I had set the TextWrapping property, but I guess because I never set a defined width it did not know to wrap. I was loading dynamically, and keeping my tree to stretch the whole screen, so I had to programmatically find the application's width and set the textblock's sizes to the width that way for it to work. Thanks for the help!!!