Skip to content

Commit

Permalink
Visual improvement for sorting icons
Browse files Browse the repository at this point in the history
  • Loading branch information
akgulebubekir committed Jan 30, 2023
1 parent 6dea861 commit 5c8e646
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Maui.DataGrid/DataGrid.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -700,12 +700,13 @@ private View GetHeaderViewForColumn(DataGridColumn column, int index)
if (IsSortable && column.SortingEnabled)
{
column.SortingIcon.Style = SortIconStyle ?? (Style)_headerView.Resources["SortIconStyle"];
column.SortingIconContainer.HeightRequest = HeaderHeight * 0.35;
column.SortingIconContainer.WidthRequest = HeaderHeight * 0.35;
column.SortingIconContainer.HeightRequest = HeaderHeight * 0.3;
column.SortingIconContainer.WidthRequest = HeaderHeight * 0.3;

var grid = new Grid
{
ColumnSpacing = 0,
Padding = new(0,0,4,0),
ColumnDefinitions = new()
{
new() { Width = new(1, GridUnitType.Star) },
Expand Down

0 comments on commit 5c8e646

Please sign in to comment.