VisitorMenu.xaml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <Window x:Class="NBAManagment.VisitorMenu"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. Title="Visitor Menu" Height="400" Width="600" ResizeMode="CanResize" Background="#FFF5F5F5" WindowStartupLocation="CenterScreen">
  5. <Window.Resources>
  6. <Style x:Key="ModernButton" TargetType="Button">
  7. <Setter Property="Background">
  8. <Setter.Value>
  9. <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
  10. <GradientStop Color="#FF0078D7" Offset="0"/>
  11. <GradientStop Color="#FF005A9C" Offset="1"/>
  12. </LinearGradientBrush>
  13. </Setter.Value>
  14. </Setter>
  15. <Setter Property="Foreground" Value="White"/>
  16. <Setter Property="FontFamily" Value="Segoe UI"/>
  17. <Setter Property="FontWeight" Value="Bold"/>
  18. <Setter Property="FontSize" Value="16"/>
  19. <Setter Property="BorderBrush" Value="Transparent"/>
  20. <Setter Property="BorderThickness" Value="0"/>
  21. <Setter Property="Padding" Value="15,10"/>
  22. <Setter Property="Margin" Value="5"/>
  23. <Setter Property="Template">
  24. <Setter.Value>
  25. <ControlTemplate TargetType="Button">
  26. <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="8">
  27. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
  28. </Border>
  29. </ControlTemplate>
  30. </Setter.Value>
  31. </Setter>
  32. </Style>
  33. </Window.Resources>
  34. <Grid>
  35. <Grid.RowDefinitions>
  36. <RowDefinition Height="Auto"/>
  37. <RowDefinition Height="*"/>
  38. <RowDefinition Height="Auto"/>
  39. <RowDefinition Height="30"/>
  40. <!-- Новая строка для синей полосы -->
  41. </Grid.RowDefinitions>
  42. <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="10">
  43. <TextBlock Text="Visitor Menu" VerticalAlignment="Center" FontSize="24" Margin="10,0,0,0" Width="129" FontFamily="Segoe UI" FontWeight="Bold"/>
  44. </StackPanel>
  45. <Grid Grid.Row="1" Margin="0,0,0,20">
  46. <Grid.RowDefinitions>
  47. <RowDefinition Height="*"/>
  48. <RowDefinition Height="*"/>
  49. </Grid.RowDefinitions>
  50. <Grid.ColumnDefinitions>
  51. <ColumnDefinition Width="35*"/>
  52. <ColumnDefinition Width="5*"/>
  53. <ColumnDefinition Width="110*"/>
  54. <ColumnDefinition Width="136*"/>
  55. <ColumnDefinition Width="10*"/>
  56. <ColumnDefinition Width="4*"/>
  57. </Grid.ColumnDefinitions>
  58. <Frame x:Name="MainFrame" NavigationUIVisibility="Hidden" Grid.ColumnSpan="6" Margin="0,0,2,0" Grid.RowSpan="2"/>
  59. <Button Content="Teams" Style="{StaticResource ModernButton}" Margin="5,39,75,51" Grid.ColumnSpan="2" Grid.Column="1" Click="Button_Click"/>
  60. <Button Content="Players" Style="{StaticResource ModernButton}" Margin="75,39,47,51" Grid.Row="0" Grid.Column="3"/>
  61. <Button Content="Matchups" Style="{StaticResource ModernButton}" Margin="5,27,75,63" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2"/>
  62. <Button Content="Photos" Style="{StaticResource ModernButton}" Margin="75,27,47,63" Grid.Row="1" Grid.Column="3" Click="Button_Click_4"/>
  63. <Image HorizontalAlignment="Left" Height="50" Margin="7,-47,0,0" VerticalAlignment="Top" Width="19" Source="/logo.jpg"/>
  64. </Grid>
  65. <Button Content="Back" Style="{StaticResource ModernButton}" Margin="0,21,22,11" Click="Button_Click_1" Width="88" HorizontalAlignment="Right"/>
  66. <TextBlock Text="NBA Management System" Foreground="Gray" FontFamily="Segoe UI" Margin="35,19,404,12" RenderTransformOrigin="0.5,0.5" FontSize="12">
  67. <TextBlock.RenderTransform>
  68. <TransformGroup>
  69. <ScaleTransform/>
  70. <SkewTransform/>
  71. <RotateTransform Angle="0.047"/>
  72. <TranslateTransform/>
  73. </TransformGroup>
  74. </TextBlock.RenderTransform>
  75. </TextBlock>
  76. <!-- Синяя полоса внизу -->
  77. <StackPanel Grid.Row="3" Background="#FF0078D7" VerticalAlignment="Center" Height="30">
  78. <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" />
  79. <TextBlock Text="{Binding SeasonInfo}" Width="594" Height="12" Foreground="White" RenderTransformOrigin="0.5,0.5" FontFamily="Segoe UI" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center">
  80. <TextBlock.RenderTransform>
  81. <TransformGroup>
  82. <ScaleTransform ScaleY="-1"/>
  83. <SkewTransform/>
  84. <RotateTransform/>
  85. <TranslateTransform/>
  86. </TransformGroup>
  87. </TextBlock.RenderTransform>
  88. </TextBlock>
  89. </StackPanel>
  90. </Grid>
  91. </Window>