0

I have this XAML in my RadDataGrid that changes the background color of a selected row to red based on the value returned by the ValidateModuleBank property defined in my model.

<tg:RadDataGrid.Resources>
  <Style TargetType="gridPrimitives:SelectionRegionBackgroundControl">
   <Setter Property="Background" Value="{Binding ValidateModuleBank,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
  </Style>
</tg:RadDataGrid.Resources>

I looked online and it says that UWP does not support binding to a property in a style. So, how can I achieve this?

Thanks in advance for your help.

Vivek Verma
  • 333
  • 3
  • 13

0 Answers0