Replace else where with named navigation regions

This commit is contained in:
TheXamlGuy
2024-05-09 22:49:09 +01:00
parent 9a5f7e6e25
commit cc63e3d830
4 changed files with 27 additions and 19 deletions
@@ -1,7 +1,9 @@
<UserControl
x:Class="Bitvault.Avalonia.AddVaultContentActionView"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="using:Bitvault"
x:DataType="vm:AddVaultContentActionViewModel">
<Button
Grid.Column="1"
Width="{StaticResource ButtonWidth}"
@@ -13,7 +15,7 @@
ToolTip.Tip="Add item">
<Interaction.Behaviors>
<EventTriggerBehavior EventName="Click">
<NavigateAction Context="Content" Route="AddVaultContent" />
<NavigateAction Context="{Binding Named, StringFormat='{}{0}:Content'}" Route="AddVaultContent" />
</EventTriggerBehavior>
</Interaction.Behaviors>
</Button>