How to handle whitespace in DataTrigger binding for WPF DataGrid?
问题 I am using autogenerating datagrid and binding it to a DataTable.This DataTable has columns with whitespaces like 'Last Value'. Now I need to add a datatrigger to apply some style as shown below: <DataGrid.Resources> <Style x:Key="DgStyle" TargetType="{x:Type TextBlock}"> <Setter Property="TextAlignment" Value="Right"/> <Style.Triggers> <DataTrigger Binding="{Binding Last Value, Converter= {StaticResource DecimalToBoolConverter}}" Value="True"> <Setter Property="Foreground" Value="Red" /> <