Files
Walleby/Wallet.Avalonia/EmptyItemCollectionView.axaml
2024-06-10 18:11:10 +01:00

30 lines
1.3 KiB
XML

<UserControl
x:Class="Wallet.Avalonia.EmptyItemCollectionView"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="using:Wallet"
x:DataType="vm:EmptyItemCollectionViewModel">
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock
Text="Nothing to see here"
TextAlignment="Center"
Theme="{DynamicResource BodyStrongTextBlockStyle}" />
<HyperlinkButton Content="Let's start securing your items">
<Interaction.Behaviors>
<EventTriggerBehavior EventName="Click">
<NavigateAction Region="Left" Route="ItemCategoryCollection">
<Parameter Key="Transition" Value="FromRight" />
<Parameter Key="IsBackStackEnabled" Value="{x:True}" />
</NavigateAction>
<NavigateAction
Region="{Binding Named, StringFormat='{}{0}:Content'}"
Route="Item"
Scope="self">
<Parameter Key="State" Value="{x:Static vm:ItemState.Write}" />
</NavigateAction>
</EventTriggerBehavior>
</Interaction.Behaviors>
</HyperlinkButton>
</StackPanel>
</UserControl>