wEventSee.xaml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <Page x:Class="teaTime.wEventSee"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:teaTime"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="wEventSee" Background="#D3DB94">
  10. <Page.Resources>
  11. <Style x:Key="FocusVisual">
  12. <Setter Property="Control.Template">
  13. <Setter.Value>
  14. <ControlTemplate>
  15. <Rectangle Margin="2" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
  16. </ControlTemplate>
  17. </Setter.Value>
  18. </Setter>
  19. </Style>
  20. <SolidColorBrush x:Key="Button.Static.Background" Color="#E8ECC8"/>
  21. <SolidColorBrush x:Key="Button.Static.Border" Color="#E8ECC8"/>
  22. <SolidColorBrush x:Key="Button.MouseOver.Background" Color="#E8ECC8"/>
  23. <SolidColorBrush x:Key="Button.MouseOver.Border" Color="#E8ECC8"/>
  24. <SolidColorBrush x:Key="Button.Pressed.Background" Color="#E8ECC8"/>
  25. <SolidColorBrush x:Key="Button.Pressed.Border" Color="#E8ECC8"/>
  26. <SolidColorBrush x:Key="Button.Disabled.Background" Color="#E8ECC8"/>
  27. <SolidColorBrush x:Key="Button.Disabled.Border" Color="#E8ECC8"/>
  28. <SolidColorBrush x:Key="Button.Disabled.Foreground" Color="#E8ECC8"/>
  29. <Style x:Key="RoundedButtonStyle2" TargetType="{x:Type Button}">
  30. <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
  31. <Setter Property="Background" Value="{StaticResource Button.Static.Background}"/>
  32. <Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border}"/>
  33. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
  34. <Setter Property="BorderThickness" Value="0"/>
  35. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  36. <Setter Property="VerticalContentAlignment" Value="Center"/>
  37. <Setter Property="Padding" Value="1"/>
  38. <Setter Property="Template">
  39. <Setter.Value>
  40. <ControlTemplate TargetType="{x:Type Button}">
  41. <Border x:Name="border" CornerRadius="90" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
  42. <ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
  43. </Border>
  44. <ControlTemplate.Triggers>
  45. <Trigger Property="IsDefaulted" Value="true">
  46. <Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
  47. </Trigger>
  48. <Trigger Property="IsMouseOver" Value="true">
  49. <Setter Property="Background" TargetName="border" Value="#E8ECC8"/>
  50. <Setter Property="BorderBrush" TargetName="border" Value="#E8ECC8"/>
  51. </Trigger>
  52. <Trigger Property="IsPressed" Value="true">
  53. <Setter Property="Background" TargetName="border" Value="#E8ECC8"/>
  54. <Setter Property="BorderBrush" TargetName="border" Value="#E8ECC8"/>
  55. </Trigger>
  56. <Trigger Property="IsEnabled" Value="false">
  57. <Setter Property="Background" TargetName="border" Value="{StaticResource Button.Disabled.Background}"/>
  58. <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Disabled.Border}"/>
  59. <Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground}"/>
  60. </Trigger>
  61. </ControlTemplate.Triggers>
  62. </ControlTemplate>
  63. </Setter.Value>
  64. </Setter>
  65. </Style>
  66. <BorderGapMaskConverter x:Key="BorderGapMaskConverter"/>
  67. <Style x:Key="GroupBoxStyle1" TargetType="{x:Type GroupBox}">
  68. <Setter Property="BorderBrush" Value="#D5DFE5"/>
  69. <Setter Property="BorderThickness" Value="1"/>
  70. <Setter Property="Template">
  71. <Setter.Value>
  72. <ControlTemplate TargetType="{x:Type GroupBox}">
  73. <Grid SnapsToDevicePixels="true">
  74. <Grid.ColumnDefinitions>
  75. <ColumnDefinition Width="6"/>
  76. <ColumnDefinition Width="Auto"/>
  77. <ColumnDefinition Width="*"/>
  78. <ColumnDefinition Width="6"/>
  79. </Grid.ColumnDefinitions>
  80. <Grid.RowDefinitions>
  81. <RowDefinition Height="Auto"/>
  82. <RowDefinition Height="Auto"/>
  83. <RowDefinition Height="*"/>
  84. <RowDefinition Height="6"/>
  85. </Grid.RowDefinitions>
  86. <Border BorderBrush="Transparent" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.ColumnSpan="4" Grid.Column="0" CornerRadius="4" Grid.Row="1" Grid.RowSpan="3"/>
  87. <Border BorderBrush="White" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="4" CornerRadius="4" Grid.Row="1" Grid.RowSpan="3">
  88. <Border.OpacityMask>
  89. <MultiBinding ConverterParameter="7" Converter="{StaticResource BorderGapMaskConverter}">
  90. <Binding ElementName="Header" Path="ActualWidth"/>
  91. <Binding Path="ActualWidth" RelativeSource="{RelativeSource Self}"/>
  92. <Binding Path="ActualHeight" RelativeSource="{RelativeSource Self}"/>
  93. </MultiBinding>
  94. </Border.OpacityMask>
  95. <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3">
  96. <Border BorderBrush="White" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2"/>
  97. </Border>
  98. </Border>
  99. <Border x:Name="Header" Grid.Column="1" Padding="3,1,3,0" Grid.Row="0" Grid.RowSpan="2">
  100. <ContentPresenter ContentSource="Header" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
  101. </Border>
  102. <ContentPresenter Grid.ColumnSpan="2" Grid.Column="1" Margin="{TemplateBinding Padding}" Grid.Row="2" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
  103. </Grid>
  104. </ControlTemplate>
  105. </Setter.Value>
  106. </Setter>
  107. </Style>
  108. </Page.Resources>
  109. <Grid>
  110. <Viewbox Stretch="Uniform" Grid.RowSpan="2">
  111. <Border Width="800" Height="450">
  112. <Grid>
  113. <TextBlock Text="Посмотреть мероприятие" FontFamily="{StaticResource GogoiaDeco}" FontSize="35" HorizontalAlignment="Left" Foreground="#A77748" Margin="45 15 0 0"/>
  114. <Rectangle Fill="#FAEDCD" RadiusX="20" RadiusY="20" Height="350" Width="700" Margin="0,73,0,27"/>
  115. <Button x:Name="bClose" Width="35" Height="35" Margin="0 15 50 0" Click="bClose_Click" HorizontalAlignment="Right" VerticalAlignment="Top" Background="#FAEDCD" BorderThickness="0" Style="{DynamicResource RoundedButtonStyle2}">
  116. <Button.Content>
  117. <Grid>
  118. <Line X1="3" Y1="3" X2="20" Y2="20" Stroke="#D3DB94" StrokeDashArray="0.01" StrokeDashCap="Round" StrokeThickness="5"/>
  119. <Line X1="3" Y1="20" X2="20" Y2="3" Stroke="#D3DB94" StrokeDashArray="0.01" StrokeDashCap="Round" StrokeThickness="5" />
  120. </Grid>
  121. </Button.Content>
  122. </Button>
  123. <Grid Height="350" Width="750" Margin="0,73,0,27">
  124. <Grid>
  125. <TextBlock Text="Дата" FontFamily="{StaticResource GogoiaDeco}" FontWeight="Bold" FontSize="20" Foreground="#A77748" HorizontalAlignment="Left" Margin="55,25,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.561,0.943" />
  126. <TextBlock x:Name="aDate" Width="100" Height="20" Margin="100,25,0,-10" VerticalAlignment="Top" HorizontalAlignment="Left" Foreground="#A77748" FontFamily="{StaticResource UniNeue-Regular}" Background="White"/>
  127. <TextBlock Text="Время" FontFamily="{StaticResource GogoiaDeco}" FontWeight="Bold" FontSize="20" Foreground="#A77748" HorizontalAlignment="Left" Margin="239,25,0,0" VerticalAlignment="Top" />
  128. <TextBlock x:Name="aTime" Width="100" Height="20" Margin="290 25 0 0" HorizontalAlignment="Left" VerticalAlignment="Top" Foreground="#A77748" FontFamily="{StaticResource UniNeue-Regular}" Background="White"/>
  129. <TextBlock Text="Название" FontFamily="{StaticResource GogoiaDeco}" FontWeight="Bold" FontSize="20" Foreground="#A77748" HorizontalAlignment="Left" Margin="55,59,0,0" VerticalAlignment="Top" />
  130. <TextBlock x:Name="aName" Text="" FontSize="10" HorizontalAlignment="Left" Margin="128,59,0,248" Foreground="#A77748" Width="262" TextWrapping="Wrap" Background="White" FontFamily="{StaticResource UniNeue-Regular}"/>
  131. <TextBlock Text="Тема" FontFamily="{StaticResource GogoiaDeco}" FontWeight="Bold" FontSize="20" Foreground="#A77748" HorizontalAlignment="Left" Margin="55,111,0,0" VerticalAlignment="Top" />
  132. <TextBlock x:Name="aTheme" Text="" FontSize="10" HorizontalAlignment="Left" Margin="128,111,0,196" Foreground="#A77748" Width="262" TextWrapping="Wrap" Background="White" FontFamily="{StaticResource UniNeue-Regular}"/>
  133. <TextBlock Text="Описание:" FontFamily="{StaticResource GogoiaDeco}" FontWeight="Bold" FontSize="20" HorizontalAlignment="Left" Margin="55,165,0,-65" Foreground="#A77748"/>
  134. <TextBlock x:Name="aDescript" Text="" FontSize="10" HorizontalAlignment="Left" Margin="128,165,0,21" Foreground="#A77748" Width="262" TextWrapping="Wrap" Background="White" FontFamily="{StaticResource UniNeue-Regular}"/>
  135. </Grid>
  136. <GroupBox Width="270" Height="320" Margin="370 0 0 0" BorderThickness="0">
  137. <GroupBox.Header >
  138. <Label FontFamily="{StaticResource GogoiaDeco}" FontWeight="Bold" FontSize="20" Foreground="#A77748">
  139. Содержание
  140. </Label>
  141. </GroupBox.Header>
  142. <StackPanel>
  143. <TabControl Name="myTabControl" TabStripPlacement="Top" Margin="0, 0, 0, 10" Height="275" BorderBrush="#D3DB94">
  144. <TabItem x:Name="tea" >
  145. <TabItem.Header>
  146. <Label FontFamily="{StaticResource GogoiaDeco}" FontSize="15" Foreground="#A77748">
  147. Чайная программа
  148. </Label>
  149. </TabItem.Header>
  150. <ListBox x:Name="teaProgramm" BorderThickness="0">
  151. <ListBox.ItemTemplate>
  152. <DataTemplate>
  153. <StackPanel Orientation="Horizontal">
  154. <TextBlock Text="{Binding num}" FontFamily="{StaticResource UniNeue-Regular}" Foreground="#A77748" FontSize="10" Width="50"/>
  155. <TextBlock Text="{Binding value}" FontFamily="{StaticResource UniNeue-Regular}" Foreground="#A77748" FontSize="10"/>
  156. </StackPanel>
  157. </DataTemplate>
  158. </ListBox.ItemTemplate>
  159. </ListBox>
  160. </TabItem>
  161. <TabItem x:Name="guests">
  162. <TabItem.Header >
  163. <Label FontFamily="{StaticResource GogoiaDeco}" FontSize="15" Foreground="#A77748">
  164. Участники
  165. </Label>
  166. </TabItem.Header>
  167. <StackPanel>
  168. <ListBox x:Name="guestsList" BorderThickness="0">
  169. <ListBox.ItemTemplate>
  170. <DataTemplate>
  171. <StackPanel Orientation="Horizontal">
  172. <TextBlock Text="{Binding num}" FontFamily="{StaticResource UniNeue-Regular}" Foreground="#A77748" FontSize="10" Width="50"/>
  173. <TextBlock Text="{Binding value}" FontFamily="{StaticResource UniNeue-Regular}" Foreground="#A77748" FontSize="10"/>
  174. </StackPanel>
  175. </DataTemplate>
  176. </ListBox.ItemTemplate>
  177. </ListBox>
  178. </StackPanel>
  179. </TabItem>
  180. </TabControl>
  181. </StackPanel>
  182. </GroupBox>
  183. </Grid>
  184. </Grid>
  185. </Border>
  186. </Viewbox>
  187. </Grid>
  188. </Page>