FrameworkElementExtensions.GetContentControl(FrameworkElement) Method

Definition

Gets the content property of this element as defined by Windows.UI.Xaml.Markup.ContentPropertyAttribute, if available.

public static Windows.UI.Xaml.UIElement? GetContentControl (this Windows.UI.Xaml.FrameworkElement element);
static member GetContentControl : Windows.UI.Xaml.FrameworkElement -> Windows.UI.Xaml.UIElement
<Extension()>
Public Function GetContentControl (element As FrameworkElement) As UIElement

Parameters

element
Windows.UI.Xaml.FrameworkElement

The parent element.

Returns

Windows.UI.Xaml.UIElement

The retrieved content control, or null if not available.

Applies to