FrameworkElement.DeferTree(DependencyObject) Method

Definition

Removes the specified element from the XAML visual tree in a way that it can be undeferred later.

C#
public static void DeferTree(DependencyObject element);

Parameters

element
DependencyObject

The element to remove from the XAML visual tree.

Remarks

This API is part of the implementation detail of x:Load, and should not be used directly. Instead use the generated UnloadObject API in a page or user control. This will also release any references due to x:Name or x:Bind.

Applies to

Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6

See also

  • <xref:Load+attribute>