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