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

Search Results for

    Namespace Singulink.UI.Icons.WinUI

    Classes

    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.

    AutoDirectionFontIcon

    A Microsoft.UI.Xaml.Controls.FontIcon that displays an IIconGlyph, automatically using its right-to-left glyph when the element's effective Microsoft.UI.Xaml.FrameworkElement.FlowDirection is Microsoft.UI.Xaml.FlowDirection.RightToLeft. The Glyph property takes the icon; the underlying glyph string is managed by the element and should not be set through a Microsoft.UI.Xaml.Controls.FontIcon-typed reference.

    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.

    © Singulink. All rights reserved.