From b68c417f37fc717888c2994bdb466993b4e1b534 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Wed, 10 Feb 2016 21:44:22 +0100 Subject: [PATCH] Expose logical tree events on IControl. --- src/Perspex.Controls/IControl.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Perspex.Controls/IControl.cs b/src/Perspex.Controls/IControl.cs index 0e65c599be..a76fda9c01 100644 --- a/src/Perspex.Controls/IControl.cs +++ b/src/Perspex.Controls/IControl.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.Controls.Templates; using Perspex.Input; using Perspex.Layout; @@ -13,6 +14,16 @@ namespace Perspex.Controls /// public interface IControl : IVisual, ILogical, ILayoutable, IInputElement, INamed, IStyleable, IStyleHost { + /// + /// Raised when the control is attached to a rooted logical tree. + /// + event EventHandler AttachedToLogicalTree; + + /// + /// Raised when the control is detached from a rooted logical tree. + /// + event EventHandler DetachedFromLogicalTree; + /// /// Gets or sets the control's styling classes. ///