MainWindow.xaml 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <Window x:Class="HotelCalifornia.MainWindow"
  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:HotelCalifornia"
  8. mc:Ignorable="d"
  9. Title="MainWindow" Background="Transparent" AllowsTransparency="True" Height="400" Width="700" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" WindowStyle="None" Icon="image/h1.png">
  10. <Grid MouseDown="Grid_MouseDown">
  11. <Border HorizontalAlignment="Left" Height="400" VerticalAlignment="Top" Width="350" CornerRadius="20,0,0,20"
  12. Background="#7E42F5"/>
  13. <Border HorizontalAlignment="Left" Height="400" VerticalAlignment="Top" Width="350" CornerRadius="0,20,20,0"
  14. Background="#383E7A" Margin="350,0,0,0">
  15. </Border>
  16. <Image Source="Image/hotel.png" Stretch="Uniform" Margin="-29,48,329,32"/>
  17. <Image HorizontalAlignment="Left" Height="75" Margin="33,278,0,0" VerticalAlignment="Top" Width="291" Source="Image/California.png"/>
  18. <Image HorizontalAlignment="Left" Height="57" Margin="-34,72,0,0" VerticalAlignment="Top" Width="431" Source="Image/wel.png"/>
  19. <Image HorizontalAlignment="Left" Height="57" Margin="96,15,0,0" VerticalAlignment="Top" Width="183" Source="Image/5star.png"/>
  20. <Image HorizontalAlignment="Left" Height="62" Margin="319,177,0,0" VerticalAlignment="Top" Width="63" Source="Image/cir2.png"/>
  21. <Image HorizontalAlignment="Left" Height="62" Margin="319,177,0,0" VerticalAlignment="Top" Width="63" Source="Image/h1.png"/>
  22. <Button
  23. Background="#7E42F5"
  24. materialDesign:ButtonAssist.CornerRadius="25"
  25. ToolTip="Вход" Margin="458,289,91,60" Height="Auto" Click="Vhod">
  26. <TextBlock Text="Войти" />
  27. </Button>
  28. <StackPanel HorizontalAlignment="Left" Height="206" Margin="404,88,0,0" VerticalAlignment="Top" Width="258">
  29. <Label Content="Авторизация" Margin="0,0,0,0" Foreground="White" FontSize="18" FontFamily="Sergeo UI" HorizontalAlignment="Center"/>
  30. <Label Content="Логин:" Margin="0,10,0,0" Foreground="White" FontSize="18" FontFamily="Sergeo UI"/>
  31. <StackPanel Orientation="Horizontal">
  32. <materialDesign:PackIcon Kind="User" Width="30" Height="30" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  33. <TextBox Name="logintxt" Margin="0,0,0,0" FontSize="18" FontFamily="Sergeo UI" Foreground="White"
  34. materialDesign:HintAssist.Hint="Введите логин" Width="227"/>
  35. </StackPanel>
  36. <Label Content="Пароль:" Margin="0,10,0,0" Foreground="White" FontSize="18" FontFamily="Sergeo UI"/>
  37. <StackPanel Orientation="Horizontal">
  38. <materialDesign:PackIcon Kind="Password" Width="30" Height="30" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  39. <PasswordBox Name="passwordtxt" materialDesign:HintAssist.Hint="Введите пароль" Foreground="White" FontSize="18" FontFamily="Sergeo UI" HorizontalAlignment="Center" Margin="0,5,0,0" Width="226"/>
  40. </StackPanel>
  41. </StackPanel>
  42. <Button
  43. Style="{StaticResource MaterialDesignIconButton}"
  44. ToolTip="Выход из приложения" Margin="642,10,10,342" Click="Close">
  45. <materialDesign:PackIcon
  46. Kind="ExitToApp" Foreground="White"/>
  47. </Button>
  48. </Grid>
  49. </Window>