Method SetIconSource
SetIconSource(DependencyObject, DirectionalFontIconSource?)
Sets the icon source displayed by the control. The source's FlowDirection is kept in sync with the control's effective flow direction, and the control is given the source again after a change so that hosts which copy the glyph out of the source once (Microsoft.UI.Xaml.Controls.TabViewItem and Microsoft.UI.Xaml.Controls.InfoBar) rebuild their icon. Use a separate source instance for each control.
Declaration
public static void SetIconSource(DependencyObject element, DirectionalFontIconSource? value)
Parameters
| Type | Name | Description |
|---|---|---|
| DependencyObject | element | |
| DirectionalFontIconSource | value |