| DataTemplateGetRole Method |
Gets the role associated with a data template.
Namespace: TomsToolbox.Wpf.Composition.XamlExtensionsAssembly: TomsToolbox.Wpf.Composition (in TomsToolbox.Wpf.Composition.dll) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax [AttachedPropertyBrowsableForTypeAttribute(typeof(ContentControl))]
[AttachedPropertyBrowsableForTypeAttribute(typeof(TabControl))]
[AttachedPropertyBrowsableForTypeAttribute(typeof(ContentPresenter))]
public static Object? GetRole(
FrameworkElement obj
)
<AttachedPropertyBrowsableForTypeAttribute(GetType(ContentControl))>
<AttachedPropertyBrowsableForTypeAttribute(GetType(TabControl))>
<AttachedPropertyBrowsableForTypeAttribute(GetType(ContentPresenter))>
Public Shared Function GetRole (
obj As FrameworkElement
) As Object
Parameters
- obj FrameworkElement
- The object.
Return Value
ObjectThe role.
See Also