UI Tookit UI Tookit
UI Tookit UI Tookit
DocFX + Singulink = ♥

Search Results for

    Class AutoDirection

    Attached properties that give existing elements automatic right-to-left glyph selection: AutoDirection.Glyph makes a Microsoft.UI.Xaml.Controls.FontIcon display an IIconGlyph, and AutoDirection.IconSource gives a control with an IconSource property (Microsoft.UI.Xaml.Controls.TabViewItem, Microsoft.UI.Xaml.Controls.InfoBar or Microsoft.UI.Xaml.Controls.IconSourceElement) a DirectionalFontIconSource whose direction follows the control. Prefer AutoDirectionFontIcon where the element is under your control; Glyph is intended for font icons inside templates that cannot be replaced.

    Inheritance
    object
    AutoDirection
    Namespace: Singulink.UI.Icons.WinUI
    Assembly: Singulink.UI.Icons.WinUI.dll
    Syntax
    public static class AutoDirection

    Fields

    Name Description
    GlyphProperty

    Identifies the AutoDirection.Glyph attached property.

    IconSourceProperty

    Identifies the AutoDirection.IconSource attached property.

    Methods

    Name Description
    GetGlyph(DependencyObject)

    Gets the icon displayed by the font icon. The accessors take a Microsoft.UI.Xaml.DependencyObject because the WinUI x:Bind code generator passes attached property targets as Microsoft.UI.Xaml.DependencyObject, so a narrower parameter type fails to compile for x:Bind usage (plain attribute values would work). Setting the property on anything other than a Microsoft.UI.Xaml.Controls.FontIcon throws.

    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.

    SetGlyph(DependencyObject, IIconGlyph?)

    Sets the icon displayed by the font icon.

    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.

    © Singulink. All rights reserved.