Browse Source

Added DesiredSize as a readonly PP.

pull/403/head
Steven Kirk 11 years ago
parent
commit
928e159aba
  1. 8
      src/Perspex.Layout/Layoutable.cs

8
src/Perspex.Layout/Layoutable.cs

@ -66,6 +66,12 @@ namespace Perspex.Layout
/// </summary>
public class Layoutable : Visual, ILayoutable
{
/// <summary>
/// Defines the <see cref="DesiredSize"/> property.
/// </summary>
public static readonly PerspexProperty<Size> DesiredSizeProperty =
PerspexProperty.RegisterDirect<Layoutable, Size>(nameof(DesiredSize), o => o.DesiredSize);
/// <summary>
/// Defines the <see cref="Width"/> property.
/// </summary>
@ -249,7 +255,7 @@ namespace Perspex.Layout
public Size DesiredSize
{
get;
set;
private set;
}
/// <summary>

Loading…
Cancel
Save