-
Notifications
You must be signed in to change notification settings - Fork 0
/
Details.xaml
128 lines (111 loc) · 6.84 KB
/
Details.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<Page
x:Class="AcFunVideo.DetailsPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:AcFunVideo"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ACView="using:AcFunVideo.View"
xmlns:canvas="using:Microsoft.Graphics.Canvas.UI.Xaml"
mc:Ignorable="d">
<Page.Resources>
<DataTemplate x:Key="videoSinglePartView">
<ACView:VideoSinglePartView></ACView:VideoSinglePartView>
</DataTemplate>
<local:SliderValueConverter x:Key="SliderValueConverter"/>
</Page.Resources>
<Grid SizeChanged="Grid_SizeChanged" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid>
<!-- 播放器 Grid -->
<Grid x:Name="PlayerGrid"
Loaded="PlayerGrid_Loaded"
VerticalAlignment="Top"
Height="200" Background="Black">
<MediaElement Stretch="UniformToFill"
x:Name="Player"
/>
<canvas:CanvasAnimatedControl Visibility="Visible" x:Name="DanmuCanvas" Draw="DanmuCanvas_Draw"
Update="DanmuCanvas_Update"
CreateResources="DanmuCanvas_CreateResources"/>
<Grid Visibility="Collapsed" Background="Gray" Height="30" VerticalAlignment="Top" x:Name="PlayerTopGrid">
<Image HorizontalAlignment="Left" Height="30" Width="30" Source="IMGS/Zone/more icon.png" >
</Image>
<TextBlock Text="画质 :" Foreground="White" Margin="40,0,0,0" FontSize="20" Width="50" HorizontalAlignment="Left"/>
<ComboBox SelectionChanged="DescriptionSelectComboBox_SelectionChanged" x:Name="DescriptionSelectComboBox" Height="28" FontSize="13" SelectedIndex="0" Foreground="White" HorizontalAlignment="Left" Margin="100,1,0,0">
<x:String>标清</x:String>
</ComboBox>
<Button ClickMode="Release" Margin="0,0,10,0" Height="20" Width="30" BorderThickness="0" HorizontalAlignment="Right">
<Button.Background>
<ImageBrush Stretch="Fill" ImageSource="IMGS/Detail/DanmuOff.png"/>
</Button.Background>
</Button>
</Grid>
<Grid Visibility="Collapsed" Background="Gray" Height="50" VerticalAlignment="Bottom" x:Name="PlayerBotGrid">
<Button Style="{StaticResource ACBlackButtonStyle}" FontSize="30" Foreground="White" Height="50" Width="50" Background="#0078D8" Content="" FontFamily="Segoe MDL2 Assets"/>
<Button x:Name="FullScreenButton" Click="FullScreenButton_Click" Style="{StaticResource ACBlackButtonStyle}" Background="#0078D8" Foreground="White" FontSize="30" Height="50" Width="50"
FontFamily="Segoe MDL2 Assets" HorizontalAlignment="Right" />
<Grid x:Name="TimeControlGrid" Width="250">
<TextBlock Foreground="White" Text="00:00:00" VerticalAlignment="Bottom"/>
<Slider Width="250" VerticalAlignment="Center"
ThumbToolTipValueConverter="{StaticResource SliderValueConverter}"
HorizontalAlignment="Center" x:Name="TimeControler"
ValueChanged="TimeControler_ValueChanged"
PointerExited="TimeControler_PointerExited"
>
</Slider>
</Grid>
</Grid>
<Grid Margin="0,30,0,50" Background="Transparent" Tapped="PlayerGrid_Tapped"></Grid>
</Grid>
<!-- 视频详情 -->
<ScrollViewer Margin="0,210,0,0" x:Name="rootScrollViewer" ScrollViewer.VerticalScrollBarVisibility="Visible" >
<StackPanel>
<TextBlock Margin="10,10,0,0" x:Name="TitleBlock"
TextWrapping="Wrap" >
</TextBlock>
<Pivot x:Name="DetailPivot" Margin="0,0">
<PivotItem Margin="0,-0,0,0" x:Name="CommentPivot">
<PivotItem.Header>
<TextBlock Text="评论" FontSize="20" Foreground="Black"/>
</PivotItem.Header>
</PivotItem>
<PivotItem Margin="0,-0,0,0" x:Name="SortPivot" Visibility="Collapsed">
<PivotItem.Header>
<TextBlock Text="剧集" FontSize="20" Foreground="Black"/>
</PivotItem.Header>
<ListView x:Name="VideoPartGridView" BorderThickness=".5"
ItemTemplate="{StaticResource videoSinglePartView}"
ContainerContentChanging="VideoPartGridView_ContainerContentChanging"
ItemClick="VideoPartGridView_ItemClick"
ScrollViewer.VerticalScrollMode="Disabled"
IsItemClickEnabled="True"
BorderBrush="Black" Margin="2">
</ListView>
</PivotItem>
<PivotItem Margin="0,-40,0,0">
</PivotItem>
</Pivot>
</StackPanel>
</ScrollViewer>
</Grid>
</Grid>
<Page.BottomAppBar>
<CommandBar x:Name="MYAppBar" >
<AppBarButton x:Name="GoDownload" Label="查看下载" Click="GoDownload_Click">
<AppBarButton.Icon>
<FontIcon Glyph="" />
</AppBarButton.Icon>
</AppBarButton>
<AppBarButton x:Name="Select" Label="选集" Click="Select_Click">
<AppBarButton.Icon>
<FontIcon Glyph="" />
</AppBarButton.Icon>
</AppBarButton>
<AppBarButton x:Name="Download" Label="下载" Click="Download_Click">
<AppBarButton.Icon>
<FontIcon Glyph="" />
</AppBarButton.Icon>
</AppBarButton>
</CommandBar>
</Page.BottomAppBar>
</Page>