I have a WPF Caliburn.Micro application. I used to have there a DataGrid, and here is a part of the code:
<DataGrid x:Name="FirstEntries" Grid.Row="5"
AutoGenerateColumns="False"
BaseControls:DataGridExtension.Columns="{Binding FirstEntryGridColumns}"
CanUserAddRows="False" IsReadOnly="True"
SelectedItem="{Binding Path=SelectedFirstEntry}">
<DataGrid.Resources>
<conv:StatusToBackgroundColorConverter x:Key="StatusToBackgroundColor"/>
</DataGrid.Resources>
<DataGrid.ItemContainerStyle>
<Style TargetType="{x:Type DataGridRow}">
<Style.Setters>
<Setter Property="Background" Value="{Binding Path=Status, Converter={StaticResource StatusToBackgroundColor}}"></Setter>
<Setter Property="cal:Message.Attach" Value="[Event MouseDoubleClick] = [Action OnDoubleClickFirstEntry($dataContext)]"/>
</Style.Setters>
</Style>
</DataGrid.ItemContainerStyle>
You can see that each row's background color is bound to Status field value, and a double-click event is handled. Now I am migrating to ComponentOne's FlexGrid, and I don't know how I can achieve the same there, as FlexGrid doesn't seem to know ItemContainerStyle.
Could you please help me with this? Thanks.