123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <wpf:ThemableWindow x:Class="PRSDesktop.Panels.Users.QR2FAWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- 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"
- xmlns:sf="http://schemas.syncfusion.com/wpf"
- xmlns:sync="clr-namespace:Syncfusion.UI.Xaml.Controls.Barcode;assembly=Syncfusion.SfBarcode.WPF"
- xmlns:local="clr-namespace:PRSDesktop.Panels.Users"
- xmlns:wpf="clr-namespace:InABox.Wpf;assembly=InABox.Wpf"
- mc:Ignorable="d"
- Title="Google Authenticator Setup" SizeToContent="WidthAndHeight">
- <Grid Margin="5">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto"/>
- <ColumnDefinition Width="Auto"/>
- <ColumnDefinition Width="Auto"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="Auto"/>
- </Grid.RowDefinitions>
- <Label Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3">Please scan this QR Code with the Google Authenticator App.</Label>
- <sync:SfBarcode x:Name="Barcode"
- Grid.Row="1" Grid.Column="1"
- Symbology="QRBarcode"
- DisplayText="False"
- Margin="0,5,0,0"
- Width="300" Height="300"
- HorizontalAlignment="Center" HorizontalContentAlignment="Center">
- </sync:SfBarcode>
- <Label Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3">Or use the following setup key:</Label>
- <TextBox x:Name="SetupKey" Grid.Row="3"
- Grid.Column="0" Grid.ColumnSpan="3"
- Padding="5"
- FontFamily="Consolas"
- Background="WhiteSmoke"
- TextWrapping="Wrap"
- HorizontalAlignment="Stretch"
- IsReadOnly="True"></TextBox>
- <DockPanel Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="3" LastChildFill="False" Margin="0,5,0,0">
- <Button x:Name="Reset" Content="Reset" DockPanel.Dock="Left" Padding="5" Width="50" Click="Reset_Click"/>
- <Button Content="OK" DockPanel.Dock="Right" Padding="5" Width="50" Click="OK_Click"/>
- </DockPanel>
- </Grid>
- </wpf:ThemableWindow>
|