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
255
How to expand/collapse all the xamwebtree items
posted

Hey, I need to expand all the nodes of the tree to it's latest "child" when it finishes loading, how can i do that? any help would be appreciated. I'm loading it in code behind with a C# recursive function, not in xaml template.

regards,

Paul.

Parents
No Data
Reply
  • 745
    Verified Answer
    posted

    One way is to define a style for the XamWebTreeItem and set the IsExpanded property to True;

    <ig:XamWebTree>
       <ig:XamWebTree.ItemContainerStyle>
            <Style TargetType="ig:XamWebTreeItem">
                 <Setter Property="IsExpanded" Value="True"/>
            </Style>
       </ig:XamWebTree.ItemContainerStyle>           
    </ig:XamWebTree>

Children