|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262 |
- <Window
- x:Class="XHWK.WKTool.VideoClipWindow"
- 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:local="clr-namespace:XHWK.WKTool"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- Title="VideoClipWindow"
- Width="1290"
- Height="1036"
- AllowsTransparency="True"
- BorderThickness="7"
- ResizeMode="CanMinimize"
- ShowInTaskbar="True"
- WindowStartupLocation="CenterScreen"
- WindowStyle="None"
- mc:Ignorable="d">
- <Window.Effect>
- <DropShadowEffect
- BlurRadius="10"
- Direction="80"
- ShadowDepth="0"
- Color="#bababa" />
- </Window.Effect>
- <Window.Resources />
- <Grid Name="MainGrid">
- <Grid.RowDefinitions>
- <RowDefinition Height="50*" />
- <RowDefinition Height="750*" />
- <RowDefinition Height="auto" />
- <RowDefinition Height="147*" />
- </Grid.RowDefinitions>
- <Grid
- Grid.Row="0"
- Background="#4597FF"
- MouseLeftButtonDown="Title_MouseLeftButtonDown">
- <TextBlock
- Padding="10,13,0,0"
- FontSize="16"
- Foreground="#FFFFFF"
- Text="视频剪辑" />
- <Button
- x:Name="BtnDown"
- Grid.Row="0"
- Padding="10,0,10,0"
- HorizontalAlignment="Right"
- Click="Button_Click"
- Content="×"
- Cursor="Hand"
- FontSize="25"
- Foreground="#FFFFFF" />
- </Grid>
- <Grid
- x:Name="GridMovie"
- Grid.Row="1"
- Background="Black">
- <MediaElement
- Name="QsMovie"
- Grid.ColumnSpan="2"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- Loaded="QS_Movie_Loaded"
- LoadedBehavior="Manual"
- MediaOpened="Element_MediaOpened"
- Stretch="Fill"
- Volume="1" />
- <!--<Button Name="LeftButton" Width="50" Height="50" HorizontalAlignment="Left" VerticalAlignment="Center" Click="Left_Click" Visibility="Hidden" Margin="0,147">上一个</Button>
- <Button Name="RightButton" Width="50" Height="50" HorizontalAlignment="Right" VerticalAlignment="Center" Click="Right_Click" Visibility="Hidden" Grid.Column="1" Margin="0,147">下一个</Button>-->
- </Grid>
- <!--<StackPanel Grid.Row="2" Orientation="Horizontal">-->
- <Grid Grid.Row="2">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="50*" />
- <ColumnDefinition Width="1796*" />
- <ColumnDefinition Width="60*" />
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="0">
- <Button
- x:Name="Play"
- Margin="0"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- Click="Play_Click"
- Cursor="Hand">
- <StackPanel Orientation="Vertical">
- <Image
- x:Name="ImgPlay"
- Source="/Images/Clip_Play.png"
- Visibility="Visible" />
- <Image
- x:Name="ImgPause"
- Source="/Images/Clip_Pause.png"
- Visibility="Collapsed" />
- </StackPanel>
- </Button>
-
- </Grid>
- <!--<Grid Grid.Row="0" Grid.Column="1">
- <Slider x:Name="timelineSlider" Minimum="0" VerticalAlignment="Center" PreviewMouseLeftButtonDown="timelineMDown" PreviewMouseLeftButtonUp="timelineMUp" BorderThickness="0,5,0,0" />
- </Grid>
- <Grid Grid.Row="1" Grid.Column="1">
- <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"/>
- </Grid>-->
- <Grid
- Name="ControlProgress"
- Grid.Column="1"
- Height="54">
- <local:UC_MultiRangeSlider
- x:Name="UcSlider"
- Margin="0,18,5,0"
- VerticalAlignment="Top"
- Maximum="1000"
- Minimum="0"
- PreviewMouseLeftButtonDown="UcSlider_PreviewMouseLeftButtonDown"
- PreviewMouseLeftButtonUp="UcSlider_PreviewMouseLeftButtonUp"
- PreviewMouseMove="UcSlider_PreviewMouseMove"
- SilderWidth="1807"
- SliderTickFrequency="1" />
- <Slider
- x:Name="TimelineSlider"
- Margin="12,5,7,0"
- VerticalAlignment="Top"
- BorderThickness="0,5,0,0"
- Minimum="0"
- PreviewMouseLeftButtonDown="TimelineMDown"
- PreviewMouseLeftButtonUp="TimelineMUp" />
- </Grid>
- </Grid>
- <!--</StackPanel>-->
- <Grid
- Name="MovieControl"
- Grid.Row="3"
- Margin="0">
- <Grid.RowDefinitions>
- <RowDefinition Height="53*" />
- <RowDefinition Height="100*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="5*" />
- <ColumnDefinition Width="90*" />
- <ColumnDefinition Width="1086*" />
- <ColumnDefinition Width="90*" />
- <ColumnDefinition Width="5*" />
- </Grid.ColumnDefinitions>
- <Grid Grid.Row="0" Grid.Column="1">
- <Label
- x:Name="LblProgress"
- VerticalAlignment="Center"
- Content="00:00:00"
- FontSize="{Binding WordSize18}" />
- </Grid>
- <Grid Grid.Row="0" Grid.Column="2">
- <StackPanel
- Margin="0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <Label
- Margin="10,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Content="开始时间:"
- FontSize="{Binding WordSize18}" />
- <TextBox
- x:Name="TxbStartTime"
- Width="130"
- Margin="5,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- FontSize="{Binding WordSize18}"
- LostFocus="TxbStartTime_LostFocus"
- Text="00:00:00.000" />
-
- <Label
- Margin="20,0,0,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Content="结束时间:"
- FontSize="{Binding WordSize18}" />
- <TextBox
- x:Name="TxbEndTime"
- Width="130"
- Margin="5,0,0,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="{Binding WordSize18}"
- LostFocus="TxbEndTime_LostFocus"
- Text="00:00:00.000" />
-
- <Label
- Margin="20,0,0,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Content="视频时长:"
- FontSize="{Binding WordSize18}" />
- <Label
- x:Name="LblVideoTime"
- Margin="5,0,10,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Content="00:00:00.000"
- FontSize="{Binding WordSize18}" />
- </StackPanel>
- </Grid>
- <Grid Grid.Row="0" Grid.Column="3">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="30*" />
- <ColumnDefinition Width="120*" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="27*" />
- <RowDefinition Height="27*" />
- </Grid.RowDefinitions>
- <Image
- Name="Horn"
- Grid.Row="1"
- Grid.Column="0"
- Margin="0"
- Source="/Images/Clip_Volunme.png" />
- <Slider
- Name="Volunme"
- Grid.Row="1"
- Grid.Column="1"
- Margin="0"
- VerticalAlignment="Center"
- Maximum="1"
- Minimum="0"
- Value="{Binding ElementName=QsMovie, Path=Volume, Mode=TwoWay}" />
-
- </Grid>
- <Grid Grid.Row="1" Grid.Column="2">
-
- <Button
- x:Name="BtnClip"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Click="BtnClip_Click"
- Content=" 剪 辑 "
- Cursor="Hand"
- FontSize="{Binding WordSize20}"
- Foreground="White">
- <Button.Template>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border
- Padding="10,5"
- BorderBrush="{TemplateBinding Control.BorderBrush}"
- BorderThickness="1"
- CornerRadius="8">
- <Border.Background>#4597FF</Border.Background>
- <ContentPresenter
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Content="{TemplateBinding ContentControl.Content}" />
- </Border>
- </ControlTemplate>
- </Button.Template>
- </Button>
- </Grid>
- </Grid>
-
- </Grid>
- </Window>
|