From 928e159aba7a12025244a2a12c7960483931c9d6 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Sun, 24 Jan 2016 16:59:01 +0100 Subject: [PATCH] Added DesiredSize as a readonly PP. --- src/Perspex.Layout/Layoutable.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Perspex.Layout/Layoutable.cs b/src/Perspex.Layout/Layoutable.cs index 9930c24614..c804f1a3c7 100644 --- a/src/Perspex.Layout/Layoutable.cs +++ b/src/Perspex.Layout/Layoutable.cs @@ -66,6 +66,12 @@ namespace Perspex.Layout /// public class Layoutable : Visual, ILayoutable { + /// + /// Defines the property. + /// + public static readonly PerspexProperty DesiredSizeProperty = + PerspexProperty.RegisterDirect(nameof(DesiredSize), o => o.DesiredSize); + /// /// Defines the property. /// @@ -249,7 +255,7 @@ namespace Perspex.Layout public Size DesiredSize { get; - set; + private set; } ///