<Window xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d" d:DesignWidth="200" d:DesignHeight="200"
		MinWidth="200" MinHeight="200"
		MaxWidth="200" MaxHeight="200"
        x:Class="LibationAvalonia.Dialogs.Login._2faCodeDialog"
        Title="2FA Code"
		Icon="/Assets/libation.ico">
	
	<Grid
		VerticalAlignment="Stretch"
		ColumnDefinitions="*" Margin="5"
		RowDefinitions="*,Auto,Auto,Auto">
		
		<TextBlock
			TextAlignment="Center"
			TextWrapping="Wrap"
			Text="{Binding Prompt}" />
		
		<TextBlock
			Margin="5"
			Grid.Row="1"
			TextAlignment="Center"
			Text="Enter 2FA Code" />

		<TextBox
			Name="_2FABox"
			Margin="5,0,5,0"
			Grid.Row="2"
			HorizontalContentAlignment="Center"
			Text="{Binding Code, Mode=TwoWay}" />
		
		<Button
			Margin="5"
			Grid.Row="3"
			HorizontalAlignment="Stretch"
			HorizontalContentAlignment="Center"
			Content="Submit"
			Click="Submit_Click" />
	</Grid>
</Window>
