Browse Source

Added attached/detached events to IVisual.

pull/325/head
Steven Kirk 10 years ago
parent
commit
2cb7bc8356
  1. 11
      src/Perspex.SceneGraph/IVisual.cs

11
src/Perspex.SceneGraph/IVisual.cs

@ -1,6 +1,7 @@
// Copyright (c) The Perspex Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using System;
using Perspex.Collections;
using Perspex.Media;
using Perspex.VisualTree;
@ -20,6 +21,16 @@ namespace Perspex
/// </remarks>
public interface IVisual
{
/// <summary>
/// Raised when the control is attached to a rooted visual tree.
/// </summary>
event EventHandler<VisualTreeAttachmentEventArgs> AttachedToVisualTree;
/// <summary>
/// Raised when the control is detached from a rooted visual tree.
/// </summary>
event EventHandler<VisualTreeAttachmentEventArgs> DetachedFromVisualTree;
/// <summary>
/// Gets the bounds of the scene graph node relative to its parent.
/// </summary>

Loading…
Cancel
Save