Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I use a datagrid and write a style, for example DataGridCell.right. Add CellStyleClasses="right" to DataGridTextColumn, datagrid click the column header to sort, some cells can not be placed to the right normally. #16975

Open
AreYouTry opened this issue Sep 10, 2024 · 0 comments
Labels

Comments

@AreYouTry
Copy link

Describe the bug

When I use a datagrid and write a style, for example DataGridCell.right. Add CellStyleClasses="right" to DataGridTextColumn, datagrid click the column header to sort, some cells can not be placed to the right normally.

To Reproduce

this is code:

<DataGrid.Styles>
<Style Selector="DataGridRow">

</Style>
<Style Selector="DataGridCell.right">
<Style Selector="^ TextBlock">

</Style>
</Style>
</DataGrid.Styles>
<DataGrid.Columns>






</DataGrid.Columns>

排序之后无法靠右对齐

Expected behavior

No response

Avalonia version

11.2.x

OS

Windows

Additional context

No response

@AreYouTry AreYouTry added the bug label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant