1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <Window x:Class="RR2.UI.Views.MainWnd"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:RR2"
- mc:Ignorable="d" Name ="home"
- Title="MainWnd"
- Height="600" Width="900"
- WindowStartupLocation="CenterScreen" WindowStyle="None"
- Background="Transparent" AllowsTransparency="True"
- ResizeMode="NoResize" FontFamily="Poppins">
- <Border Background="{DynamicResource PrimaryBackgroundColor}" CornerRadius="8" MouseLeftButtonDown="Border_MouseLeftButtonDown">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="60"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <!-- Кнопки скрытия,свертывания и закрытия -->
- <Grid Grid.Row="0">
- <Border Margin="14 0 0 0" Width="50" Height="40" HorizontalAlignment="Left">
- <Border.Background>
- <ImageBrush ImageSource="/RR2;component/Resources/Logo.png" Stretch="Uniform"/>
- </Border.Background>
- </Border>
- <TextBlock Margin="70 0 0 0" VerticalAlignment="Center">Дороги России</TextBlock>
- <TextBlock Margin="200 0 0 0" VerticalAlignment="Center">Организационная структура</TextBlock>
- <StackPanel HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,5,10,0" Height="30" Orientation="Horizontal" FlowDirection="RightToLeft" Grid.RowSpan="2">
- <Button x:Name="CloseBtn" Style="{DynamicResource NavViewButtonsStyle}" Content="x" Click="CloseBtn_Click" Tag="IsCloseButton"/>
- <Button x:Name="RestoreBtn" Style="{DynamicResource NavViewButtonsStyle}" Content="o" Click="RestoreBtn_Click" Margin="5,0" />
- <Button x:Name="MinimizeBtn" Style="{DynamicResource NavViewButtonsStyle}" Content="-" Click="MinimizeBtn_Click"/>
- </StackPanel>
- </Grid>
- <!-- Панель контента -->
- <Frame Grid.Row="1" x:Name="MainFr" Margin="20" NavigationUIVisibility="Hidden"/>
- </Grid>
- </Border>
- </Window>
|