Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
140
Word wrap
posted

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...

Parents
No Data
Reply
  • 9836
    Verified Answer
    posted

    Hello,

    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

Children