Class DirectionalFontIconSource
A Microsoft.UI.Xaml.Controls.FontIconSource that displays an IIconGlyph using the glyph for a given FlowDirection. The element a
host creates from a font icon source is a plain Microsoft.UI.Xaml.Controls.FontIcon that only knows a glyph string, so the choice between the regular and
right-to-left glyph is made here; and since a source is not part of the visual tree it has no flow direction of its own, so the direction must be
set explicitly (typically bound to the hosting element or the root), or the source is attached through AutoDirection.IconSource, which keeps
the direction in sync with the hosting control for the common hosts.
Inheritance
IconSource
FontIconSource
DirectionalFontIconSource
Implements
DependencyObject
IDependencyObjectStoreProvider
IWeakReferenceProvider
Inherited Members
FontIconSource.CreateIconElementCore()
FontIconSource.GetIconElementPropertyCore(DependencyProperty)
FontIconSource.MirroredWhenRightToLeft
FontIconSource.MirroredWhenRightToLeftProperty
FontIconSource.IsTextScaleFactorEnabled
FontIconSource.IsTextScaleFactorEnabledProperty
FontIconSource.FontWeight
FontIconSource.FontWeightProperty
FontIconSource.FontStyle
FontIconSource.FontStyleProperty
FontIconSource.FontSize
FontIconSource.FontSizeProperty
FontIconSource.FontFamily
FontIconSource.FontFamilyProperty
IconSource.CreateIconElement()
IconSource.GetValue(DependencyProperty)
IconSource.SetValue(DependencyProperty, object)
IconSource.ClearValue(DependencyProperty)
IconSource.ReadLocalValue(DependencyProperty)
IconSource.GetAnimationBaseValue(DependencyProperty)
IconSource.RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback)
IconSource.ToString()
IconSource.OnDataContextChanged(DependencyPropertyChangedEventArgs)
IconSource.SetBinding(DependencyProperty, BindingBase)
IconSource.GetBindingExpression(DependencyProperty)
IconSource.ResumeBindings()
IconSource.SuspendBindings()
IconSource.Foreground
IconSource.ForegroundProperty
IconSource.Dispatcher
IconSource.DispatcherQueue
IconSource.IsStoreInitialized
IconSource.IDependencyObjectStoreProvider.Store
IconSource.IWeakReferenceProvider.WeakReference
IconSource.DataContext
IconSource.DataContextProperty
IconSource.DataContextChanged
Assembly: Singulink.UI.Icons.WinUI.dll
Syntax
public class DirectionalFontIconSource : FontIconSource, DependencyObject, IDependencyObjectStoreProvider, IWeakReferenceProvider
Fields
| Name |
Description |
|
FlowDirectionProperty
|
Identifies the FlowDirection dependency property.
|
|
GlyphProperty
|
Identifies the Glyph dependency property. Hosts resolve the glyph of a font icon source in two different ways: some copy
Microsoft.UI.Xaml.Controls.FontIconSource.Glyph when they create their icon element, while WinUI's IconSourceElement binds by name to a dependency
property registered on the source's own type and finds nothing on a derived type otherwise. A separately registered property with the same name
and value satisfies both.
|
|
IconProperty
|
Identifies the Icon dependency property.
|
Properties
| Name |
Description |
|
FlowDirection
|
Gets or sets the flow direction that determines which glyph of the icon is displayed.
|
|
Glyph
|
Gets the glyph string currently displayed, computed from Icon and FlowDirection.
|
|
Icon
|
Gets or sets the icon to display.
|