Files
Walleby/Wallet.Avalonia/AllNavigationView.axaml
2024-07-17 21:50:23 +01:00

43 lines
4.5 KiB
XML

<NavigationViewItem
x:Class="Wallet.Avalonia.AllNavigationView"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="using:Wallet"
x:DataType="vm:AllNavigationViewModel"
Content="All"
IsSelected="{Binding IsSelected}">
<Interaction.Behaviors>
<DataTriggerBehavior Binding="{Binding IsSelected}" Value="True">
<ConditionAction>
<ConditionAction.Condition>
<ConditionalExpression ForwardChaining="And">
<ComparisonCondition LeftOperand="{Binding IsActivated}" RightOperand="False" />
</ConditionalExpression>
</ConditionAction.Condition>
<NavigateAction Region="Main" Route="Wallet">
<Parameter Key="Filter" Value="{Binding Value}" />
</NavigateAction>
</ConditionAction>
<ConditionAction>
<ConditionAction.Condition>
<ConditionalExpression ForwardChaining="And">
<ComparisonCondition LeftOperand="{Binding IsActivated}" RightOperand="True" />
</ConditionalExpression>
</ConditionAction.Condition>
<NavigateAction Region="Left" Route="ItemCollection">
<Parameter Key="Filter" Value="{Binding Value}" />
<Parameter Key="Transition" Value="Suppress" />
<Parameter Key="IsBackStackEnabled" Value="{x:True}" />
<Parameter Key="ClearBackStack" Value="{x:True}" />
</NavigateAction>
</ConditionAction>
</DataTriggerBehavior>
</Interaction.Behaviors>
<NavigationViewItem.IconSource>
<PathIconSource Data="F1 M 6 7.28 C 6 7.146667 6.046666 7.033333 6.14 6.94 C 6.233333 6.846666 6.346666 6.8 6.48 6.799999 L 13.52 6.799999 C 13.653332 6.8 13.766665 6.846666 13.86 6.94 C 13.953333 7.033333 14 7.153334 14 7.299999 C 14 7.446667 13.953333 7.566667 13.86 7.66 C 13.766665 7.753333 13.653332 7.799999 13.52 7.799999 L 6.52 7.799999 C 6.36 7.799999 6.233333 7.753333 6.14 7.66 C 6.046666 7.566667 6 7.453333 6 7.32 Z M 6.52 8.799999 C 6.36 8.799999 6.233333 8.846666 6.14 8.94 C 6.046666 9.033334 6 9.153334 6 9.299999 C 6 9.446667 6.046666 9.566668 6.14 9.66 C 6.233333 9.753333 6.346666 9.799999 6.48 9.799999 L 13.52 9.799999 C 13.653332 9.799999 13.766665 9.753333 13.86 9.66 C 13.953333 9.566668 14 9.446667 14 9.299999 C 14 9.153334 13.953333 9.033334 13.86 8.94 C 13.766665 8.846666 13.653332 8.799999 13.52 8.799999 Z M 6 4.799999 C 5.173333 4.799999 4.466666 5.093334 3.88 5.68 C 3.293333 6.266667 3 6.973333 3 7.799999 L 3 15.799999 C 3 16.626667 3.293333 17.333332 3.88 17.92 C 4.466666 18.506666 5.173333 18.799999 6 18.799999 L 14 18.799999 C 14.826666 18.799999 15.533332 18.506666 16.119999 17.92 C 16.706665 17.333332 17 16.626667 17 15.799999 L 17 7.799999 C 17 6.973333 16.706665 6.266667 16.119999 5.68 C 15.533332 5.093334 14.826666 4.799999 14 4.799999 Z M 16 11.799999 L 12.52 11.799999 C 12.359999 11.799999 12.233332 11.846666 12.139999 11.94 C 12.046666 12.033334 12 12.146667 12 12.28 L 12 12.36 C 11.973333 12.706667 11.893332 13.02 11.759999 13.299999 C 11.626666 13.58 11.426666 13.813334 11.16 14 C 10.866666 14.186666 10.48 14.28 10 14.279999 C 9.52 14.28 9.133333 14.186666 8.84 14 C 8.573333 13.813334 8.373333 13.573333 8.24 13.28 C 8.106667 12.986667 8.026667 12.666666 8 12.32 L 8 12.28 C 8 12.146667 7.953333 12.033334 7.86 11.94 C 7.766666 11.846666 7.653333 11.799999 7.52 11.799999 L 4 11.799999 L 4 7.799999 C 4 7.24 4.193333 6.766666 4.58 6.379999 C 4.966666 5.993333 5.44 5.799999 6 5.799999 L 14 5.799999 C 14.559999 5.799999 15.033333 5.993333 15.42 6.379999 C 15.806666 6.766666 16 7.24 16 7.799999 Z M 4 12.799999 L 7.04 12.799999 C 7.12 13.146667 7.226666 13.466666 7.36 13.759999 C 7.573333 14.213333 7.879999 14.573333 8.28 14.839999 C 8.759999 15.133333 9.333333 15.28 10 15.279999 C 10.666666 15.28 11.24 15.133333 11.719999 14.839999 C 12.119999 14.573333 12.426665 14.213333 12.639999 13.759999 C 12.773333 13.466666 12.879999 13.146667 12.96 12.799999 L 16 12.799999 L 16 15.799999 C 16 16.360001 15.806666 16.833332 15.42 17.219999 C 15.033333 17.606667 14.559999 17.799999 14 17.799999 L 6 17.799999 C 5.44 17.799999 4.966666 17.606667 4.58 17.219999 C 4.193333 16.833332 4 16.360001 4 15.799999 Z " />
</NavigationViewItem.IconSource>
<NavigationViewItem.InfoBadge>
<InfoBadge Value="{Binding Key}" />
</NavigationViewItem.InfoBadge>
</NavigationViewItem>