|
|
|
@ -29,7 +29,7 @@ namespace Avalonia.Controls |
|
|
|
/// <summary>
|
|
|
|
/// Initializes a new instance of the <see cref="RowDefinition"/> class.
|
|
|
|
/// </summary>
|
|
|
|
public RowDefinition() |
|
|
|
public RowDefinition() |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
@ -38,7 +38,7 @@ namespace Avalonia.Controls |
|
|
|
/// </summary>
|
|
|
|
/// <param name="value">The height of the row.</param>
|
|
|
|
/// <param name="type">The height unit of the column.</param>
|
|
|
|
public RowDefinition(double value, GridUnitType type) |
|
|
|
public RowDefinition(double value, GridUnitType type) |
|
|
|
{ |
|
|
|
Height = new GridLength(value, type); |
|
|
|
} |
|
|
|
@ -47,7 +47,7 @@ namespace Avalonia.Controls |
|
|
|
/// Initializes a new instance of the <see cref="RowDefinition"/> class.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="height">The height of the column.</param>
|
|
|
|
public RowDefinition(GridLength height) |
|
|
|
public RowDefinition(GridLength height) |
|
|
|
{ |
|
|
|
Height = height; |
|
|
|
} |
|
|
|
@ -62,8 +62,15 @@ namespace Avalonia.Controls |
|
|
|
/// </summary>
|
|
|
|
public double MaxHeight |
|
|
|
{ |
|
|
|
get { return GetValue(MaxHeightProperty); } |
|
|
|
set { SetValue(MaxHeightProperty, value); } |
|
|
|
get |
|
|
|
{ |
|
|
|
return GetValue(MaxHeightProperty); |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
Parent?.InvalidateMeasure(); |
|
|
|
SetValue(MaxHeightProperty, value); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
@ -71,8 +78,15 @@ namespace Avalonia.Controls |
|
|
|
/// </summary>
|
|
|
|
public double MinHeight |
|
|
|
{ |
|
|
|
get { return GetValue(MinHeightProperty); } |
|
|
|
set { SetValue(MinHeightProperty, value); } |
|
|
|
get |
|
|
|
{ |
|
|
|
return GetValue(MinHeightProperty); |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
Parent?.InvalidateMeasure(); |
|
|
|
SetValue(MinHeightProperty, value); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
@ -80,12 +94,19 @@ namespace Avalonia.Controls |
|
|
|
/// </summary>
|
|
|
|
public GridLength Height |
|
|
|
{ |
|
|
|
get { return GetValue(HeightProperty); } |
|
|
|
set { SetValue(HeightProperty, value); } |
|
|
|
get |
|
|
|
{ |
|
|
|
return GetValue(HeightProperty); |
|
|
|
} |
|
|
|
set |
|
|
|
{ |
|
|
|
Parent?.InvalidateMeasure(); |
|
|
|
SetValue(HeightProperty, value); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
internal override GridLength UserSizeValueCache => this.Height; |
|
|
|
internal override double UserMinSizeValueCache => this.MinHeight; |
|
|
|
internal override double UserMaxSizeValueCache => this.MaxHeight; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|