FrameworkElement.DeferTree(DependencyObject) FrameworkElement.DeferTree(DependencyObject) FrameworkElement.DeferTree(DependencyObject) FrameworkElement.DeferTree(DependencyObject) Method

Definition

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

public : static void DeferTree(DependencyObject element)
static void DeferTree(DependencyObject element) const;
public static void DeferTree(DependencyObject element)
Public Shared Sub DeferTree(element As DependencyObject)

Parameters

element
DependencyObject DependencyObject

The element to remove from the XAML visual tree.

Additional features and requirements

Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

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.

See also

  • Load attribute