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
1750
xamTile: binding of AllowMaximize and MaximizeButtonVisibility
posted

Hello!

 

I am using the xamTilemanager to visualize some data. Depending on a property of the displayed data I don not want the user to be able to resize/maximize the tile and I do not want to display the MaximizeButton as on some object of the bound itemsource no further information is found that the user needs.

<ig:XamTileManager ItemsSource="{Binding Directories}" x:Name="DirectoryTiles" >
  <ig:XamTileManager.Resources>
    <Style TargetType="{x:Type ig:XamTile}">
      <Setter Property="AllowMaximize" Value="{Binding IsDirectory, Converter={StaticResource InvertedBoolToEnabledConverter}}" />
      <Setter Property="MaximizeButtonVisibility" Value="{Binding IsDirectory, Converter={StaticResource InvertedBoolToVisibilityConverter}}" />
    Style>   ig:XamTileManager.Resources>

When I get into the view, I see in the output window the warning that the property "IsDirectory" was not found in my viewModel.

Why is the xamTile referencing to the viewModel and not the bound data item? How can I achieve this functionality?

 Edit: Rewrite of thread title