Skip to main content Link Search Menu Expand Document (external link)

FAPathIcon

Namespace: FluentAvalonia.UI.Controls

Represents an icon that uses a vector path as its content.

C#

public class FAPathIcon : FAIconElement


Xaml

<ui:FAPathIcon />


Required Template Parts

None :)


Pseudoclasses

:disabled, :focus, :focus-visible, :focus-within, :pointerover



Examples and Usage Notes

None yet.


API

Note: Inherited members are not shown


Properties

Data Gets or sets a Geometry that specifies the shape to be drawn. In XAML. this can also be set using a string that describes Move and draw commands syntax.
DataProperty Defines the `FluentAvalonia.UI.Controls.FAPathIcon.Data` property
Stretch Gets or sets a `FluentAvalonia.UI.Controls.FAPathIcon.Stretch` enumeration value that describes how the shape fills its allocated space.
StretchDirection Gets or sets a value controlling in what direction contents will be stretched.
StretchDirectionProperty Defines the `FluentAvalonia.UI.Controls.FAPathIcon.StretchDirection` property.
StretchProperty Defines the `FluentAvalonia.UI.Controls.FAPathIcon.Stretch` property.


Events


Methods

IsDataValid(String, Geometry@) Quick and dirty check if we have a valid PathGeometry. This probably needs to be more robust, but this is better than a bunch of InvalidDataExceptions becase we don't have a Path.TryParse() method. This does still fail sometimes, but its better than nothing. Its really only meant to be called from the StringToIconElementConverter