[Question] [DataGrid] Binding RowStyle Foreground/Background #4186
Labels
by design
DataGrid 🔠
Issues on DataGrid control
question ❔
Issues or PR require more information
sdkcheck 🏁
wontfix ❌
Discontinued Issues or PR
I'm new to UWP, coming from WPF.
I'm struggling to bind the DataGrid's
RowStyle
Foreground
(andBackground
) properties. The scenario is a log message viewer where the row color indicates the log message severity.The above produces a
NullReferenceException
inDataGridRow.EnsureForeground()
. Examining the code, it's hard to see where the null reference might be coming from.This similar issue on SO has an answer that suggests that this is not possible with UWP / DataGrid, though the explanation is wanting. That's hard to believe, but perhaps I'm missing some fundamental limitation here.
Any help is appreciated.
Toolkit: 7.0.2
Windows: 1909
The text was updated successfully, but these errors were encountered: