Posted 27 March 2021, 5:17 pm EST
Hello.
.NET5 WPF FlexGrid has no CellStyle.
How apply a style to column, instead of “CellStyle=”{StaticResource ColumnStyle}" ?
In this code, TextBlock’s Style Binding is better?
<c1:FlexGrid>
<c1:FlexGrid.Columns>
<c1:GridColumn>
<c1:GridColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding Path=Text1}" />
</DataTemplate>
</c1:GridColumn.CellTemplate>
<c1:GridColumn.CellEditingTemplate>
<DataTemplate>
<TextBox Text="{Binding Text1}" />
</DataTemplate>
</c1:GridColumn.CellEditingTemplate>
</c1:GridColumn>
</c1:FlexGrid.Columns>
</c1:FlexGrid>