I'm trying to set the background of the RowSelector based on the value of a property in the underlying data (row) object.
Ideally I would want to do something like this:
<Style TargetType="{x:Type xcdg:RowSelector}">
<Style.Triggers>
<DataTrigger Binding="{Binding Path=IsInternal}" Value="True">
<Setter Property="Background" Value="DarkOrange" />
</DataTrigger>
</Style.Triggers>
</Style>
where IsInternal is a property on my data object. However, it seems I can't predict the data context of a RowSelector. Sometimes it's a Xceed.Wpf.DataGrid.DataRow, other times it's not.
Please advise.
-Alec.