Skip to content

Commit

Permalink
fix declaring type
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Miller committed Dec 27, 2023
1 parent 69e1d3e commit bec8c9e
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Maui.DataGrid/DataGridColumn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public event EventHandler SizeChanged
#region Bindable Properties

public static readonly BindableProperty WidthProperty =
BindablePropertyExtensions.Create<DataGrid, GridLength>(GridLength.Star,
BindablePropertyExtensions.Create<DataGridColumn, GridLength>(GridLength.Star,
propertyChanged: (b, o, n) =>
{
if (!o.Equals(n) && b is DataGridColumn self)
Expand All @@ -57,18 +57,18 @@ public event EventHandler SizeChanged
});

public static readonly BindableProperty TitleProperty =
BindablePropertyExtensions.Create<DataGrid, string>(string.Empty,
BindablePropertyExtensions.Create<DataGridColumn, string>(string.Empty,
propertyChanged: (b, _, n) => ((DataGridColumn)b).HeaderLabel.Text = n);

public static readonly BindableProperty FormattedTitleProperty =
BindablePropertyExtensions.Create<DataGrid, FormattedString>(
BindablePropertyExtensions.Create<DataGridColumn, FormattedString>(
propertyChanged: (b, _, n) => ((DataGridColumn)b).HeaderLabel.FormattedText = n);

public static readonly BindableProperty PropertyNameProperty =
BindablePropertyExtensions.Create<DataGrid, string>();
BindablePropertyExtensions.Create<DataGridColumn, string>();

public static readonly BindableProperty IsVisibleProperty =
BindablePropertyExtensions.Create<DataGrid, bool>(true,
BindablePropertyExtensions.Create<DataGridColumn, bool>(true,
propertyChanged: (b, o, n) =>
{
if (o != n && b is DataGridColumn column)
Expand All @@ -86,28 +86,28 @@ public event EventHandler SizeChanged
});

public static readonly BindableProperty StringFormatProperty =
BindablePropertyExtensions.Create<DataGrid, string>();
BindablePropertyExtensions.Create<DataGridColumn, string>();

public static readonly BindableProperty CellTemplateProperty =
BindablePropertyExtensions.Create<DataGrid, DataTemplate>();
BindablePropertyExtensions.Create<DataGridColumn, DataTemplate>();

public static readonly BindableProperty EditCellTemplateProperty =
BindablePropertyExtensions.Create<DataGrid, DataTemplate>();
BindablePropertyExtensions.Create<DataGridColumn, DataTemplate>();

public static readonly BindableProperty LineBreakModeProperty =
BindablePropertyExtensions.Create<DataGrid, LineBreakMode>(LineBreakMode.WordWrap);
BindablePropertyExtensions.Create<DataGridColumn, LineBreakMode>(LineBreakMode.WordWrap);

public static readonly BindableProperty HorizontalContentAlignmentProperty =
BindablePropertyExtensions.Create<DataGrid, LayoutOptions>(LayoutOptions.Center);
BindablePropertyExtensions.Create<DataGridColumn, LayoutOptions>(LayoutOptions.Center);

public static readonly BindableProperty VerticalContentAlignmentProperty =
BindablePropertyExtensions.Create<DataGrid, LayoutOptions>(LayoutOptions.Center);
BindablePropertyExtensions.Create<DataGridColumn, LayoutOptions>(LayoutOptions.Center);

public static readonly BindableProperty SortingEnabledProperty =
BindablePropertyExtensions.Create<DataGrid, bool>(true);
BindablePropertyExtensions.Create<DataGridColumn, bool>(true);

public static readonly BindableProperty HeaderLabelStyleProperty =
BindablePropertyExtensions.Create<DataGrid, Style>(
BindablePropertyExtensions.Create<DataGridColumn, Style>(
propertyChanged: (b, o, n) =>
{
if (o != n && b is DataGridColumn self && self.HeaderLabel != null)
Expand Down

0 comments on commit bec8c9e

Please sign in to comment.