remove unused attachedprop
MODIFY
WalletWasabi.Fluent/Behaviors/NavBarSelectedIndicatorChildBehavior.cs
WalletWasabi.Fluent/Behaviors/NavBarSelectedIndicatorChildBehavior.cs
@@ -11,24 +11,10 @@ namespace WalletWasabi.Fluent.Behaviors
{
public class NavBarSelectedIndicatorChildBehavior : AttachedToVisualTreeBehavior<Rectangle>
{
- public static readonly AttachedProperty<bool> IsSelectedProperty =
- AvaloniaProperty.RegisterAttached<NavBarSelectedIndicatorChildBehavior, Rectangle, bool>("IsSelected",
- inherits: true);
-
public static readonly AttachedProperty<Control> NavBarItemParentProperty =
AvaloniaProperty.RegisterAttached<NavBarSelectedIndicatorChildBehavior, Control, Control>(
"NavBarItemParent");
- public static bool GetIsSelected(Control element)
- {
- return element.GetValue(IsSelectedProperty);
- }
-
- public static void SetIsSelected(Control element, bool value)
- {
- element.SetValue(IsSelectedProperty, value);
- }
-
public static Control GetNavBarItemParent(Control element)
{
return element?.GetValue(NavBarItemParentProperty) ?? null;

MODIFY
WalletWasabi.Fluent/Controls/NavBarItem.axaml
WalletWasabi.Fluent/Controls/NavBarItem.axaml
<!-- Selected State -->
<Style Selector="c|NavBarItem:selected /template/ Rectangle#SelectionIndicator">
<Setter Property="Opacity" Value="1"/>
- <Setter Property="(behaviors:NavBarSelectedIndicatorChildBehavior.IsSelected)" Value="True"/>
</Style>
<Style Selector="c|NavBarItem:selected /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="TextBlock.Foreground" Value="{DynamicResource NavBarItemSelectedBrush}" />

remove unused attachedprop