Closed postrondev closed 2 months ago
I honestly don't see a bug here? From the source it looks like a style should be able to override the margin. So what's your expectation here?
Off topic: Also please be kind in your comments. People try to help you in their free time. So even if the answer doesn't help you, it's still worth a thank you imo.
Padding is forced to be 12,0,0,0. Why fixed? Alignment is set to center. Why fixed.
It's not "fixed" - you can edit it. What kind of "un-fixed" do you expect? As mentioned above, you can fully or partially restyle DataGrid.
Do NOT answer with snippets nobody knows where or how to use.
I have to, because otherwise I have no clue what you even expect. Even more, other developers might find this issue looking for an actual snippet.
<DataGrid>
<DataGrid.ColumnHeaderTheme>
<ControlTheme TargetType="DataGridColumnHeader" BasedOn="{StaticResource {x:Type DataGridColumnHeader}}">
<Setter Property="Padding" Value="0" />
<Setter Property="VerticalContentAlignment" Value="Top" />
</ControlTheme>
</DataGrid.ColumnHeaderTheme>
</DataGrid>
You can reuse this, apply globally on all headers or use in a single data grid.
Describe the bug
I consider this as bug, not having control over content. Padding is forced to be 12,0,0,0. Why fixed? Alignment is set to center. Why fixed.
To Reproduce
App.Xaml
Expected behavior
I see no reason to forbid developers to make there own choices how to style there ui.
PLEASE!!!!!!!!!!!!!!!!!!!!!!!!!!
Do NOT answer with snippets nobody knows where or how to use. I have spend hours with nonsense answers without any context.
Avalonia version
11.1.0
OS
No response
Additional context
No response