I'm trying to bind the TileViewItem's visibility to a menu so that the user can filter which tiles to show, but the binding stops working after the first filter.
With this line uncommented, it works perfectly the first time TileVisibility is changed, then crashes for subsequent changes.
As a test, I also tried binding to the visibility of the content control, and this works. The content of the tiles is hidden or shown correctly based on the filter and never crashes.
What's wrong with the way I'm trying to bind the item visibility?
Thanks
With this line uncommented, it works perfectly the first time TileVisibility is changed, then crashes for subsequent changes.
<
telerik:ContainerBindingCollection
x:Key
=
"ContainerBindingCollection"
>
<
telerik:ContainerBinding
PropertyName
=
"TileState"
Binding
=
"{Binding ContentState, Mode=TwoWay, Converter={StaticResource tileStateConverter}}"
/>
<!--<telerik:ContainerBinding PropertyName="Visibility" Binding="{Binding TileVisibility}" />-->
</
telerik:ContainerBindingCollection
>
<
DataTemplate
x:Key
=
"TileViewItemTemplate"
telerik:ContainerBinding.ContainerBindings
=
"{StaticResource ContainerBindingCollection}"
>
...
</
DataTemplate
>
As a test, I also tried binding to the visibility of the content control, and this works. The content of the tiles is hidden or shown correctly based on the filter and never crashes.
<
DataTemplate
x:Key
=
"TileViewContentTemplate"
>
<
telerik:RadFluidContentControl
Visibility
=
"{Binding TileVisibility}"
ContentChangeMode
=
"Manual"
TransitionDuration
=
"0:0:0"
State
=
"{Binding ContentState, Converter={StaticResource fluidContentStateConverter}}"
>
...
</
telerik:RadFluidContentControl
>
</
DataTemplate
>
What's wrong with the way I'm trying to bind the item visibility?
Thanks