| DataTemplateGetRole Method |
Gets the role associated with a data template.
Namespace:
TomsToolbox.Wpf.Composition.XamlExtensions
Assembly:
TomsToolbox.Wpf.Composition (in TomsToolbox.Wpf.Composition.dll)
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
- Type: System.WindowsFrameworkElement
The object.
Return Value
Type:
ObjectThe role.
See Also