From 25af4dfd3ccf1675af64bc748f41cd3ded11cbc9 Mon Sep 17 00:00:00 2001 From: Edward Miller Date: Tue, 7 Feb 2023 23:27:25 -0600 Subject: [PATCH 1/2] specify x:DataType --- Maui.DataGrid/DataGrid.xaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Maui.DataGrid/DataGrid.xaml b/Maui.DataGrid/DataGrid.xaml index 76091f1..6b4457f 100644 --- a/Maui.DataGrid/DataGrid.xaml +++ b/Maui.DataGrid/DataGrid.xaml @@ -4,6 +4,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:Maui.DataGrid;assembly=Maui.DataGrid" x:Class="Maui.DataGrid.DataGrid" + x:DataType="local:DataGrid" CompressedLayout.IsHeadless="True"> From 72d2e4ff55744f661f28f269cc2a3fe54e66bfa8 Mon Sep 17 00:00:00 2001 From: Edward Miller Date: Tue, 7 Feb 2023 23:27:28 -0600 Subject: [PATCH 2/2] Reclaim some horizontal space by removing x: prefixes --- Maui.DataGrid/DataGrid.xaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Maui.DataGrid/DataGrid.xaml b/Maui.DataGrid/DataGrid.xaml index 6b4457f..653a8ba 100644 --- a/Maui.DataGrid/DataGrid.xaml +++ b/Maui.DataGrid/DataGrid.xaml @@ -16,7 +16,7 @@ - + @@ -36,17 +36,17 @@ - - + SelectionMode="{Binding SelectionEnabled, Source={Reference self}, Converter={StaticResource boolToSelectionMode}}" > + HeightRequest="{Binding RowHeight, Source={Reference self}, Mode=OneTime}" />