MainWnd.xaml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <Window x:Class="RR2.UI.Views.MainWnd"
  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:RR2"
  7. mc:Ignorable="d" Name ="home"
  8. Title="MainWnd"
  9. Height="600" Width="900"
  10. WindowStartupLocation="CenterScreen" WindowStyle="None"
  11. Background="Transparent" AllowsTransparency="True"
  12. ResizeMode="NoResize" FontFamily="Poppins">
  13. <Border Background="{DynamicResource PrimaryBackgroundColor}" CornerRadius="8" MouseLeftButtonDown="Border_MouseLeftButtonDown">
  14. <Grid>
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="60"/>
  17. <RowDefinition Height="*"/>
  18. </Grid.RowDefinitions>
  19. <!-- Кнопки скрытия,свертывания и закрытия -->
  20. <Grid Grid.Row="0">
  21. <Border Margin="14 0 0 0" Width="50" Height="40" HorizontalAlignment="Left">
  22. <Border.Background>
  23. <ImageBrush ImageSource="/RR2;component/Resources/Logo.png" Stretch="Uniform"/>
  24. </Border.Background>
  25. </Border>
  26. <TextBlock Margin="70 0 0 0" VerticalAlignment="Center">Дороги России</TextBlock>
  27. <TextBlock Margin="200 0 0 0" VerticalAlignment="Center">Организационная структура</TextBlock>
  28. <StackPanel HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,5,10,0" Height="30" Orientation="Horizontal" FlowDirection="RightToLeft" Grid.RowSpan="2">
  29. <Button x:Name="CloseBtn" Style="{DynamicResource NavViewButtonsStyle}" Content="x" Click="CloseBtn_Click" Tag="IsCloseButton"/>
  30. <Button x:Name="RestoreBtn" Style="{DynamicResource NavViewButtonsStyle}" Content="o" Click="RestoreBtn_Click" Margin="5,0" />
  31. <Button x:Name="MinimizeBtn" Style="{DynamicResource NavViewButtonsStyle}" Content="-" Click="MinimizeBtn_Click"/>
  32. </StackPanel>
  33. </Grid>
  34. <!-- Панель контента -->
  35. <Frame Grid.Row="1" x:Name="MainFr" Margin="20" NavigationUIVisibility="Hidden"/>
  36. </Grid>
  37. </Border>
  38. </Window>