FrameworkElementExtensions.GetContentControl(FrameworkElement) 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.
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
The retrieved content control, or null
if not available.