LogInView.xaml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <Window x:Class="MyMoviesWPF.MVVM.View.UserInit.LogInView"
  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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
  7. xmlns:local="clr-namespace:MyMoviesWPF.MVVM.View.UserInit"
  8. mc:Ignorable="d"
  9. Title="Авторизация" Height="450" Width="800"
  10. WindowStartupLocation="CenterScreen">
  11. <Grid>
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="17*"/>
  14. <RowDefinition Height="402*"/>
  15. <RowDefinition Height="15*"/>
  16. </Grid.RowDefinitions>
  17. <Grid.ColumnDefinitions>
  18. <ColumnDefinition Width="8*"/>
  19. <ColumnDefinition Width="385*"/>
  20. <ColumnDefinition Width="7*"/>
  21. </Grid.ColumnDefinitions>
  22. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="1" Grid.Column="1">
  23. <TextBox
  24. HorizontalAlignment="Center" VerticalAlignment="Top" Width="368" Height="50"
  25. Text="{Binding EnteredLogin}" FontFamily="Segoe UI"
  26. Style="{DynamicResource MaterialDesignOutlinedTextBox}" BorderBrush="{DynamicResource MaterialDesignBodyLight}"
  27. materialDesign:HintAssist.Hint="Login" BorderThickness="1.5" />
  28. <PasswordBox
  29. Name="Password"
  30. HorizontalAlignment="Center" VerticalAlignment="Top" Width="368" Height="50"
  31. Style="{DynamicResource MaterialDesignOutlinedPasswordBox}" BorderBrush="{DynamicResource MaterialDesignBodyLight}"
  32. materialDesign:HintAssist.Hint="Password" BorderThickness="1.5" />
  33. </StackPanel>
  34. <StackPanel Orientation="Horizontal" VerticalAlignment="Bottom" HorizontalAlignment="Right" Grid.Row="1" Grid.Column="1" Height="47" Width="424">
  35. <Button Content="Регистрация"
  36. HorizontalAlignment="Center" VerticalAlignment="Top" Height="47" Width="212"
  37. Command="{Binding SignIn}" CommandParameter="{Binding ElementName=Password}" Cursor="Hand"/>
  38. <Button Content="Выход"
  39. HorizontalAlignment="Left" VerticalAlignment="Top" Height="47" Width="212"
  40. Command="{Binding SignIn}" />
  41. </StackPanel>
  42. </Grid>
  43. </Window>