QR2FAWindow.xaml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <wpf:ThemableWindow x:Class="PRSDesktop.Panels.Users.QR2FAWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:sf="http://schemas.syncfusion.com/wpf"
  7. xmlns:sync="clr-namespace:Syncfusion.UI.Xaml.Controls.Barcode;assembly=Syncfusion.SfBarcode.WPF"
  8. xmlns:local="clr-namespace:PRSDesktop.Panels.Users"
  9. xmlns:wpf="clr-namespace:InABox.Wpf;assembly=InABox.Wpf"
  10. mc:Ignorable="d"
  11. Title="Google Authenticator Setup" SizeToContent="WidthAndHeight">
  12. <Grid Margin="5">
  13. <Grid.ColumnDefinitions>
  14. <ColumnDefinition Width="Auto"/>
  15. <ColumnDefinition Width="Auto"/>
  16. <ColumnDefinition Width="Auto"/>
  17. </Grid.ColumnDefinitions>
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="Auto"/>
  20. <RowDefinition Height="Auto"/>
  21. <RowDefinition Height="Auto"/>
  22. <RowDefinition Height="*"/>
  23. <RowDefinition Height="Auto"/>
  24. </Grid.RowDefinitions>
  25. <Label Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3">Please scan this QR Code with the Google Authenticator App.</Label>
  26. <sync:SfBarcode x:Name="Barcode"
  27. Grid.Row="1" Grid.Column="1"
  28. Symbology="QRBarcode"
  29. DisplayText="False"
  30. Margin="0,5,0,0"
  31. Width="300" Height="300"
  32. HorizontalAlignment="Center" HorizontalContentAlignment="Center">
  33. </sync:SfBarcode>
  34. <Label Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3">Or use the following setup key:</Label>
  35. <TextBox x:Name="SetupKey" Grid.Row="3"
  36. Grid.Column="0" Grid.ColumnSpan="3"
  37. Padding="5"
  38. FontFamily="Consolas"
  39. Background="WhiteSmoke"
  40. TextWrapping="Wrap"
  41. HorizontalAlignment="Stretch"
  42. IsReadOnly="True"></TextBox>
  43. <DockPanel Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="3" LastChildFill="False" Margin="0,5,0,0">
  44. <Button x:Name="Reset" Content="Reset" DockPanel.Dock="Left" Padding="5" Width="50" Click="Reset_Click"/>
  45. <Button Content="OK" DockPanel.Dock="Right" Padding="5" Width="50" Click="OK_Click"/>
  46. </DockPanel>
  47. </Grid>
  48. </wpf:ThemableWindow>