Replies: 1 comment 1 reply
-
I think By Property Matching is what you would want to use in the selector. <Style Selector="DataGridCell[IsReadOnly=true]">
<Setter Property="Background" Value="Red" />
</Style> |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use this code,but didn't work.
<Style Selector="DataGridCell"> <Setter Property="Background" Value="{Binding IsReadOnly, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=DataGridColumn},Converter={StaticResource BrushConvert}}"/> </Style>
Beta Was this translation helpful? Give feedback.
All reactions