Repository navigation
|
For example, when I do I lose all margins and possibly other styles that are present when I do Is there a way to inherit the default style somehow? |
Replies: 2 comments 1 reply
|
The difference you're seeing is by design.
To achieve consistent styling, you need to manually apply the same margins and other properties in your template. Here's an example: <tv:TableViewTemplateColumn Header="Quantity">
<tv: TableViewTemplateColumn.CellTemplate>
<DataTemplate x:DataType="qi:QItem">
<TextBlock
Text="{Binding Quantity}"
Margin="12,0,12,0" />
</DataTemplate>
</tv:TableViewTemplateColumn.CellTemplate>
</tv:TableViewTemplateColumn> |
|
TableView doesn't support IL trimming for the columns except the template column. The reason is other columns use traditional binding to work and these binding doesn't support IL trimming or native AOT. When you use template column you define a display element with x:Bind and it works when you compile with aot. Template columns cannot inherit any kind of display or editing element styles from other columns and they never should. |
TableView doesn't support IL trimming for the columns except the template column. The reason is other columns use traditional binding to work and these binding doesn't support IL trimming or native AOT. When you use template column you define a display element with x:Bind and it works when you compile with aot. Template columns cannot inherit any kind of display or editing element styles from other columns and they never should.