123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 |
- <Page x:Class="teaTime.wEventSee"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:teaTime"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800"
- Title="wEventSee" Background="#D3DB94">
- <Page.Resources>
- <Style x:Key="FocusVisual">
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate>
- <Rectangle Margin="2" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <SolidColorBrush x:Key="Button.Static.Background" Color="#E8ECC8"/>
- <SolidColorBrush x:Key="Button.Static.Border" Color="#E8ECC8"/>
- <SolidColorBrush x:Key="Button.MouseOver.Background" Color="#E8ECC8"/>
- <SolidColorBrush x:Key="Button.MouseOver.Border" Color="#E8ECC8"/>
- <SolidColorBrush x:Key="Button.Pressed.Background" Color="#E8ECC8"/>
- <SolidColorBrush x:Key="Button.Pressed.Border" Color="#E8ECC8"/>
- <SolidColorBrush x:Key="Button.Disabled.Background" Color="#E8ECC8"/>
- <SolidColorBrush x:Key="Button.Disabled.Border" Color="#E8ECC8"/>
- <SolidColorBrush x:Key="Button.Disabled.Foreground" Color="#E8ECC8"/>
- <Style x:Key="RoundedButtonStyle2" TargetType="{x:Type Button}">
- <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
- <Setter Property="Background" Value="{StaticResource Button.Static.Background}"/>
- <Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border}"/>
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
- <Setter Property="BorderThickness" Value="0"/>
- <Setter Property="HorizontalContentAlignment" Value="Center"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="Padding" Value="1"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border x:Name="border" CornerRadius="90" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
- <ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsDefaulted" Value="true">
- <Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Background" TargetName="border" Value="#E8ECC8"/>
- <Setter Property="BorderBrush" TargetName="border" Value="#E8ECC8"/>
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter Property="Background" TargetName="border" Value="#E8ECC8"/>
- <Setter Property="BorderBrush" TargetName="border" Value="#E8ECC8"/>
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Background" TargetName="border" Value="{StaticResource Button.Disabled.Background}"/>
- <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Disabled.Border}"/>
- <Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground}"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <BorderGapMaskConverter x:Key="BorderGapMaskConverter"/>
- <Style x:Key="GroupBoxStyle1" TargetType="{x:Type GroupBox}">
- <Setter Property="BorderBrush" Value="#D5DFE5"/>
- <Setter Property="BorderThickness" Value="1"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type GroupBox}">
- <Grid SnapsToDevicePixels="true">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="6"/>
- <ColumnDefinition Width="Auto"/>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="6"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="6"/>
- </Grid.RowDefinitions>
- <Border BorderBrush="Transparent" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.ColumnSpan="4" Grid.Column="0" CornerRadius="4" Grid.Row="1" Grid.RowSpan="3"/>
- <Border BorderBrush="White" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="4" CornerRadius="4" Grid.Row="1" Grid.RowSpan="3">
- <Border.OpacityMask>
- <MultiBinding ConverterParameter="7" Converter="{StaticResource BorderGapMaskConverter}">
- <Binding ElementName="Header" Path="ActualWidth"/>
- <Binding Path="ActualWidth" RelativeSource="{RelativeSource Self}"/>
- <Binding Path="ActualHeight" RelativeSource="{RelativeSource Self}"/>
- </MultiBinding>
- </Border.OpacityMask>
- <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3">
- <Border BorderBrush="White" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2"/>
- </Border>
- </Border>
- <Border x:Name="Header" Grid.Column="1" Padding="3,1,3,0" Grid.Row="0" Grid.RowSpan="2">
- <ContentPresenter ContentSource="Header" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
- </Border>
- <ContentPresenter Grid.ColumnSpan="2" Grid.Column="1" Margin="{TemplateBinding Padding}" Grid.Row="2" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Page.Resources>
- <Grid>
- <Viewbox Stretch="Uniform" Grid.RowSpan="2">
- <Border Width="800" Height="450">
- <Grid>
- <TextBlock Text="Посмотреть мероприятие" FontFamily="{StaticResource GogoiaDeco}" FontSize="35" HorizontalAlignment="Left" Foreground="#A77748" Margin="45 15 0 0"/>
- <Rectangle Fill="#FAEDCD" RadiusX="20" RadiusY="20" Height="350" Width="700" Margin="0,73,0,27"/>
- <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}">
- <Button.Content>
- <Grid>
- <Line X1="3" Y1="3" X2="20" Y2="20" Stroke="#D3DB94" StrokeDashArray="0.01" StrokeDashCap="Round" StrokeThickness="5"/>
- <Line X1="3" Y1="20" X2="20" Y2="3" Stroke="#D3DB94" StrokeDashArray="0.01" StrokeDashCap="Round" StrokeThickness="5" />
- </Grid>
- </Button.Content>
- </Button>
- <Grid Height="350" Width="750" Margin="0,73,0,27">
- <Grid>
- <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" />
- <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"/>
- <TextBlock Text="Время" FontFamily="{StaticResource GogoiaDeco}" FontWeight="Bold" FontSize="20" Foreground="#A77748" HorizontalAlignment="Left" Margin="239,25,0,0" VerticalAlignment="Top" />
- <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"/>
- <TextBlock Text="Название" FontFamily="{StaticResource GogoiaDeco}" FontWeight="Bold" FontSize="20" Foreground="#A77748" HorizontalAlignment="Left" Margin="55,59,0,0" VerticalAlignment="Top" />
- <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}"/>
- <TextBlock Text="Тема" FontFamily="{StaticResource GogoiaDeco}" FontWeight="Bold" FontSize="20" Foreground="#A77748" HorizontalAlignment="Left" Margin="55,111,0,0" VerticalAlignment="Top" />
- <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}"/>
- <TextBlock Text="Описание:" FontFamily="{StaticResource GogoiaDeco}" FontWeight="Bold" FontSize="20" HorizontalAlignment="Left" Margin="55,165,0,-65" Foreground="#A77748"/>
- <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}"/>
- </Grid>
- <GroupBox Width="270" Height="320" Margin="370 0 0 0" BorderThickness="0">
- <GroupBox.Header >
- <Label FontFamily="{StaticResource GogoiaDeco}" FontWeight="Bold" FontSize="20" Foreground="#A77748">
- Содержание
- </Label>
- </GroupBox.Header>
- <StackPanel>
- <TabControl Name="myTabControl" TabStripPlacement="Top" Margin="0, 0, 0, 10" Height="275" BorderBrush="#D3DB94">
- <TabItem x:Name="tea" >
- <TabItem.Header>
- <Label FontFamily="{StaticResource GogoiaDeco}" FontSize="15" Foreground="#A77748">
- Чайная программа
- </Label>
- </TabItem.Header>
- <ListBox x:Name="teaProgramm" BorderThickness="0">
- <ListBox.ItemTemplate>
- <DataTemplate>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="{Binding num}" FontFamily="{StaticResource UniNeue-Regular}" Foreground="#A77748" FontSize="10" Width="50"/>
- <TextBlock Text="{Binding value}" FontFamily="{StaticResource UniNeue-Regular}" Foreground="#A77748" FontSize="10"/>
- </StackPanel>
- </DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
- </TabItem>
- <TabItem x:Name="guests">
- <TabItem.Header >
- <Label FontFamily="{StaticResource GogoiaDeco}" FontSize="15" Foreground="#A77748">
- Участники
- </Label>
- </TabItem.Header>
- <StackPanel>
- <ListBox x:Name="guestsList" BorderThickness="0">
- <ListBox.ItemTemplate>
- <DataTemplate>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="{Binding num}" FontFamily="{StaticResource UniNeue-Regular}" Foreground="#A77748" FontSize="10" Width="50"/>
- <TextBlock Text="{Binding value}" FontFamily="{StaticResource UniNeue-Regular}" Foreground="#A77748" FontSize="10"/>
- </StackPanel>
- </DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
- </StackPanel>
- </TabItem>
- </TabControl>
- </StackPanel>
- </GroupBox>
- </Grid>
- </Grid>
- </Border>
- </Viewbox>
- </Grid>
- </Page>
|