Files
Walleby/Wallet.Avalonia/OpenWalletView.axaml
T
2024-06-15 22:16:02 +01:00

37 lines
1.2 KiB
XML

<UserControl
x:Class="Wallet.Avalonia.OpenWalletView"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="using:Wallet"
x:DataType="vm:OpenWalletViewModel">
<StackPanel
HorizontalAlignment="Center"
VerticalAlignment="Center"
IsEnabled="{Binding !Active}"
Spacing="12">
<PersonPicture
Width="144"
Height="144"
DisplayName="{Binding Name}" />
<TextBlock
Text="{Binding Name}"
TextAlignment="Center"
Theme="{DynamicResource SubtitleTextBlockStyle}" />
<TextBox
Width="360"
Classes="revealPasswordButton"
PasswordChar="&#x25CF;"
Text="{Binding Password}">
<Interaction.Behaviors>
<KeyBindingTriggerBehaviour Gesture="Enter">
<InvokeCommandAction Command="{Binding InvokeCommand}" />
</KeyBindingTriggerBehaviour>
</Interaction.Behaviors>
</TextBox>
<ProgressRing
HorizontalAlignment="Center"
VerticalAlignment="Center"
IsActive="{Binding Active}" />
</StackPanel>
</UserControl>