Class SubtreeReplacedEventArgs
- Namespace
- Icy.Design
- Assembly
- IcyUI.Design.dll
Describes a live subtree an edit had to rebuild instead of updating in place.
public sealed class SubtreeReplacedEventArgs : EventArgs
- Inheritance
-
SubtreeReplacedEventArgs
- Inherited Members
- Extension Methods
Remarks
Code that holds references to elements inside OldElement should drop them: they no longer belong to the page.
Constructors
SubtreeReplacedEventArgs(NodeId, UIElement, UIElement)
Describes a live subtree an edit had to rebuild instead of updating in place.
public SubtreeReplacedEventArgs(NodeId node, UIElement oldElement, UIElement newElement)
Parameters
nodeNodeIdThe markup element the subtree was built from.
oldElementUIElementThe subtree that was removed from the page.
newElementUIElementThe subtree that took its place.
Remarks
Code that holds references to elements inside OldElement should drop them: they no longer belong to the page.
Properties
NewElement
Gets the subtree that took its place.
public UIElement NewElement { get; }
Property Value
Node
Gets the markup element the subtree was built from.
public NodeId Node { get; }
Property Value
OldElement
Gets the subtree that was removed from the page.
public UIElement OldElement { get; }