// 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.Rendering; namespace Perspex { /// /// Holds the event arguments for the and /// events. /// public class VisualTreeAttachmentEventArgs : EventArgs { /// /// Initializes a new instance of the class. /// /// The root visual. /// The name scope. public VisualTreeAttachmentEventArgs(IRenderRoot root, INameScope nameScope) { Root = root; NameScope = nameScope; } /// /// Gets the root of the visual tree that the visual is being attached to or detached from. /// public IRenderRoot Root { get; } /// /// Gets the element's name scope. /// public INameScope NameScope { get; } } }