123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <Window x:Class="NBAManagment.VisitorMenu"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- Title="Visitor Menu" Height="400" Width="600" ResizeMode="CanResize" Background="#FFF5F5F5" WindowStartupLocation="CenterScreen">
- <Window.Resources>
- <Style x:Key="ModernButton" TargetType="Button">
- <Setter Property="Background">
- <Setter.Value>
- <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
- <GradientStop Color="#FF0078D7" Offset="0"/>
- <GradientStop Color="#FF005A9C" Offset="1"/>
- </LinearGradientBrush>
- </Setter.Value>
- </Setter>
- <Setter Property="Foreground" Value="White"/>
- <Setter Property="FontFamily" Value="Segoe UI"/>
- <Setter Property="FontWeight" Value="Bold"/>
- <Setter Property="FontSize" Value="16"/>
- <Setter Property="BorderBrush" Value="Transparent"/>
- <Setter Property="BorderThickness" Value="0"/>
- <Setter Property="Padding" Value="15,10"/>
- <Setter Property="Margin" Value="5"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="8">
- <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Window.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="30"/>
- <!-- Новая строка для синей полосы -->
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="10">
- <TextBlock Text="Visitor Menu" VerticalAlignment="Center" FontSize="24" Margin="10,0,0,0" Width="129" FontFamily="Segoe UI" FontWeight="Bold"/>
- </StackPanel>
- <Grid Grid.Row="1" Margin="0,0,0,20">
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="35*"/>
- <ColumnDefinition Width="5*"/>
- <ColumnDefinition Width="110*"/>
- <ColumnDefinition Width="136*"/>
- <ColumnDefinition Width="10*"/>
- <ColumnDefinition Width="4*"/>
- </Grid.ColumnDefinitions>
- <Frame x:Name="MainFrame" NavigationUIVisibility="Hidden" Grid.ColumnSpan="6" Margin="0,0,2,0" Grid.RowSpan="2"/>
- <Button Content="Teams" Style="{StaticResource ModernButton}" Margin="5,39,75,51" Grid.ColumnSpan="2" Grid.Column="1" Click="Button_Click"/>
- <Button Content="Players" Style="{StaticResource ModernButton}" Margin="75,39,47,51" Grid.Row="0" Grid.Column="3"/>
- <Button Content="Matchups" Style="{StaticResource ModernButton}" Margin="5,27,75,63" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2"/>
- <Button Content="Photos" Style="{StaticResource ModernButton}" Margin="75,27,47,63" Grid.Row="1" Grid.Column="3" Click="Button_Click_4"/>
- <Image HorizontalAlignment="Left" Height="50" Margin="7,-47,0,0" VerticalAlignment="Top" Width="19" Source="/logo.jpg"/>
- </Grid>
- <Button Content="Back" Style="{StaticResource ModernButton}" Margin="0,21,22,11" Click="Button_Click_1" Width="88" HorizontalAlignment="Right"/>
- <TextBlock Text="NBA Management System" Foreground="Gray" FontFamily="Segoe UI" Margin="35,19,404,12" RenderTransformOrigin="0.5,0.5" FontSize="12">
- <TextBlock.RenderTransform>
- <TransformGroup>
- <ScaleTransform/>
- <SkewTransform/>
- <RotateTransform Angle="0.047"/>
- <TranslateTransform/>
- </TransformGroup>
- </TextBlock.RenderTransform>
- </TextBlock>
- <!-- Синяя полоса внизу -->
- <StackPanel Grid.Row="3" Background="#FF0078D7" VerticalAlignment="Center" Height="30">
- <TextBlock Text="The current season is 2016–2017, and the NBA already has a history of 71 years." FontSize="14" FontFamily="Segoe UI" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" />
- <TextBlock Text="{Binding SeasonInfo}" Width="594" Height="12" Foreground="White" RenderTransformOrigin="0.5,0.5" FontFamily="Segoe UI" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleY="-1"/>
- <SkewTransform/>
- <RotateTransform/>
- <TranslateTransform/>
- </TransformGroup>
- </TextBlock.RenderTransform>
- </TextBlock>
- </StackPanel>
- </Grid>
- </Window>
|