How to convert that WPF XAML code to Silverlight XAML version?
<DataGrid.RowStyle>
<Style TargetType="{x:Type DataGridRow}">
<Style.Triggers>
<DataTrigger Binding="{Binding IsDeleted}" Value="True">
<Setter Property="Visibility" Value="Collapsed"/>
</DataTrigger>
</Style.Triggers>
</Style>
</DataGrid.RowStyle>
I found that I have to apply Interaction.Triggers
but it is unclear how to do it practically. (code sample)
I have added two references are
xmlns:ia="clr-namespace:Microsoft.Expression.Interactivity.Core;assembly=Microsoft.Expression.Interactions"
xmlns:iv="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
And I am at point to finish it but I am not sure how...
<sdk:DataGrid.RowStyle>
<Style TargetType="sdk:DataGridRow">
<iv:Interaction.Triggers>
<ia:DataTrigger Binding="{Binding IsDeleted}" Value="True" >
???? What should be done here?
</ia:DataTrigger>
</iv:Interaction.Triggers>
</Style>
</sdk:DataGrid.RowStyle>
Thanks for help!
P.S. It seems like I got something but it is not working...
<sdk:DataGrid.RowStyle>
<Style TargetType="sdk:DataGridRow">
<iv:Interaction.Triggers>
<ia:DataTrigger Binding="{Binding IsDeleted}" Value="True" >
<ia:ChangePropertyAction PropertyName="Visibility" >
<ia:ChangePropertyAction.Value>
<Visibility>Collapsed</Visibility>
</ia:ChangePropertyAction.Value>
</ia:ChangePropertyAction>
</ia:DataTrigger>
</iv:Interaction.Triggers>
</Style>
</sdk:DataGrid.RowStyle>