|
|
@ -2740,12 +2740,12 @@ namespace Avalonia.Controls |
|
|
public static readonly AttachedProperty<int> ColumnProperty = |
|
|
public static readonly AttachedProperty<int> ColumnProperty = |
|
|
AvaloniaProperty.RegisterAttached<Grid, Control, int>( |
|
|
AvaloniaProperty.RegisterAttached<Grid, Control, int>( |
|
|
"Column", |
|
|
"Column", |
|
|
defaultValue: 0, |
|
|
defaultValue: 0/*, |
|
|
validate: (_, v) => |
|
|
validate: (_, v) => |
|
|
{ |
|
|
{ |
|
|
if (v >= 0) return v; |
|
|
if (v >= 0) return v; |
|
|
else throw new ArgumentException("Invalid Grid.Column value."); |
|
|
else throw new ArgumentException("Invalid Grid.Column value."); |
|
|
}); |
|
|
}*/); |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Row property. This is an attached property.
|
|
|
/// Row property. This is an attached property.
|
|
|
@ -2761,12 +2761,12 @@ namespace Avalonia.Controls |
|
|
public static readonly AttachedProperty<int> RowProperty = |
|
|
public static readonly AttachedProperty<int> RowProperty = |
|
|
AvaloniaProperty.RegisterAttached<Grid, Control, int>( |
|
|
AvaloniaProperty.RegisterAttached<Grid, Control, int>( |
|
|
"Row", |
|
|
"Row", |
|
|
defaultValue: 0, |
|
|
defaultValue: 0/*, |
|
|
validate: (_, v) => |
|
|
validate: (_, v) => |
|
|
{ |
|
|
{ |
|
|
if (v >= 0) return v; |
|
|
if (v >= 0) return v; |
|
|
else throw new ArgumentException("Invalid Grid.Row value."); |
|
|
else throw new ArgumentException("Invalid Grid.Row value."); |
|
|
}); |
|
|
}*/); |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// ColumnSpan property. This is an attached property.
|
|
|
/// ColumnSpan property. This is an attached property.
|
|
|
@ -2781,12 +2781,12 @@ namespace Avalonia.Controls |
|
|
public static readonly AttachedProperty<int> ColumnSpanProperty = |
|
|
public static readonly AttachedProperty<int> ColumnSpanProperty = |
|
|
AvaloniaProperty.RegisterAttached<Grid, Control, int>( |
|
|
AvaloniaProperty.RegisterAttached<Grid, Control, int>( |
|
|
"ColumnSpan", |
|
|
"ColumnSpan", |
|
|
defaultValue: 1, |
|
|
defaultValue: 1/*, |
|
|
validate: (_, v) => |
|
|
validate: (_, v) => |
|
|
{ |
|
|
{ |
|
|
if (v >= 1) return v; |
|
|
if (v >= 1) return v; |
|
|
else throw new ArgumentException("Invalid Grid.ColumnSpan value."); |
|
|
else throw new ArgumentException("Invalid Grid.ColumnSpan value."); |
|
|
}); |
|
|
}*/); |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// RowSpan property. This is an attached property.
|
|
|
/// RowSpan property. This is an attached property.
|
|
|
@ -2801,12 +2801,12 @@ namespace Avalonia.Controls |
|
|
public static readonly AttachedProperty<int> RowSpanProperty = |
|
|
public static readonly AttachedProperty<int> RowSpanProperty = |
|
|
AvaloniaProperty.RegisterAttached<Grid, Control, int>( |
|
|
AvaloniaProperty.RegisterAttached<Grid, Control, int>( |
|
|
"RowSpan", |
|
|
"RowSpan", |
|
|
defaultValue: 1, |
|
|
defaultValue: 1/*, |
|
|
validate: (_, v) => |
|
|
validate: (_, v) => |
|
|
{ |
|
|
{ |
|
|
if (v >= 1) return v; |
|
|
if (v >= 1) return v; |
|
|
else throw new ArgumentException("Invalid Grid.RowSpan value."); |
|
|
else throw new ArgumentException("Invalid Grid.RowSpan value."); |
|
|
}); |
|
|
}*/); |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// IsSharedSizeScope property marks scoping element for shared size.
|
|
|
/// IsSharedSizeScope property marks scoping element for shared size.
|
|
|
|