Method GetIconSource
GetIconSource(DependencyObject)
Gets the icon source displayed by the control. Setting the property on anything other than a Microsoft.UI.Xaml.Controls.TabViewItem, Microsoft.UI.Xaml.Controls.InfoBar or Microsoft.UI.Xaml.Controls.IconSourceElement throws.
Declaration
public static DirectionalFontIconSource? GetIconSource(DependencyObject element)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | element |
Returns
| Type | Description |
|---|---|
| DirectionalFontIconSource |