Added IndicatorOrientation property
MODIFY
WalletWasabi.Fluent/Controls/NavBarItem.xaml.cs
WalletWasabi.Fluent/Controls/NavBarItem.xaml.cs
using Avalonia;
using Avalonia.Controls;
+using Avalonia.Layout;
namespace WalletWasabi.Fluent.Controls
{
@@ -11,6 +12,9 @@ namespace WalletWasabi.Fluent.Controls
public static readonly StyledProperty<IconElement> IconProperty =
AvaloniaProperty.Register<NavBarItem, IconElement>(nameof(Icon));
+ public static readonly StyledProperty<Orientation> IndicatorOrientationProperty =
+ AvaloniaProperty.Register<NavBarItem, Orientation>(nameof(IndicatorOrientation), Orientation.Vertical);
+
/// <summary>
/// The icon to be shown beside the header text of the item.
/// </summary>
@@ -19,5 +23,14 @@ namespace WalletWasabi.Fluent.Controls
get => GetValue(IconProperty);
set => SetValue(IconProperty, value);
}
+
+ /// <summary>
+ /// Gets or sets the indicator orientation.
+ /// </summary>
+ public Orientation IndicatorOrientation
+ {
+ get => GetValue(IndicatorOrientationProperty);
+ set => SetValue(IndicatorOrientationProperty, value);
+ }
}
}

Added IndicatorOrientation property