Hi,
I am trying to bind "IsBrake" property of tabitem control with no luck.
I did same bindning to "IsEnabled" and it works.
I think that "IsBrake" is not dependancy property, am I right? if yes, could you please make it so.
Here is code:
Thanks, Alexey.
I am trying to bind "IsBrake" property of tabitem control with no luck.
I did same bindning to "IsEnabled" and it works.
I think that "IsBrake" is not dependancy property, am I right? if yes, could you please make it so.
Here is code:
<
UserControl
...
d:DesignHeight
=
"300"
d:DesignWidth
=
"400"
>
<
UserControl.Resources
>
<
telerik:ContainerBindingCollection
x:Key
=
"TabItemContainerBindings"
>
<
telerik:ContainerBinding
PropertyName
=
"IsBrake"
Binding
=
"{Binding IsBrake}"
/>
<
telerik:ContainerBinding
PropertyName
=
"IsEnabled"
Binding
=
"{Binding IsBrake}"
/>
</
telerik:ContainerBindingCollection
>
<
DataTemplate
x:Key
=
"TabItemTemplate"
telerik:ContainerBinding.ContainerBindings
=
"{StaticResource TabItemContainerBindings}"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
Text
=
"{Binding Name}"
/>
</
StackPanel
>
</
DataTemplate
>
</
UserControl.Resources
>
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"White"
>
<
Controls:RadTabControl
ItemsSource
=
"{Binding Children}"
ItemTemplate
=
"{StaticResource TabItemTemplate}"
/>
</
Grid
>
</
UserControl
>
Thanks, Alexey.