UserWindow.xaml 1.9 KB

123456789101112131415161718192021222324252627282930313233
  1. <Window x:Class="WpfApp29.UserWindow"
  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:local="clr-namespace:WpfApp29" xmlns:usercontrols="clr-namespace:WpfApp29.UserControls"
  7. mc:Ignorable="d"
  8. Title="UserWindow" Height="450" Width="800">
  9. <Grid>
  10. <Grid.Background>
  11. <ImageBrush ImageSource="/bg.png"/>
  12. </Grid.Background>
  13. <Grid.RowDefinitions>
  14. <RowDefinition Height="80"></RowDefinition>
  15. <RowDefinition></RowDefinition>
  16. </Grid.RowDefinitions>
  17. <Border VerticalAlignment="Top" HorizontalAlignment="Center" Padding="7" BorderThickness="4" CornerRadius="10" BorderBrush="Black" Grid.RowSpan="2">
  18. <Border.Background>
  19. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  20. <GradientStop Color="#FF2D2727"/>
  21. <GradientStop Color="#FF7F1F1F" Offset="1"/>
  22. </LinearGradientBrush>
  23. </Border.Background>
  24. <WrapPanel Height="50" HorizontalAlignment="Center">
  25. <Button Content="Главное меню" Width="150" Height="50" FontSize="18" Command="{Binding CommandGoMainMenu}"></Button>
  26. <Button Content="Мой аккаунт" Width="150" Height="50" FontSize="18" Command="{Binding CommandGoAccount}"></Button>
  27. <Button Content="Пользователи" Width="150" Height="50" FontSize="18" Command="{Binding CommandGoUserList}"></Button>
  28. <Button Content="Выйти" Width="150" Height="50" FontSize="18" Command="{Binding CommandGoLoginWindow}"></Button>
  29. </WrapPanel>
  30. </Border>
  31. <Frame Name="FramePages" Grid.Row="2"></Frame>
  32. </Grid>
  33. </Window>