Can only base on a Style with target type that is base type 'DataGrid'
<Setter Property="Visibility" Value="Collapsed"/> <Style.Triggers> <DataTrigger Binding="{Binding ShowDataRow}" Value="False"> <Setter Property="Visibility" Value="Collapsed"/> </datatrigger> <DataTrigger Binding="{Binding ShowDataRow}" Value="True"> <Setter Property="Visibility" Value="Visible"/> </datatrigger> </style.Triggers> <Style.Triggers> <DataTrigger Binding="{Binding IsDeviceConnected}" Value="True"> <Setter Property="IsEnabled" Value="False"/> </datatrigger> <DataTrigger Binding="{Binding IsDeviceConnected}" Value="False"> <Setter Property="IsEnabled" Value="True"/> </datatrigger> </style.Triggers>
<datagrid style="{StaticResource DataGridEnableStyle}">
TargetType="DataGrid"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)