Hi. I have unique resource file where I want to add a stye for a DataRow. My application supports TableView and CardView. The problem is that I would like to have both Styles for the same object and applied automatically when the Grid's View changes to any of the views.. The problem is that I can not make it work. Can anybody help me Please. I found a post about ThemeKey extension, but I don't know if it is a Xceed bug.
My code looks like this for the CardView Style:
<Style x:Key="DataRowCardViewRow" TargetType="xcdg:DataRow">
<Setter Property="SelectionBackground" Value="Red"/>
</Style>
<Style x:Key="{markup:ThemeKey TargetViewType=views:CardView, TargetElementType=xcdg:DataRow}"
TargetType="xcdg:DataRow"
BasedOn="{StaticResource DataRowCardViewRow}"/>