Browse Source

Expose Name as PerspexProperty.

pull/413/head
Steven Kirk 11 years ago
parent
commit
46a6d2917e
  1. 6
      src/Perspex.SceneGraph/Visual.cs

6
src/Perspex.SceneGraph/Visual.cs

@ -47,6 +47,12 @@ namespace Perspex
public static readonly StyledProperty<bool> IsVisibleProperty =
PerspexProperty.Register<Visual, bool>(nameof(IsVisible), true);
/// <summary>
/// Defines the <see cref="Name"/> property.
/// </summary>
public static readonly DirectProperty<Visual, string> NameProperty =
PerspexProperty.RegisterDirect<Visual, string>(nameof(Name), o => o.Name, (o, v) => o.Name = v);
/// <summary>
/// Defines the <see cref="Opacity"/> property.
/// </summary>

Loading…
Cancel
Save