Hello,
I'm using the RadPanelBar in an application who use the MVVM pattern with the following binding on the ItemSource property:
with a hierarchicaldatatemplate:
where the ItemTemplate is a custom UserControl.
I need to bind the property IsEnabled of each one of the PanelBarItems inside the collection, but I'm not able to do that. Can you please give me some hints?
Thanks,
Flavio
I'm using the RadPanelBar in an application who use the MVVM pattern with the following binding on the ItemSource property:
<
telerikNavigation:RadPanelBar
Grid.Row
=
"1"
Margin
=
"10"
telerik:StyleManager.Theme
=
"Windows7"
x:Name
=
"pbPanels"
ItemsSource
=
"{Binding NavigationsPanelItems}"
SelectedItem
=
"{Binding SelectedPanelItem, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
DisplayMemberPath
=
"DisplayName"
>
</
telerikNavigation:RadPanelBar
>
with a hierarchicaldatatemplate:
<
HierarchicalDataTemplate
DataType
=
"{x:Type vm:TPNavigationGeneralInfoViewModel}"
ItemTemplate
=
"{StaticResource pbiGeneralInfoTemplate}"
ItemsSource
=
"{Binding PanelBarContent}"
>
<
TextBlock
Text
=
"{Binding DisplayName}"
Height
=
"20"
Margin
=
"5 2 5 2"
FontWeight
=
"Bold"
FontSize
=
"16"
/
</
HierarchicalDataTemplate
>
where the ItemTemplate is a custom UserControl.
I need to bind the property IsEnabled of each one of the PanelBarItems inside the collection, but I'm not able to do that. Can you please give me some hints?
Thanks,
Flavio