From 46a6d2917ebc828055efa0d6ac94af48314cbd7d Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Sun, 7 Feb 2016 14:42:45 +0100 Subject: [PATCH] Expose Name as PerspexProperty. --- src/Perspex.SceneGraph/Visual.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Perspex.SceneGraph/Visual.cs b/src/Perspex.SceneGraph/Visual.cs index 0dc6c67589..fb4a3f28a9 100644 --- a/src/Perspex.SceneGraph/Visual.cs +++ b/src/Perspex.SceneGraph/Visual.cs @@ -47,6 +47,12 @@ namespace Perspex public static readonly StyledProperty IsVisibleProperty = PerspexProperty.Register(nameof(IsVisible), true); + /// + /// Defines the property. + /// + public static readonly DirectProperty NameProperty = + PerspexProperty.RegisterDirect(nameof(Name), o => o.Name, (o, v) => o.Name = v); + /// /// Defines the property. ///