You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
254 lines
18 KiB
254 lines
18 KiB
<Window x:Class="Container.Win.LiveShow"
|
|
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:Container.ChildWindows"
|
|
xmlns:transc="clr-namespace:Transitionals.Controls;assembly=Transitionals"
|
|
xmlns:vlc="clr-namespace:Vlc.DotNet.Wpf;assembly=Vlc.DotNet.Wpf"
|
|
mc:Ignorable="d"
|
|
Title="LiveShow" Height="1080" Width="1920" Left="0" Top="0" Closing="WindowView_Closing" Topmost="True" WindowStyle="None" Loaded="Window_Loaded" Background="Transparent" AllowsTransparency="True">
|
|
<Grid x:Name="gradLive">
|
|
<Grid.Background>
|
|
<ImageBrush ImageSource="/Container;component/image/livebg.png" Stretch="UniformToFill" TileMode="None" />
|
|
</Grid.Background>
|
|
<Viewbox>
|
|
<Canvas Width="1080" Height="1920" Panel.ZIndex="191">
|
|
<vlc:VlcControl x:Name="control" Width="1080" Height="1920"/>
|
|
</Canvas>
|
|
</Viewbox>
|
|
<!--<transc:TransitionElement x:Name="mainp" Panel.ZIndex="91" Height="1080" Width="1920">
|
|
</transc:TransitionElement>-->
|
|
<Viewbox>
|
|
<Canvas Panel.ZIndex="190" Width="1080" Height="1920">
|
|
<Grid Width="1080" Height="1920" x:Name="gridMsg">
|
|
<!--<Grid.Background >
|
|
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1" Opacity="1">
|
|
<GradientStop Color="#262434" Offset="0"/>
|
|
<GradientStop Color="#7F84A4" Offset="1"/>
|
|
</LinearGradientBrush>
|
|
</Grid.Background>-->
|
|
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="164"></RowDefinition>
|
|
<RowDefinition Height="880"></RowDefinition>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
<RowDefinition Height="400"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Grid Grid.Row="0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition ></ColumnDefinition>
|
|
<!--<ColumnDefinition></ColumnDefinition>-->
|
|
</Grid.ColumnDefinitions>
|
|
<Grid Grid.Column="0" Width="500" Height="116" VerticalAlignment="Top" Margin="48 48 0 0" HorizontalAlignment="Left">
|
|
|
|
<Grid.Background>
|
|
<SolidColorBrush Opacity="0.25" Color="Black" x:Name="LogoBG"></SolidColorBrush>
|
|
</Grid.Background>
|
|
<Grid.Clip>
|
|
<RectangleGeometry x:Name="WinRect" RadiusX="58" RadiusY="58" Rect="0,0,500,116"/>
|
|
</Grid.Clip>
|
|
<Grid Grid.ColumnSpan="2">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="60"></RowDefinition>
|
|
<RowDefinition Height="56"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="106"></ColumnDefinition>
|
|
<ColumnDefinition Width="auto"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Border Grid.Column="0" Grid.RowSpan="2" Width="96" Height="96" Background="White" Margin="10 0 0 0">
|
|
<Border.Clip>
|
|
<RectangleGeometry RadiusX="48" RadiusY="48" Rect="0,0,96,96"/>
|
|
</Border.Clip>
|
|
<Image x:Name="ImgLogo" Stretch="Fill" >
|
|
</Image>
|
|
</Border>
|
|
<local:ScrollingTextControl Grid.Column="1" x:Name="TxtName" Grid.Row="0" FontSize="42" HorizontalAlignment="Left" VerticalAlignment="Bottom" FontWeight="Bold" MaxWidth="350" Content=" " Foreground="White" Margin="15 0 0 0" />
|
|
<!--<my:ScrollingTextControl Content="12345" Height="52" HorizontalAlignment="Left" Margin="10,10,0,0" x:Name="scrollingTextControl1" VerticalAlignment="Top" Width="121" Foreground="Black" />-->
|
|
<!--<my:ScrollingTextControl Grid.Column="1" x:Name="TxtName" Grid.Row="0" FontSize="42" HorizontalAlignment="Left" VerticalAlignment="Bottom" FontWeight="Bold" Content="小山日本料理" Width="350" Foreground="White" Margin="15 0 0 0" />-->
|
|
<!--<TextBlock Grid.Column="1" x:Name="TxtName" Grid.Row="0" FontSize="42" HorizontalAlignment="Left" VerticalAlignment="Bottom" FontWeight="Bold" Text="小山日本料理" Width="350" Foreground="White" Margin="15 0 0 0" > </TextBlock>-->
|
|
<TextBlock Grid.Column="1" x:Name="TxtDistance" Grid.Row="1" FontSize="24" HorizontalAlignment="Left" VerticalAlignment="Center" TextWrapping="Wrap" Text="L3 | L102" Width="350" Foreground="White" Margin="15 0 0 0" ></TextBlock>
|
|
</Grid>
|
|
|
|
</Grid>
|
|
<!--<Grid Grid.Column="1">
|
|
<TextBlock FontSize="24" HorizontalAlignment="Right" FontFamily="{StaticResource CNRegular}" VerticalAlignment="Center" TextWrapping="Wrap" Text="直播倒计时" Foreground="White" Margin="0 0 32 0"></TextBlock>
|
|
<TextBlock FontSize="36" HorizontalAlignment="Right" FontFamily="{StaticResource CNRegular}" VerticalAlignment="Center" TextWrapping="Wrap" Text="5:00s" Foreground="White" Margin="0 75 32 0"></TextBlock>
|
|
</Grid>-->
|
|
</Grid>
|
|
<Grid Grid.Row="1">
|
|
<Canvas Height="800" Width="180" x:Name="cvsGround" HorizontalAlignment="Left" Margin="48 80 0 0" ClipToBounds="True">
|
|
</Canvas>
|
|
|
|
</Grid>
|
|
<Grid Grid.Row="3" x:Name="gridCoupon" Visibility="Hidden">
|
|
<Grid Width="804" Height="256" VerticalAlignment="Top">
|
|
<Image Source="/Container;component/image/coupon.png" x:Name="iconImage" Width="804" Height="256" Stretch="Fill" >
|
|
</Image>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="277*"></ColumnDefinition>
|
|
<ColumnDefinition Width="125*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="36*"></RowDefinition>
|
|
<RowDefinition Height="61*"></RowDefinition>
|
|
<RowDefinition Height="29*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Grid.Column="0" Grid.Row="0" FontSize="40" HorizontalAlignment="Left" FontFamily="{StaticResource CNRegular}" FontWeight="Bold" VerticalAlignment="Bottom" TextWrapping="Wrap" Text="" x:Name="couponName" Foreground="White" Margin="44 0 0 0"></TextBlock>
|
|
<TextBlock Grid.Column="0" Grid.Row="1" FontSize="28" HorizontalAlignment="Left" FontFamily="{StaticResource CNRegular}" FontWeight="Bold" VerticalAlignment="Top" TextWrapping="Wrap" Text="" x:Name="couponIntro" Foreground="White" Margin="44 0 0 0" Opacity="0.6"></TextBlock>
|
|
<Grid Grid.Column="0" Grid.Row="2">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
<ColumnDefinition Width="auto"></ColumnDefinition>
|
|
<ColumnDefinition Width="auto"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Column="1" FontSize="32" HorizontalAlignment="Center" FontFamily="{StaticResource CNRegular}" FontWeight="Bold" VerticalAlignment="Center" TextWrapping="Wrap" x:Name="couponNum" Text="12/20" Foreground="White" Margin="0 0 10 0"></TextBlock>
|
|
<TextBlock Grid.Column="2" FontSize="28" HorizontalAlignment="Center" FontFamily="{StaticResource CNRegular}" FontWeight="Bold" VerticalAlignment="Center" TextWrapping="Wrap" Text="剩余" Foreground="White" Margin="10 0 0 0" Opacity="0.6"></TextBlock>
|
|
</Grid>
|
|
<Grid Grid.Column="1" Grid.Row="0" Grid.RowSpan="2">
|
|
<Image Width="144" Height="144" x:Name="couponQR" VerticalAlignment="Bottom" Source="/Container;component/image/QR.png"></Image>
|
|
</Grid>
|
|
<TextBlock Grid.Row="2" Grid.Column="1" FontSize="28" HorizontalAlignment="Center" FontFamily="{StaticResource CNRegular}" VerticalAlignment="Center" TextWrapping="Wrap" Text="扫码领取" Foreground="Black" ></TextBlock>
|
|
</Grid>
|
|
</Grid>
|
|
</Grid>
|
|
|
|
</Grid>
|
|
</Canvas>
|
|
</Viewbox>
|
|
<Canvas Panel.ZIndex="191" Name="loading" Visibility="Hidden">
|
|
<Grid Height="200" Width="200" Canvas.Left="860" Canvas.Top="440" Name="gLoading">
|
|
<Rectangle Name="Rect1" Height="50" Width="30" Fill="#FFFFFFFF" RadiusY="15" RadiusX="15" VerticalAlignment="Top" d:IsLocked="True"/>
|
|
<Rectangle Name="Rect2" Height="50" Width="30" Fill="#20FFFFFF" RadiusY="15" RadiusX="15" VerticalAlignment="Top" d:LayoutOverrides="Width" RenderTransformOrigin="0.5,2">
|
|
<Rectangle.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform/>
|
|
<SkewTransform/>
|
|
<RotateTransform Angle="45"/>
|
|
<TranslateTransform/>
|
|
</TransformGroup>
|
|
</Rectangle.RenderTransform>
|
|
</Rectangle>
|
|
|
|
<Rectangle Name="Rect3" Height="50" Width="30" Fill="#40FFFFFF" RadiusY="15" RadiusX="15" VerticalAlignment="Top" d:LayoutOverrides="Width" RenderTransformOrigin="0.5,2">
|
|
<Rectangle.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform/>
|
|
<SkewTransform/>
|
|
<RotateTransform Angle="90"/>
|
|
<TranslateTransform/>
|
|
</TransformGroup>
|
|
</Rectangle.RenderTransform>
|
|
</Rectangle>
|
|
|
|
<Rectangle Name="Rect4" Height="50" Width="30" Fill="#60FFFFFF" RadiusY="15" RadiusX="15" VerticalAlignment="Top" d:LayoutOverrides="Width" RenderTransformOrigin="0.5,2">
|
|
<Rectangle.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform/>
|
|
<SkewTransform/>
|
|
<RotateTransform Angle="135"/>
|
|
<TranslateTransform/>
|
|
</TransformGroup>
|
|
</Rectangle.RenderTransform>
|
|
</Rectangle>
|
|
|
|
<Rectangle Name="Rect5" Height="50" Width="30" Fill="#80FFFFFF" RadiusY="15" RadiusX="15" VerticalAlignment="Top" d:LayoutOverrides="Width" RenderTransformOrigin="0.5,2">
|
|
<Rectangle.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform/>
|
|
<SkewTransform/>
|
|
<RotateTransform Angle="180"/>
|
|
<TranslateTransform/>
|
|
</TransformGroup>
|
|
</Rectangle.RenderTransform>
|
|
</Rectangle>
|
|
|
|
<Rectangle Name="Rect6" Height="50" Width="30" Fill="#A0FFFFFF" RadiusY="15" RadiusX="15" VerticalAlignment="Top" d:LayoutOverrides="Width" RenderTransformOrigin="0.5,2">
|
|
<Rectangle.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform/>
|
|
<SkewTransform/>
|
|
<RotateTransform Angle="225"/>
|
|
<TranslateTransform/>
|
|
</TransformGroup>
|
|
</Rectangle.RenderTransform>
|
|
</Rectangle>
|
|
|
|
<Rectangle Name="Rect7" Height="50" Width="30" Fill="#C0FFFFFF" RadiusY="15" RadiusX="15" VerticalAlignment="Top" d:LayoutOverrides="Width" RenderTransformOrigin="0.5,2">
|
|
<Rectangle.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform/>
|
|
<SkewTransform/>
|
|
<RotateTransform Angle="270"/>
|
|
<TranslateTransform/>
|
|
</TransformGroup>
|
|
</Rectangle.RenderTransform>
|
|
</Rectangle>
|
|
|
|
<Rectangle Name="Rect8" Height="50" Width="30" Fill="#E0FFFFFF" RadiusY="15" RadiusX="15" VerticalAlignment="Top" d:LayoutOverrides="Width" RenderTransformOrigin="0.5,2">
|
|
<Rectangle.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform/>
|
|
<SkewTransform/>
|
|
<RotateTransform Angle="315"/>
|
|
<TranslateTransform/>
|
|
</TransformGroup>
|
|
</Rectangle.RenderTransform>
|
|
</Rectangle>
|
|
|
|
<Grid.Triggers>
|
|
<EventTrigger RoutedEvent="Page.Loaded">
|
|
<BeginStoryboard>
|
|
<Storyboard RepeatBehavior="Forever">
|
|
<!--Rect1-->
|
|
<ColorAnimation BeginTime="0:0:0.0" Storyboard.TargetName="Rect1" Duration="0:0:1" Storyboard.TargetProperty="Fill.Color" To="#00FFFFFF"/>
|
|
|
|
<!--Rect2-->
|
|
<ColorAnimation BeginTime="0:0:0.0" Storyboard.TargetName="Rect2" Duration="0:0:0.125" Storyboard.TargetProperty="Fill.Color" To="#00FFFFFF"/>
|
|
<ColorAnimation BeginTime="0:0:0.125" Storyboard.TargetName="Rect2" Duration="0:0:0.875" Storyboard.TargetProperty="Fill.Color" From="#FFFFFFFF" To="#20FFFFFF"/>
|
|
|
|
<!--Rect3-->
|
|
<ColorAnimation BeginTime="0:0:0.0" Storyboard.TargetName="Rect3" Duration="0:0:0.250" Storyboard.TargetProperty="Fill.Color" To="#00FFFFFF"/>
|
|
<ColorAnimation BeginTime="0:0:0.250" Storyboard.TargetName="Rect3" Duration="0:0:0.750" Storyboard.TargetProperty="Fill.Color" From="#FFFFFFFF" To="#40FFFFFF"/>
|
|
|
|
<!--Rect4-->
|
|
<ColorAnimation BeginTime="0:0:0.0" Storyboard.TargetName="Rect4" Duration="0:0:0.375" Storyboard.TargetProperty="Fill.Color" To="#00FFFFFF"/>
|
|
<ColorAnimation BeginTime="0:0:0.375" Storyboard.TargetName="Rect4" Duration="0:0:0.625" Storyboard.TargetProperty="Fill.Color" From="#FFFFFFFF" To="#60FFFFFF"/>
|
|
|
|
<!--Rect5-->
|
|
<ColorAnimation BeginTime="0:0:0.0" Storyboard.TargetName="Rect5" Duration="0:0:0.500" Storyboard.TargetProperty="Fill.Color" To="#00FFFFFF"/>
|
|
<ColorAnimation BeginTime="0:0:0.500" Storyboard.TargetName="Rect5" Duration="0:0:0.500" Storyboard.TargetProperty="Fill.Color" From="#FFFFFFFF" To="#80FFFFFF"/>
|
|
|
|
<!--Rect6-->
|
|
<ColorAnimation BeginTime="0:0:0.0" Storyboard.TargetName="Rect6" Duration="0:0:0.625" Storyboard.TargetProperty="Fill.Color" To="#00FFFFFF"/>
|
|
<ColorAnimation BeginTime="0:0:0.625" Storyboard.TargetName="Rect6" Duration="0:0:0.375" Storyboard.TargetProperty="Fill.Color" From="#FFFFFFFF" To="#A0FFFFFF"/>
|
|
|
|
<!--Rect7-->
|
|
<ColorAnimation BeginTime="0:0:0.0" Storyboard.TargetName="Rect7" Duration="0:0:0.750" Storyboard.TargetProperty="Fill.Color" To="#00FFFFFF"/>
|
|
<ColorAnimation BeginTime="0:0:0.750" Storyboard.TargetName="Rect7" Duration="0:0:0.250" Storyboard.TargetProperty="Fill.Color" From="#FFFFFFFF" To="#C0FFFFFF"/>
|
|
|
|
<!--Rect8-->
|
|
<ColorAnimation BeginTime="0:0:0.0" Storyboard.TargetName="Rect8" Duration="0:0:0.875" Storyboard.TargetProperty="Fill.Color" To="#00FFFFFF"/>
|
|
<ColorAnimation BeginTime="0:0:0.875" Storyboard.TargetName="Rect8" Duration="0:0:0.125" Storyboard.TargetProperty="Fill.Color" From="#FFFFFFFF" To="#E0FFFFFF"/>
|
|
</Storyboard>
|
|
</BeginStoryboard>
|
|
</EventTrigger>
|
|
</Grid.Triggers>
|
|
</Grid>
|
|
</Canvas>
|
|
|
|
<!--<Canvas Width="280" x:Name="cvsAgreeGround1" Margin="800 0 0 550" >
|
|
<Grid Canvas.Bottom="0" Canvas.Left="120" Width="80" Height="120" >
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="75"></RowDefinition>
|
|
<RowDefinition></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Grid.Row="0" Width="75" Height="75" Text="♥" Foreground="Red" FontSize="60"></TextBlock>
|
|
<TextBlock Grid.Row="1" x:Name="txtAgree1" Text="0" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="Red" FontSize="40" Margin="10 0 0 0"></TextBlock>
|
|
</Grid>
|
|
</Canvas>-->
|
|
</Grid>
|
|
</Window>
|
|
|