// ----------------------------------------------------------------------- // // Copyright 2013 MIT Licence. See licence.md for more information. // // ----------------------------------------------------------------------- namespace Perspex.Controls { public class RowDefinition : DefinitionBase { public static readonly PerspexProperty MaxHeightProperty = PerspexProperty.Register("MaxHeight", double.PositiveInfinity); public static readonly PerspexProperty MinHeightProperty = PerspexProperty.Register("MinHeight"); public static readonly PerspexProperty HeightProperty = PerspexProperty.Register("Height", new GridLength(1, GridUnitType.Star)); public RowDefinition() { } public RowDefinition(double value, GridUnitType type) { this.Height = new GridLength(value, type); } public RowDefinition(GridLength height) { this.Height = height; } public double ActualHeight { get; internal set; } public double MaxHeight { get { return this.GetValue(MaxHeightProperty); } set { this.SetValue(MaxHeightProperty, value); } } public double MinHeight { get { return this.GetValue(MinHeightProperty); } set { this.SetValue(MinHeightProperty, value); } } public GridLength Height { get { return this.GetValue(HeightProperty); } set { this.SetValue(HeightProperty, value); } } } }