RecyclePool.TryGetElement Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Overloads

TryGetElement(String)

C#
[Windows.Foundation.Metadata.Experimental]
[Windows.Foundation.Metadata.Overload("TryGetElement")]
public UIElement TryGetElement(string key);

Parameters

key
String

Returns

Attributes

Applies to

WinUI 2 2.8-prerelease and other versions
Product Versions
WinUI 2 2.5-prerelease, 2.6-prerelease, 2.7-prerelease, 2.8-prerelease

TryGetElement(String, UIElement)

C#
[Windows.Foundation.Metadata.Experimental]
[Windows.Foundation.Metadata.Overload("TryGetElementWithOwner")]
public UIElement TryGetElement(string key, UIElement owner);

Parameters

key
String
owner
UIElement

Returns

Attributes

Applies to

WinUI 2 2.8-prerelease and other versions
Product Versions
WinUI 2 2.5-prerelease, 2.6-prerelease, 2.7-prerelease, 2.8-prerelease