I am trying to binf isExpanded property, but the nodes dont expand on tree load ... xaml content:
<
UserControl.Resources
>
<
telerik:ContainerBindingCollection
x:Name
=
"BindingsCollection"
>
<
telerik:ContainerBinding
PropertyName
=
"IsExpanded"
Binding
=
"{Binding Expanded, Mode=TwoWay}"
/>
<
telerik:ContainerBinding
PropertyName
=
"IsSelected"
Binding
=
"{Binding Selected, Mode=TwoWay}"
/>
</
telerik:ContainerBindingCollection
>
<
telerik:HierarchicalDataTemplate
x:Key
=
"test"
ItemsSource
=
"{Binding Children}"
telerik:ContainerBinding.ContainerBindings
=
"{StaticResource BindingsCollection}"
>
<
TextBlock
Text
=
"{Binding DisplayName}"
/>
</
telerik:HierarchicalDataTemplate
>
<
telerik:HierarchicalDataTemplate
x:Key
=
"Children"
ItemsSource
=
"{Binding Children}"
telerik:ContainerBinding.ContainerBindings
=
"{StaticResource BindingsCollection}"
>
<
TextBlock
Text
=
"{Binding DisplayName}"
/>
</
telerik:HierarchicalDataTemplate
>
</
UserControl.Resources
>
<
localcontrols:RadTreeView
IsLineEnabled
=
"True"
IsEditable
=
"False"
Grid.Row
=
"0"
Grid.Column
=
"0"
MinWidth
=
"300"
x:Name
=
"TreeListView"
Background
=
"White"
ItemTemplate
=
"{StaticResource test}"
ScrollViewer.HorizontalScrollBarVisibility
=
"Auto"
ScrollViewer.VerticalScrollBarVisibility
=
"Auto"
IsExpandOnSingleClickEnabled
=
"False"
IsExpandOnDblClickEnabled
=
"True"
SelectionChanged
=
"TreeListView_SelectionChanged"
Expanded
=
"TreeListView_Expanded"
PreviewExpanded
=
"TreeListView_PreviewExpanded"
IsLoadOnDemandEnabled
=
"True"
LoadOnDemand
=
"TreeListView_LoadOnDemand"
/>
Thanks