星火微课系统客户端
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

VideoClipWindow.xaml 27KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. <Window x:Class="XHWK.WKTool.VideoClipWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:XHWK.WKTool"
  7. mc:Ignorable="d"
  8. Title="VideoClipWindow" AllowsTransparency="True"
  9. ShowInTaskbar="True"
  10. WindowStartupLocation="CenterScreen"
  11. WindowStyle="None" BorderThickness="7" ResizeMode="CanMinimize" Height="1036" Width="1290" >
  12. <Window.Effect>
  13. <DropShadowEffect BlurRadius="10" Color="#bababa" Direction="80" ShadowDepth="0"/>
  14. </Window.Effect>
  15. <Window.Resources>
  16. <SolidColorBrush x:Key="SliderThumb.Static.Foreground" Color="#FFE5E5E5"/>
  17. <SolidColorBrush x:Key="SliderThumb.MouseOver.Background" Color="#FFDCECFC"/>
  18. <SolidColorBrush x:Key="SliderThumb.MouseOver.Border" Color="#FF7Eb4EA"/>
  19. <SolidColorBrush x:Key="SliderThumb.Pressed.Background" Color="#FFDAECFC"/>
  20. <SolidColorBrush x:Key="SliderThumb.Pressed.Border" Color="#FF569DE5"/>
  21. <SolidColorBrush x:Key="SliderThumb.Disabled.Background" Color="#FFF0F0F0"/>
  22. <SolidColorBrush x:Key="SliderThumb.Disabled.Border" Color="#FFD9D9D9"/>
  23. <SolidColorBrush x:Key="SliderThumb.Static.Background" Color="#FFF0F0F0"/>
  24. <SolidColorBrush x:Key="SliderThumb.Static.Border" Color="#FFACACAC"/>
  25. <ControlTemplate x:Key="SliderThumbHorizontalTop" TargetType="{x:Type Thumb}">
  26. <Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center">
  27. <Path x:Name="grip" Data="M 0,6 C0,6 5.5,0 5.5,0 5.5,0 11,6 11,6 11,6 11,18 11,18 11,18 0,18 0,18 0,18 0,6 0,6 z" Fill="{StaticResource SliderThumb.Static.Background}" Stretch="Fill" SnapsToDevicePixels="True" Stroke="{StaticResource SliderThumb.Static.Border}" StrokeThickness="1" UseLayoutRounding="True" VerticalAlignment="Center"/>
  28. </Grid>
  29. <ControlTemplate.Triggers>
  30. <Trigger Property="IsMouseOver" Value="true">
  31. <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/>
  32. <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/>
  33. </Trigger>
  34. <Trigger Property="IsDragging" Value="true">
  35. <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/>
  36. <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/>
  37. </Trigger>
  38. <Trigger Property="IsEnabled" Value="false">
  39. <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/>
  40. <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/>
  41. </Trigger>
  42. </ControlTemplate.Triggers>
  43. </ControlTemplate>
  44. <ControlTemplate x:Key="SliderThumbHorizontalBottom" TargetType="{x:Type Thumb}">
  45. <Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center">
  46. <Path x:Name="grip" Data="M 0,12 C0,12 5.5,18 5.5,18 5.5,18 11,12 11,12 11,12 11,0 11,0 11,0 0,0 0,0 0,0 0,12 0,12 z" Fill="{StaticResource SliderThumb.Static.Background}" Stretch="Fill" SnapsToDevicePixels="True" Stroke="{StaticResource SliderThumb.Static.Border}" StrokeThickness="1" UseLayoutRounding="True" VerticalAlignment="Center"/>
  47. </Grid>
  48. <ControlTemplate.Triggers>
  49. <Trigger Property="IsMouseOver" Value="true">
  50. <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/>
  51. <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/>
  52. </Trigger>
  53. <Trigger Property="IsDragging" Value="true">
  54. <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/>
  55. <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/>
  56. </Trigger>
  57. <Trigger Property="IsEnabled" Value="false">
  58. <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/>
  59. <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/>
  60. </Trigger>
  61. </ControlTemplate.Triggers>
  62. </ControlTemplate>
  63. <SolidColorBrush x:Key="SliderThumb.Track.Border" Color="#FFD6D6D6"/>
  64. <SolidColorBrush x:Key="SliderThumb.Track.Background" Color="#FFE7EAEA"/>
  65. <Style x:Key="RepeatButtonTransparent" TargetType="{x:Type RepeatButton}">
  66. <Setter Property="OverridesDefaultStyle" Value="true"/>
  67. <Setter Property="Background" Value="Transparent"/>
  68. <Setter Property="Focusable" Value="false"/>
  69. <Setter Property="IsTabStop" Value="false"/>
  70. <Setter Property="Template">
  71. <Setter.Value>
  72. <ControlTemplate TargetType="{x:Type RepeatButton}">
  73. <Rectangle Fill="{TemplateBinding Background}" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}"/>
  74. </ControlTemplate>
  75. </Setter.Value>
  76. </Setter>
  77. </Style>
  78. <ControlTemplate x:Key="SliderThumbHorizontalDefault" TargetType="{x:Type Thumb}">
  79. <Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center">
  80. <Path x:Name="grip" Data="M 0,0 C0,0 11,0 11,0 11,0 11,18 11,18 11,18 0,18 0,18 0,18 0,0 0,0 z" Fill="{StaticResource SliderThumb.Static.Background}" Stretch="Fill" SnapsToDevicePixels="True" Stroke="{StaticResource SliderThumb.Static.Border}" StrokeThickness="1" UseLayoutRounding="True" VerticalAlignment="Center"/>
  81. </Grid>
  82. <ControlTemplate.Triggers>
  83. <Trigger Property="IsMouseOver" Value="true">
  84. <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/>
  85. <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/>
  86. </Trigger>
  87. <Trigger Property="IsDragging" Value="true">
  88. <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/>
  89. <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/>
  90. </Trigger>
  91. <Trigger Property="IsEnabled" Value="false">
  92. <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/>
  93. <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/>
  94. </Trigger>
  95. </ControlTemplate.Triggers>
  96. </ControlTemplate>
  97. <ControlTemplate x:Key="SliderHorizontal" TargetType="{x:Type Slider}">
  98. <Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="True">
  99. <Grid>
  100. <Grid.RowDefinitions>
  101. <RowDefinition Height="Auto"/>
  102. <RowDefinition Height="Auto" MinHeight="{TemplateBinding MinHeight}"/>
  103. <RowDefinition Height="Auto"/>
  104. </Grid.RowDefinitions>
  105. <TickBar x:Name="TopTick" Fill="{TemplateBinding Foreground}" Height="4" Margin="0,0,0,2" Placement="Top" Grid.Row="0" Visibility="Collapsed"/>
  106. <TickBar x:Name="BottomTick" Fill="{TemplateBinding Foreground}" Height="4" Margin="0,2,0,0" Placement="Bottom" Grid.Row="2" Visibility="Collapsed"/>
  107. <Border x:Name="TrackBackground" BorderBrush="{StaticResource SliderThumb.Track.Border}" BorderThickness="1" Background="{StaticResource SliderThumb.Track.Background}" Height="4.0" Margin="5,0" Grid.Row="1" VerticalAlignment="center">
  108. <Canvas Margin="-6,-1">
  109. <Rectangle x:Name="PART_SelectionRange" Fill="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" Height="4.0" Visibility="Hidden"/>
  110. </Canvas>
  111. </Border>
  112. <Track x:Name="PART_Track" Grid.Row="1">
  113. <Track.DecreaseRepeatButton>
  114. <RepeatButton Command="{x:Static Slider.DecreaseLarge}" Style="{StaticResource RepeatButtonTransparent}"/>
  115. </Track.DecreaseRepeatButton>
  116. <Track.Thumb>
  117. <Thumb x:Name="Thumb" Focusable="False" Height="18" OverridesDefaultStyle="True" Template="{StaticResource SliderThumbHorizontalDefault}" VerticalAlignment="Center" Width="11"/>
  118. </Track.Thumb>
  119. </Track>
  120. <Track x:Name="PART_TrackLeft" Grid.Row="1">
  121. <Track.DecreaseRepeatButton>
  122. <RepeatButton Command="{x:Static Slider.DecreaseLarge}" Style="{StaticResource RepeatButtonTransparent}"/>
  123. </Track.DecreaseRepeatButton>
  124. <Track.Thumb>
  125. <Thumb x:Name="ThumbLeft" Focusable="False" Height="10" OverridesDefaultStyle="True" Template="{StaticResource SliderThumbHorizontalDefault}" VerticalAlignment="Center" Width="8" BorderBrush="#FFF12525" Foreground="#FFF33333" Background="#FFE81A1A" AutomationProperties.IsOffscreenBehavior="Offscreen"/>
  126. </Track.Thumb>
  127. </Track>
  128. </Grid>
  129. </Border>
  130. <ControlTemplate.Triggers>
  131. <Trigger Property="TickPlacement" Value="TopLeft">
  132. <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
  133. <Setter Property="Template" TargetName="Thumb" Value="{StaticResource SliderThumbHorizontalTop}"/>
  134. <Setter Property="Margin" TargetName="TrackBackground" Value="5,2,5,0"/>
  135. </Trigger>
  136. <Trigger Property="TickPlacement" Value="BottomRight">
  137. <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
  138. <Setter Property="Template" TargetName="Thumb" Value="{StaticResource SliderThumbHorizontalBottom}"/>
  139. <Setter Property="Margin" TargetName="TrackBackground" Value="5,0,5,2"/>
  140. </Trigger>
  141. <Trigger Property="TickPlacement" Value="Both">
  142. <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
  143. <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
  144. </Trigger>
  145. <Trigger Property="IsSelectionRangeEnabled" Value="true">
  146. <Setter Property="Visibility" TargetName="PART_SelectionRange" Value="Visible"/>
  147. </Trigger>
  148. <Trigger Property="IsKeyboardFocused" Value="true">
  149. <Setter Property="Foreground" TargetName="Thumb" Value="Blue"/>
  150. </Trigger>
  151. </ControlTemplate.Triggers>
  152. </ControlTemplate>
  153. <ControlTemplate x:Key="SliderThumbVerticalLeft" TargetType="{x:Type Thumb}">
  154. <Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center">
  155. <Path x:Name="grip" Data="M 6,11 C6,11 0,5.5 0,5.5 0,5.5 6,0 6,0 6,0 18,0 18,0 18,0 18,11 18,11 18,11 6,11 6,11 z" Fill="{StaticResource SliderThumb.Static.Background}" Stretch="Fill" Stroke="{StaticResource SliderThumb.Static.Border}"/>
  156. </Grid>
  157. <ControlTemplate.Triggers>
  158. <Trigger Property="IsMouseOver" Value="true">
  159. <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/>
  160. <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/>
  161. </Trigger>
  162. <Trigger Property="IsDragging" Value="true">
  163. <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/>
  164. <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/>
  165. </Trigger>
  166. <Trigger Property="IsEnabled" Value="false">
  167. <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/>
  168. <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/>
  169. </Trigger>
  170. </ControlTemplate.Triggers>
  171. </ControlTemplate>
  172. <ControlTemplate x:Key="SliderThumbVerticalRight" TargetType="{x:Type Thumb}">
  173. <Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center">
  174. <Path x:Name="grip" Data="M 12,11 C12,11 18,5.5 18,5.5 18,5.5 12,0 12,0 12,0 0,0 0,0 0,0 0,11 0,11 0,11 12,11 12,11 z" Fill="{StaticResource SliderThumb.Static.Background}" Stretch="Fill" Stroke="{StaticResource SliderThumb.Static.Border}"/>
  175. </Grid>
  176. <ControlTemplate.Triggers>
  177. <Trigger Property="IsMouseOver" Value="true">
  178. <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/>
  179. <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/>
  180. </Trigger>
  181. <Trigger Property="IsDragging" Value="true">
  182. <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/>
  183. <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/>
  184. </Trigger>
  185. <Trigger Property="IsEnabled" Value="false">
  186. <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/>
  187. <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/>
  188. </Trigger>
  189. </ControlTemplate.Triggers>
  190. </ControlTemplate>
  191. <ControlTemplate x:Key="SliderThumbVerticalDefault" TargetType="{x:Type Thumb}">
  192. <Grid HorizontalAlignment="Center" UseLayoutRounding="True" VerticalAlignment="Center">
  193. <Path x:Name="grip" Data="M0.5,0.5 L18.5,0.5 18.5,11.5 0.5,11.5z" Fill="{StaticResource SliderThumb.Static.Background}" Stretch="Fill" Stroke="{StaticResource SliderThumb.Static.Border}"/>
  194. </Grid>
  195. <ControlTemplate.Triggers>
  196. <Trigger Property="IsMouseOver" Value="true">
  197. <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Background}"/>
  198. <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.MouseOver.Border}"/>
  199. </Trigger>
  200. <Trigger Property="IsDragging" Value="true">
  201. <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Background}"/>
  202. <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Pressed.Border}"/>
  203. </Trigger>
  204. <Trigger Property="IsEnabled" Value="false">
  205. <Setter Property="Fill" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Background}"/>
  206. <Setter Property="Stroke" TargetName="grip" Value="{StaticResource SliderThumb.Disabled.Border}"/>
  207. </Trigger>
  208. </ControlTemplate.Triggers>
  209. </ControlTemplate>
  210. <ControlTemplate x:Key="SliderVertical" TargetType="{x:Type Slider}">
  211. <Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="True">
  212. <Grid>
  213. <Grid.ColumnDefinitions>
  214. <ColumnDefinition Width="Auto"/>
  215. <ColumnDefinition MinWidth="{TemplateBinding MinWidth}" Width="Auto"/>
  216. <ColumnDefinition Width="Auto"/>
  217. </Grid.ColumnDefinitions>
  218. <TickBar x:Name="TopTick" Grid.Column="0" Fill="{TemplateBinding Foreground}" Margin="0,0,2,0" Placement="Left" Visibility="Collapsed" Width="4"/>
  219. <TickBar x:Name="BottomTick" Grid.Column="2" Fill="{TemplateBinding Foreground}" Margin="2,0,0,0" Placement="Right" Visibility="Collapsed" Width="4"/>
  220. <Border x:Name="TrackBackground" BorderBrush="{StaticResource SliderThumb.Track.Border}" BorderThickness="1" Background="{StaticResource SliderThumb.Track.Background}" Grid.Column="1" HorizontalAlignment="center" Margin="0,5" Width="4.0">
  221. <Canvas Margin="-1,-6">
  222. <Rectangle x:Name="PART_SelectionRange" Fill="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" Visibility="Hidden" Width="4.0"/>
  223. </Canvas>
  224. </Border>
  225. <Track x:Name="PART_Track" Grid.Column="1">
  226. <Track.DecreaseRepeatButton>
  227. <RepeatButton Command="{x:Static Slider.DecreaseLarge}" Style="{StaticResource RepeatButtonTransparent}"/>
  228. </Track.DecreaseRepeatButton>
  229. <Track.IncreaseRepeatButton>
  230. <RepeatButton Command="{x:Static Slider.IncreaseLarge}" Style="{StaticResource RepeatButtonTransparent}"/>
  231. </Track.IncreaseRepeatButton>
  232. <Track.Thumb>
  233. <Thumb x:Name="Thumb" Focusable="False" Height="11" OverridesDefaultStyle="True" Template="{StaticResource SliderThumbVerticalDefault}" VerticalAlignment="Top" Width="18"/>
  234. </Track.Thumb>
  235. </Track>
  236. </Grid>
  237. </Border>
  238. <ControlTemplate.Triggers>
  239. <Trigger Property="TickPlacement" Value="TopLeft">
  240. <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
  241. <Setter Property="Template" TargetName="Thumb" Value="{StaticResource SliderThumbVerticalLeft}"/>
  242. <Setter Property="Margin" TargetName="TrackBackground" Value="2,5,0,5"/>
  243. </Trigger>
  244. <Trigger Property="TickPlacement" Value="BottomRight">
  245. <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
  246. <Setter Property="Template" TargetName="Thumb" Value="{StaticResource SliderThumbVerticalRight}"/>
  247. <Setter Property="Margin" TargetName="TrackBackground" Value="0,5,2,5"/>
  248. </Trigger>
  249. <Trigger Property="TickPlacement" Value="Both">
  250. <Setter Property="Visibility" TargetName="TopTick" Value="Visible"/>
  251. <Setter Property="Visibility" TargetName="BottomTick" Value="Visible"/>
  252. </Trigger>
  253. <Trigger Property="IsSelectionRangeEnabled" Value="true">
  254. <Setter Property="Visibility" TargetName="PART_SelectionRange" Value="Visible"/>
  255. </Trigger>
  256. <Trigger Property="IsKeyboardFocused" Value="true">
  257. <Setter Property="Foreground" TargetName="Thumb" Value="Blue"/>
  258. </Trigger>
  259. </ControlTemplate.Triggers>
  260. </ControlTemplate>
  261. </Window.Resources>
  262. <Grid Name="Main_Grid">
  263. <Grid.RowDefinitions>
  264. <RowDefinition Height="50*"></RowDefinition>
  265. <RowDefinition Height="750*"></RowDefinition>
  266. <RowDefinition Height="auto"></RowDefinition>
  267. <RowDefinition Height="147*"></RowDefinition>
  268. </Grid.RowDefinitions>
  269. <Grid Background="#3f6fff" Grid.Row="0" MouseLeftButtonDown="Title_MouseLeftButtonDown">
  270. <TextBlock Text="视频剪辑" Foreground="#FFFFFF" FontSize="16" Padding="10,13,0,0"/>
  271. <Button Cursor="Hand" Grid.Row="0" x:Name="btnDown" Content="×" Foreground="#FFFFFF" FontSize="25" Padding="10,0,10,0" HorizontalAlignment="Right" Click="Button_Click"/>
  272. </Grid>
  273. <Grid x:Name="GridMovie" Grid.Row="1" Background="Black">
  274. <MediaElement Stretch="Fill" LoadedBehavior="Manual" Name="QS_Movie" MediaOpened="Element_MediaOpened" Loaded="QS_Movie_Loaded" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Grid.ColumnSpan="2" Volume="1"/>
  275. <!--<Button Name="LeftButton" Width="50" Height="50" HorizontalAlignment="Left" VerticalAlignment="Center" Click="Left_Click" Visibility="Hidden" Margin="0,147">上一个</Button>
  276. <Button Name="RightButton" Width="50" Height="50" HorizontalAlignment="Right" VerticalAlignment="Center" Click="Right_Click" Visibility="Hidden" Grid.Column="1" Margin="0,147">下一个</Button>-->
  277. </Grid>
  278. <!--<StackPanel Grid.Row="2" Orientation="Horizontal">-->
  279. <Grid Grid.Row="2">
  280. <Grid.ColumnDefinitions>
  281. <ColumnDefinition Width="50*"/>
  282. <ColumnDefinition Width="1796*"/>
  283. <ColumnDefinition Width="60*"/>
  284. </Grid.ColumnDefinitions>
  285. <Grid Grid.Column="0">
  286. <Button Cursor="Hand" x:Name="Play" Margin="0" Click="Play_Click" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
  287. <StackPanel Orientation="Vertical">
  288. <Image x:Name="ImgPlay" Source="/Images/Clip_Play.png" Visibility="Visible"/>
  289. <Image x:Name="ImgPause" Source="/Images/Clip_Pause.png" Visibility="Collapsed"/>
  290. </StackPanel>
  291. </Button>
  292. <!--<Button Height="40" Width="40" x:Name="Pause" Click="Pause_Click" Margin="45,0,0,0">暂停</Button>-->
  293. </Grid>
  294. <!--<Grid Grid.Row="0" Grid.Column="1">
  295. <Slider x:Name="timelineSlider" Minimum="0" VerticalAlignment="Center" PreviewMouseLeftButtonDown="timelineMDown" PreviewMouseLeftButtonUp="timelineMUp" BorderThickness="0,5,0,0" />
  296. </Grid>
  297. <Grid Grid.Row="1" Grid.Column="1">
  298. <local:UC_MultiRangeSlider x:Name="UcSlider" Minimum="0" Maximum="1000" SilderWidth="1807" SliderTickFrequency="1" Grid.RowSpan="2" PreviewMouseLeftButtonDown="UcSlider_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="UcSlider_PreviewMouseLeftButtonUp" PreviewMouseMove="UcSlider_PreviewMouseMove"/>
  299. </Grid>-->
  300. <Grid Name="Control_Progress" Grid.Column="1" Height="54">
  301. <local:UC_MultiRangeSlider x:Name="UcSlider" Minimum="0" Maximum="1000" Grid.Row="2" SilderWidth="1807" SliderTickFrequency="1" Margin="0,18,5,0" Grid.RowSpan="2" PreviewMouseLeftButtonDown="UcSlider_PreviewMouseLeftButtonDown" PreviewMouseLeftButtonUp="UcSlider_PreviewMouseLeftButtonUp" PreviewMouseMove="UcSlider_PreviewMouseMove" VerticalAlignment="Top"/>
  302. <Slider x:Name="timelineSlider" Minimum="0" VerticalAlignment="Top" PreviewMouseLeftButtonDown="timelineMDown" PreviewMouseLeftButtonUp="timelineMUp" BorderThickness="0,5,0,0" Margin="12,5,7,0" />
  303. </Grid>
  304. </Grid>
  305. <!--</StackPanel>-->
  306. <Grid Name="Movie_Control" Grid.Row="3" Margin="0">
  307. <Grid.RowDefinitions>
  308. <RowDefinition Height="53*"/>
  309. <RowDefinition Height="100*"/>
  310. </Grid.RowDefinitions>
  311. <Grid.ColumnDefinitions>
  312. <ColumnDefinition Width="5*"/>
  313. <ColumnDefinition Width="90*"/>
  314. <ColumnDefinition Width="1086*"/>
  315. <ColumnDefinition Width="90*"/>
  316. <ColumnDefinition Width="5*"/>
  317. </Grid.ColumnDefinitions>
  318. <Grid Grid.Row="0" Grid.Column="1">
  319. <Label x:Name="LblProgress" Content="00:00:00" FontSize="{Binding WordSize18}" VerticalAlignment="Center"/>
  320. </Grid>
  321. <Grid Grid.Row="0" Grid.Column="2">
  322. <StackPanel VerticalAlignment="Center" Orientation="Horizontal" Margin="0" HorizontalAlignment="Center">
  323. <Label Content="开始时间:" HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Center" FontSize="{Binding WordSize18}"/>
  324. <TextBox x:Name="TxbStartTime" HorizontalAlignment="Left" Margin="5,0,0,0" Text="00:00:00.000" VerticalAlignment="Center" Width="130" LostFocus="TxbStartTime_LostFocus" FontSize="{Binding WordSize18}"/>
  325. <Label Content="结束时间:" HorizontalAlignment="Center" Margin="20,0,0,0" VerticalAlignment="Center" FontSize="{Binding WordSize18}"/>
  326. <TextBox x:Name="TxbEndTime" HorizontalAlignment="Center" Margin="5,0,0,0" Text="00:00:00.000" VerticalAlignment="Center" Width="130" LostFocus="TxbEndTime_LostFocus" FontSize="{Binding WordSize18}"/>
  327. <Label Content="视频时长:" HorizontalAlignment="Right" Margin="20,0,0,0" VerticalAlignment="Center" FontSize="{Binding WordSize18}"/>
  328. <Label x:Name="LblVideoTime" Content="00:00:00.000" HorizontalAlignment="Right" Margin="5,0,10,0" VerticalAlignment="Center" FontSize="{Binding WordSize18}"/>
  329. </StackPanel>
  330. </Grid>
  331. <Grid Grid.Row="0" Grid.Column="3" >
  332. <Grid.ColumnDefinitions>
  333. <ColumnDefinition Width="30*"/>
  334. <ColumnDefinition Width="120*"/>
  335. </Grid.ColumnDefinitions>
  336. <Grid.RowDefinitions>
  337. <RowDefinition Height="27*"/>
  338. <RowDefinition Height="27*"/>
  339. </Grid.RowDefinitions>
  340. <Image Grid.Column="0" Grid.Row="1" Source="/Images/Clip_Volunme.png" Name="Horn" Margin="0"/>
  341. <Slider Grid.Row="1" Grid.Column="1" Name="Volunme" Minimum="0" Maximum="1" Value="{Binding ElementName=QS_Movie,Path=Volume,Mode=TwoWay}" Margin="0" VerticalAlignment="Center" />
  342. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,10,0">
  343. </StackPanel>
  344. </Grid>
  345. <Grid Grid.Row="1" Grid.Column="2">
  346. <Button x:Name="BtnClip" Cursor="Hand" Content=" 剪 辑 " Foreground="White" FontSize="{Binding WordSize20}" Click="BtnClip_Click" HorizontalAlignment="Center" VerticalAlignment="Center">
  347. <Button.Template>
  348. <ControlTemplate TargetType="{x:Type Button}">
  349. <Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="8" Padding="10,5">
  350. <Border.Background>#3f6fff</Border.Background>
  351. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Content="{TemplateBinding ContentControl.Content}" />
  352. </Border>
  353. </ControlTemplate>
  354. </Button.Template>
  355. </Button>
  356. </Grid>
  357. </Grid>
  358. </Grid>
  359. </Window>