MainWindow.xaml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <Window x:Class="RKISPATTERN.View.MainWindow"
  2. xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:local="clr-namespace:RKISPATTERN"
  8. mc:Ignorable="d"
  9. Title="MainWindow" Height="450" Width="800">
  10. <Grid Background="#FF315F82">
  11. <Border Background="#FFCCC5C5" Margin="20" Padding="20">
  12. <Border.Effect>
  13. <DropShadowEffect BlurRadius="50" Color="Black" ShadowDepth="10"></DropShadowEffect>
  14. </Border.Effect>
  15. <Grid>
  16. <Grid.ColumnDefinitions>
  17. <ColumnDefinition/>
  18. <ColumnDefinition />
  19. </Grid.ColumnDefinitions>
  20. <Grid.RowDefinitions>
  21. <RowDefinition/>
  22. <RowDefinition/>
  23. <RowDefinition/>
  24. <RowDefinition/>
  25. <RowDefinition/>
  26. </Grid.RowDefinitions>
  27. <TextBox x:Name="tbLogUserName" Grid.ColumnSpan="2" materialDesign:HintAssist.Hint="Введите логин" Background="#00000000" FontSize="35" Margin="0,0,0,75" Grid.RowSpan="2" Cursor="Arrow" Text="{Binding CurrentUserLogin, UpdateSourceTrigger=PropertyChanged}"/>
  28. <PasswordBox x:Name="tbLogPassword1" Grid.ColumnSpan="2" materialDesign:HintAssist.Hint="Введите пароль" Grid.Row="1" FontSize="35" Cursor="IBeam" />
  29. <Button Grid.Row="5" Grid.Column="0" Width="150" Content="РЕГИСТРАЦИЯ" Command="{Binding ShowRegWindow}"/>
  30. <Button Grid.Row="5" Grid.Column="1" Width="150" Content="ВХОД" Background="#FF60B73A" Command="{Binding LogUser}" CommandParameter="{Binding ElementName=tbLogPassword1}" Cursor="Hand"/>
  31. </Grid>
  32. </Border>
  33. </Grid>
  34. </Window>