using Avalonia.Media; namespace Avalonia.Controls { public class PathIcon : IconElement { static PathIcon() { AffectsRender(DataProperty); } public static readonly StyledProperty DataProperty = AvaloniaProperty.Register(nameof(Data)); public Geometry Data { get { return GetValue(DataProperty); } set { SetValue(DataProperty, value); } } } }