diff --git a/src/Avalonia.Controls/Grid.cs b/src/Avalonia.Controls/Grid.cs index 401c8a4d87..c46d221dff 100644 --- a/src/Avalonia.Controls/Grid.cs +++ b/src/Avalonia.Controls/Grid.cs @@ -35,7 +35,7 @@ namespace Avalonia.Controls /// public Grid() { - SetFlags((bool) ShowGridLinesProperty.GetDefaultValue(DependencyObjectType), Flags.ShowGridLinesPropertyValue); + SetFlags((bool) ShowGridLinesProperty.GetDefaultValue(AvaloniaObjectType), Flags.ShowGridLinesPropertyValue); } //------------------------------------------------------ @@ -700,8 +700,8 @@ namespace Avalonia.Controls /// /// protected internal override void OnVisualChildrenChanged( - DependencyObject visualAdded, - DependencyObject visualRemoved) + AvaloniaObject visualAdded, + AvaloniaObject visualRemoved) { CellsStructureDirty = true; @@ -2909,7 +2909,7 @@ namespace Avalonia.Controls /// /// /// - private static void OnShowGridLinesPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) + private static void OnShowGridLinesPropertyChanged(AvaloniaObject d, AvaloniaPropertyChangedEventArgs e) { Grid grid = (Grid)d; @@ -2925,7 +2925,7 @@ namespace Avalonia.Controls /// /// /// - private static void OnCellAttachedPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) + private static void OnCellAttachedPropertyChanged(AvaloniaObject d, AvaloniaPropertyChangedEventArgs e) { Visual child = d as Visual; @@ -2943,7 +2943,7 @@ namespace Avalonia.Controls } /// - /// + /// /// private static bool IsIntValueNotNegative(object value) { @@ -2951,7 +2951,7 @@ namespace Avalonia.Controls } /// - /// + /// /// private static bool IsIntValueGreaterThanZero(object value) { @@ -3306,8 +3306,8 @@ namespace Avalonia.Controls /// to true grid lines are drawn to visualize location /// of grid lines. /// - public static readonly DependencyProperty ShowGridLinesProperty = - DependencyProperty.Register( + public static readonly AvaloniaProperty ShowGridLinesProperty = + AvaloniaProperty.Register( "ShowGridLines", typeof(bool), typeof(Grid), @@ -3326,9 +3326,9 @@ namespace Avalonia.Controls /// should have Column property set to 0. /// Default value for the property is 0. /// - [CommonDependencyProperty] - public static readonly DependencyProperty ColumnProperty = - DependencyProperty.RegisterAttached( + [CommonAvaloniaProperty] + public static readonly AvaloniaProperty ColumnProperty = + AvaloniaProperty.RegisterAttached( "Column", typeof(int), typeof(Grid), @@ -3348,9 +3348,9 @@ namespace Avalonia.Controls /// Default value for the property is 0. /// /// - [CommonDependencyProperty] - public static readonly DependencyProperty RowProperty = - DependencyProperty.RegisterAttached( + [CommonAvaloniaProperty] + public static readonly AvaloniaProperty RowProperty = + AvaloniaProperty.RegisterAttached( "Row", typeof(int), typeof(Grid), @@ -3369,9 +3369,9 @@ namespace Avalonia.Controls /// /// Default value for the property is 1. /// - [CommonDependencyProperty] - public static readonly DependencyProperty ColumnSpanProperty = - DependencyProperty.RegisterAttached( + [CommonAvaloniaProperty] + public static readonly AvaloniaProperty ColumnSpanProperty = + AvaloniaProperty.RegisterAttached( "ColumnSpan", typeof(int), typeof(Grid), @@ -3390,9 +3390,9 @@ namespace Avalonia.Controls /// /// Default value for the property is 1. /// - [CommonDependencyProperty] - public static readonly DependencyProperty RowSpanProperty = - DependencyProperty.RegisterAttached( + [CommonAvaloniaProperty] + public static readonly AvaloniaProperty RowSpanProperty = + AvaloniaProperty.RegisterAttached( "RowSpan", typeof(int), typeof(Grid), @@ -3405,8 +3405,8 @@ namespace Avalonia.Controls /// /// IsSharedSizeScope property marks scoping element for shared size. /// - public static readonly DependencyProperty IsSharedSizeScopeProperty = - DependencyProperty.RegisterAttached( + public static readonly AvaloniaProperty IsSharedSizeScopeProperty = + AvaloniaProperty.RegisterAttached( "IsSharedSizeScope", typeof(bool), typeof(Grid),