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

43 lines
3.7 KiB
XML

<NavigationViewItem
x:Class="Wallet.Avalonia.ArchiveNavigationView"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="using:Wallet"
x:DataType="vm:ArchiveNavigationViewModel"
Content="Archive"
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 8.52 11.799999 C 8.36 11.799999 8.233333 11.846666 8.139999 11.94 C 8.046666 12.033334 8 12.153334 8 12.299999 C 8 12.446667 8.046666 12.566667 8.139999 12.66 C 8.233333 12.753333 8.346666 12.799999 8.48 12.799999 L 11.52 12.799999 C 11.653333 12.799999 11.766666 12.753333 11.86 12.66 C 11.953333 12.566667 12 12.446667 12 12.299999 C 12 12.153334 11.953333 12.033334 11.86 11.94 C 11.766666 11.846666 11.653333 11.799999 11.52 11.799999 Z M 2 6.559999 C 2 6.08 2.173333 5.666666 2.52 5.32 C 2.866666 4.973333 3.28 4.799999 3.76 4.799999 L 16.24 4.799999 C 16.719999 4.799999 17.133331 4.973333 17.48 5.32 C 17.826666 5.666666 18 6.08 18 6.559999 L 18 8.04 C 18 8.386667 17.906666 8.7 17.719999 8.98 C 17.533333 9.26 17.293333 9.48 17 9.639999 L 17 15.799999 C 17 16.626667 16.706665 17.333332 16.119999 17.92 C 15.533332 18.506666 14.826666 18.799999 14 18.799999 L 6 18.799999 C 5.173333 18.799999 4.466666 18.506666 3.88 17.92 C 3.293333 17.333332 3 16.626667 3 15.799999 L 3 9.639999 C 2.706666 9.48 2.466666 9.26 2.28 8.98 C 2.093333 8.7 2 8.386667 2 8.04 Z M 3.76 5.799999 C 3.546666 5.799999 3.366666 5.873333 3.22 6.02 C 3.073333 6.166667 3 6.346667 3 6.559999 L 3 8.04 C 3 8.253334 3.073333 8.433333 3.22 8.58 C 3.366666 8.726666 3.546666 8.799999 3.76 8.799999 L 16.24 8.799999 C 16.453333 8.799999 16.633331 8.726666 16.779999 8.58 C 16.926666 8.433333 17 8.253334 17 8.04 L 17 6.559999 C 17 6.346667 16.926666 6.166667 16.779999 6.02 C 16.633331 5.873333 16.453333 5.799999 16.24 5.799999 Z M 4 9.799999 L 4 15.799999 C 4 16.360001 4.193333 16.833332 4.58 17.219999 C 4.966666 17.606667 5.44 17.799999 6 17.799999 L 14 17.799999 C 14.559999 17.799999 15.033333 17.606667 15.42 17.219999 C 15.806666 16.833332 16 16.360001 16 15.799999 L 16 9.799999 Z " />
</NavigationViewItem.IconSource>
<NavigationViewItem.InfoBadge>
<InfoBadge Value="{Binding Key}" />
</NavigationViewItem.InfoBadge>
</NavigationViewItem>