-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
1602 lines (1436 loc) · 119 KB
/
MainWindow.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<dmskin:DMSkinWindow x:Class="素材合成.MainWindow"
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:VlcWinform="clr-namespace:Vlc.DotNet.Forms;assembly=Vlc.DotNet.Forms"
xmlns:colorPicker="clr-namespace:ColorPickerLib.Controls;assembly=ColorPickerLib"
xmlns:WindowsFormsHost="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
xmlns:WinformControl="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
mc:Ignorable="d"
xmlns:Loading="clr-namespace:素材合成"
xmlns:VLCPLAYER="clr-namespace:Vlc.DotNet.Wpf;assembly=Vlc.DotNet.Wpf"
xmlns:MyPopup="clr-namespace:Helper"
xmlns:attached="clr-namespace:DMSkin.Attached;assembly=DMSkin"
xmlns:dmskin="clr-namespace:DMSkin;assembly=DMSkin"
WindowStartupLocation="CenterScreen"
Background="Transparent"
WindowStyle="None"
BorderBrush="Transparent"
AllowsTransparency="false"
attached:Corner.Value="6"
Name="DahePlayer"
ResizeMode="CanMinimize"
Icon="cbstx-o6h9h-001.ico"
Title="MainWindow" Height="670" Width="1020">
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Styles/Base.xaml" />
<ResourceDictionary Source="/Styles/CommonStyles.xaml" />
</ResourceDictionary.MergedDictionaries>
<!--<converters:EnumToBooleanConverter x:Key="EnumToBooleanConverter" />-->
<Style TargetType="TextBlock" x:Key="myText13">
<Setter Property="Foreground" Value="#666"></Setter>
<Setter Property="FontSize" Value="13"></Setter>
<Setter Property="FontFamily" Value="微软雅黑"></Setter>
<Setter Property="VerticalAlignment" Value="Center"></Setter>
</Style>
<Style TargetType="TextBlock" x:Key="myText18">
<Setter Property="Foreground" Value="#666"></Setter>
<Setter Property="FontSize" Value="18"></Setter>
<Setter Property="FontFamily" Value="微软雅黑"></Setter>
<Setter Property="VerticalAlignment" Value="Center"></Setter>
</Style>
<Style TargetType="ProgressBar" x:Key="SimpleProgressBar">
<Setter Property="Background" Value="Gray" />
<Setter Property="Maximum" Value="1" />
<Setter Property="Value" Value="0" />
<Setter Property="Height" Value="8" />
<Setter Property="IsTabStop" Value="False" />
<Setter Property="Foreground" Value="{StaticResource niceBlack}" />
<Setter Property="SnapsToDevicePixels" Value="True" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ProgressBar">
<Grid x:Name="Root" >
<Border x:Name="PART_Track" BorderThickness="1" Background="{StaticResource niceGray}"
CornerRadius="5"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
<Border x:Name="PART_Indicator" HorizontalAlignment="Left" Background="{TemplateBinding Foreground}"
CornerRadius="5"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="Orientation" Value="Vertical">
<Setter Property="LayoutTransform" TargetName="Root" >
<Setter.Value>
<RotateTransform Angle="-90" />
</Setter.Value>
</Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="AduGroupBox" TargetType="{x:Type GroupBox}">
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="SnapsToDevicePixels" Value="True"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="BorderThickness" Value="3"/>
<Setter Property="BorderBrush" Value="#60ffffff"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type GroupBox}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="40"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Border Grid.Row="0" Padding="10,4" VerticalAlignment="Center"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}">
<TextBlock FontSize="{TemplateBinding FontSize}" FontWeight="{TemplateBinding FontWeight}" Text="{TemplateBinding Header}" />
</Border>
<Border Grid.Row="1" Padding="0">
<ContentPresenter Grid.Row="1" Margin="{TemplateBinding Padding}"/>
</Border>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<DataTemplate x:Key="PlayListNode" >
<Border x:Name="border" BorderThickness="0" BorderBrush="#EDEDED" Margin="0,0" >
<Grid Margin="3,0" Width="auto" Height="auto" Background="Transparent">
<Grid.ColumnDefinitions >
<ColumnDefinition Width="20" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Button Command="{Binding btnDeletePlayListNode}" CommandParameter="{Binding ElementName=txtDeleteInfo}"
Style="{StaticResource btnBaseDelete}" Width="15" Height="15"
></Button>
<TextBlock Grid.Column="1" Text="{Binding VideoPath}" x:Name="txtDeleteInfo" Foreground="White"></TextBlock>
</Grid>
</Border>
<DataTemplate.Triggers>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListBoxItem}},Path=IsSelected}" Value="true">
<Setter TargetName="border" Property="BorderBrush" Value="#FF4493" />
<Setter TargetName="border" Property="BorderThickness" Value="2,0,0,0" />
</DataTrigger>
</DataTemplate.Triggers>
</DataTemplate>
<DataTemplate x:Key="FindListTemplate" >
<Grid >
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
</Grid>
<Image Stretch="Fill" Source="{Binding VideoImg}" Width="20" Height="20"></Image>
<TextBlock Grid.Column="1" TextWrapping="Wrap" Foreground="White" FontSize="14" Text="{Binding VideoName}"></TextBlock>
</Grid>
</DataTemplate>
<DataTemplate x:Key="OutputDataTemplate">
<Border CornerRadius="5" Width="280" BorderThickness="1" BorderBrush="Green" VerticalAlignment="Center" Height="120" Background="Black" Margin="5,5,5,5" >
<Grid>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Grid Grid.Row="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="120"/>
<ColumnDefinition Width="160"/>
</Grid.ColumnDefinitions>
<TextBlock Foreground="White" FontSize="16" VerticalAlignment="Center">屏幕名称</TextBlock>
<TextBlock Grid.Column="1" Text="{Binding ScreenName}" Foreground="White" FontSize="16" VerticalAlignment="Center" ></TextBlock>
</Grid>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="120"/>
<ColumnDefinition Width="160"/>
</Grid.ColumnDefinitions>
<TextBlock Foreground="White" FontSize="16" VerticalAlignment="Center">选择视频</TextBlock>
<ComboBox Grid.Column="1" VerticalContentAlignment="Center" SelectedValue="{Binding VideoPath}" ItemsSource="{Binding PathList}"></ComboBox>
</Grid>
<Button Grid.Row="2" Height="30" Width="140" Style="{StaticResource btnBase}" Click="Button_Click">输出所选视频</Button>
</Grid>
</Border>
</DataTemplate>
<Style TargetType="ListBoxItem" x:Key="ListBoxItemEmptyTemplate1234">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ListBoxItem">
<Border x:Name="BorderBackground" BorderBrush="Transparent" BorderThickness="0" Background="Transparent" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="true">
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsSelected" Value="true">
<Setter Property="Background" TargetName="BorderBackground" Value="Transparent" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsFocused" Value="true">
<Setter Property="Background" Value="Transparent"></Setter>
<Setter Property="BorderBrush" Value="Transparent"></Setter>
</Trigger>
<Trigger Property="IsSelected" Value="true">
<Setter Property="Background" Value="Transparent"></Setter>
<Setter Property="BorderBrush" Value="Transparent"></Setter>
</Trigger>
</Style.Triggers>
</Style>
<DataTemplate x:Key="Page2ImageTemplate" >
<Grid Height="30" >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="60"></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<TextBlock VerticalAlignment="Center" Text="{Binding T时间}" Foreground="White"></TextBlock>
<TextBlock Grid.Column="1" TextWrapping="WrapWithOverflow" Text="{Binding Cmd灯光}" FontSize="10" VerticalAlignment="Center" Foreground="White"></TextBlock>
</Grid>
</DataTemplate>
<DataTemplate x:Key="PlayList" >
<Border x:Name="border" BorderThickness="0" BorderBrush="#EDEDED" Margin="0,0" >
<Grid Margin="0,5" Width="290" Height="60" Background="Transparent">
<Grid.ColumnDefinitions >
<ColumnDefinition Width="20" />
<ColumnDefinition Width="20" />
<ColumnDefinition Width="40" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="40" />
</Grid.ColumnDefinitions>
<TextBox Grid.ColumnSpan="2" Foreground="Black" FontSize="16" Height="35" Margin="2,5" HorizontalContentAlignment="Center"
VerticalAlignment="Center" VerticalContentAlignment="Center" Background="White" BorderThickness="1" Text="{Binding ID,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBox>
<Image Grid.Column="2" Stretch="Fill" Source="{Binding VideoImg}" Width="40" Height="40"></Image>
<TextBlock Grid.Column="3" Text="{Binding VideoPath}" x:Name="txtDeleteInfo" Foreground="White" VerticalAlignment="Center" TextWrapping="WrapWithOverflow" Width="160" MaxHeight="60"></TextBlock>
<Image Cursor="Hand" Grid.Column="4" Stretch="Fill" Source="img/Enter delete-2.png" Width="40" Height="40" PreviewMouseLeftButtonUp="Image_PreviewMouseLeftButtonUp"></Image>
</Grid>
</Border>
<DataTemplate.Triggers>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListBoxItem}},Path=IsSelected}" Value="true">
<Setter TargetName="border" Property="BorderBrush" Value="#FF4493" />
<Setter TargetName="border" Property="BorderThickness" Value="2,0,0,0" />
</DataTrigger>
</DataTemplate.Triggers>
</DataTemplate>
<DataTemplate x:Key="Group" >
<Border x:Name="border" BorderThickness="1" VerticalAlignment="Center" CornerRadius="4" Width="149" Height="90" >
<Border.Background>
<ImageBrush ImageSource="{Binding VideoImg}"></ImageBrush>
</Border.Background>
</Border>
</DataTemplate>
<DataTemplate x:Key="VideoGroupNode" >
<Border x:Name="border" BorderThickness="1,1,0,0" Width="1000" BorderBrush="#E6E7EA" CornerRadius="0" Background="Transparent" Margin="0">
<Grid >
<Grid.ColumnDefinitions >
<ColumnDefinition Width="200" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Border BorderThickness="0" BorderBrush="#E6E7EA" VerticalAlignment="Top">
<Grid Height="100" Width="200">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="5"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="33"></RowDefinition>
<RowDefinition Height="33"></RowDefinition>
<RowDefinition Height="33"></RowDefinition>
</Grid.RowDefinitions>
<Grid Background="{StaticResource niceBlack}"></Grid>
<Button Click="上移_Click" Cursor="Hand" Grid.Column="1">
<Button.Template>
<ControlTemplate TargetType="{x:Type Button}">
<Grid Background="{StaticResource niceGray}" x:Name="PART_Background">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="10"></ColumnDefinition>
<ColumnDefinition Width="0.4*"></ColumnDefinition>
<ColumnDefinition Width="0.6*"></ColumnDefinition>
<ColumnDefinition Width="10"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Image Grid.Column="1" Source="img/切片1.png" Height="16" Width="16" VerticalAlignment="Center" ></Image>
<TextBlock Grid.Column="2" FontSize="13" Foreground="#333" VerticalAlignment="Center">上移</TextBlock>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" TargetName="PART_Background" Value="{StaticResource niceHover}"></Setter>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Background" TargetName="PART_Background" Value="{StaticResource niceHover}"></Setter>
<Setter Property="Foreground" Value="Gold"></Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Button.Template>
</Button>
<Button Click="下移_Click" Cursor="Hand" Grid.Column="2">
<Button.Template>
<ControlTemplate TargetType="{x:Type Button}">
<Grid Background="{StaticResource niceGray}" x:Name="PART_Background">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1"></ColumnDefinition>
<ColumnDefinition Width="10"></ColumnDefinition>
<ColumnDefinition Width="0.4*"></ColumnDefinition>
<ColumnDefinition Width="0.6*"></ColumnDefinition>
<ColumnDefinition Width="10"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid Background="{StaticResource niceBlackEnable}"></Grid>
<Image Grid.Column="2" Source="img/切片2.png" Height="16" Width="16" ></Image>
<TextBlock Grid.Column="3" FontSize="13" Foreground="#333" VerticalAlignment="Center">下移</TextBlock>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" TargetName="PART_Background" Value="{StaticResource niceHover}"></Setter>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Background" TargetName="PART_Background" Value="{StaticResource niceHover}"></Setter>
<Setter Property="Foreground" Value="Gold"></Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Button.Template>
</Button>
<Button Click="删除_Click" Cursor="Hand" Grid.Column="3">
<Button.Template>
<ControlTemplate TargetType="{x:Type Button}">
<Grid Background="{StaticResource niceGray}" x:Name="PART_Background">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1"></ColumnDefinition>
<ColumnDefinition Width="10"></ColumnDefinition>
<ColumnDefinition Width="0.4*"></ColumnDefinition>
<ColumnDefinition Width="0.6*"></ColumnDefinition>
<ColumnDefinition Width="10"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid Background="{StaticResource niceBlackEnable}"></Grid>
<Image Grid.Column="2" Source="img/切片3.png" Height="15" Width="15" ></Image>
<TextBlock Grid.Column="3" FontSize="13" Foreground="#333" VerticalAlignment="Center">删除</TextBlock>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" TargetName="PART_Background" Value="{StaticResource niceHover}"></Setter>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Background" TargetName="PART_Background" Value="{StaticResource niceHover}"></Setter>
<Setter Property="Foreground" Value="Gold"></Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Button.Template>
</Button>
<CheckBox Style="{StaticResource chkPassWord}" Checked="CheckBox_Checked_逆时针"
IsChecked="{Binding 逆时针旋转90, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
HorizontalAlignment="Left" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" Height="30"
Width="150" Foreground="#333" Margin="10,0" VerticalAlignment="Center"
FontSize="13" >逆时针旋转90度</CheckBox>
<CheckBox Style="{StaticResource chkPassWord}" Checked="CheckBox_Checked_顺时针"
IsChecked="{Binding 顺时针旋转90, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
HorizontalAlignment="Left" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3" Height="30"
Width="150" Foreground="#333" Margin="10,0" VerticalAlignment="Center"
FontSize="13" >顺时针旋转90度</CheckBox>
</Grid>
</Border>
<ListBox Grid.Column="4" ScrollViewer.CanContentScroll="True" WindowChrome.IsHitTestVisibleInChrome="True" Margin="13,5,0,5"
ScrollViewer.VerticalScrollBarVisibility="Disabled" ScrollViewer.HorizontalScrollBarVisibility="Disabled"
ItemContainerStyle="{StaticResource ListBoxItemEmptyTemplate1234}" SelectionChanged="ListBox_SelectionChanged"
ItemTemplate="{StaticResource Group}" ItemsSource="{Binding VideoNode }" HorizontalAlignment="Left" >
<ListBox.Template>
<ControlTemplate TargetType="{x:Type ListBox}">
<WrapPanel Orientation="Horizontal" IsItemsHost="True" ScrollViewer.CanContentScroll="True"
ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Disabled"/>
</ControlTemplate>
</ListBox.Template>
</ListBox>
</Grid>
</Border>
</DataTemplate>
<ControlTemplate x:Key="ChannelCheckBoxTemplate" TargetType="RadioButton">
<Grid HorizontalAlignment="Left" Margin="0">
<Grid Width="16" Height="16" x:Name="CheckBoxGrid" HorizontalAlignment="Left">
<Ellipse x:Name="CheckBoxCircular" Stroke="#000" StrokeThickness="1" Fill="Transparent"
Width="{Binding ElementName=CheckBoxGrid,Path=Width}"
Height="{Binding ElementName=CheckBoxGrid,Path=Height}"/>
<Ellipse x:Name="CheckBoxPoint"
HorizontalAlignment="Stretch" Fill="White"
VerticalAlignment="Stretch" Margin="4"/>
</Grid>
<TextBlock x:Name="RadioLabel" FontWeight="Regular" FontFamily="微软雅黑" Foreground="Black" FontSize="13"
Text="{TemplateBinding Content}" Margin="25,0,0,0" VerticalAlignment="Center"/>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="RadioLabel" Property="Foreground" Value="Black"></Setter>
<Setter TargetName="CheckBoxPoint" Property="Fill" Value="{StaticResource niceBlackEnable}"/>
<Setter TargetName="CheckBoxCircular" Property="Stroke" Value="{StaticResource niceBlackEnable}"></Setter>
</Trigger>
<Trigger Property="IsChecked" Value="False">
<Setter TargetName="CheckBoxPoint" Property="Fill" Value="Transparent"/>
<Setter TargetName="RadioLabel" Property="Foreground" Value="#666"></Setter>
<Setter TargetName="CheckBoxCircular" Property="Stroke" Value="#BBB"></Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</ResourceDictionary>
</Window.Resources>
<Border CornerRadius="6" Background="Transparent" BorderBrush="#CBCBCB" BorderThickness="0.5">
<Grid Background="Transparent" >
<Grid.RowDefinitions>
<RowDefinition Height="50"></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<!--+++++++++++++++++++++++++++++++++++++头部++++++++++++++++++++++++++++++++++++++++-->
<Border CornerRadius="0,0,0,0" Height="50" Background="{StaticResource niceBlackEnable}">
<Grid >
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition Width="180"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid HorizontalAlignment="Left" Margin="20,0,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="160" />
<ColumnDefinition Width="100" />
</Grid.ColumnDefinitions>
<TextBlock FontSize="25" Foreground="Red" FontWeight="Bold" ></TextBlock>
<TextBlock Grid.Column="1" Text="" Foreground="White" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" Margin="8,0,0,0"/>
<Image Grid.Column="3" Source="img/logo.png"/>
</Grid>
<Grid HorizontalAlignment="Right" Grid.Column="1" Background="Transparent"
WindowChrome.IsHitTestVisibleInChrome="True"
>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="30" />
<ColumnDefinition Width="30" />
<ColumnDefinition Width="30" />
<ColumnDefinition Width="30" />
<ColumnDefinition Width="10" />
</Grid.ColumnDefinitions>
<Border Grid.Column="1" Background="Transparent" BorderThickness="1,0,0,0" BorderBrush="Black" Margin="10,15"></Border>
<Button
Click="ButtonMin_Click"
Grid.Column="2"
x:Name="Min"
Style="{StaticResource btnMin}" />
<Button
Click="ButtonMin_Click"
Grid.Column="3"
x:Name="Close"
Foreground="White"
IsTabStop="False"
Style="{StaticResource btnClose }" />
</Grid>
</Grid>
</Border>
<!--+++++++++++++++++++++++++++++++++++++头部++++++++++++++++++++++++++++++++++++++++-->
<!--+++++++++++++++++++++++++++++++++++++Body++++++++++++++++++++++++++++++++++++++++-->
<Border BorderBrush="#CBCBCB" BorderThickness="1" Background="Transparent" Grid.Row="1" >
<Grid>
<Grid Background="#F6F6F8" Visibility="Visible" Name="GridStepOne">
<Grid.RowDefinitions>
<RowDefinition Height="50"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="60"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="200" ></ColumnDefinition>
<ColumnDefinition ></ColumnDefinition>
<ColumnDefinition Width="300"></ColumnDefinition>
</Grid.ColumnDefinitions>
<TextBlock FontSize="18" FontWeight="Bold" Foreground="{StaticResource niceBlack}" FontFamily="微软雅黑" Margin="10,10,0,0">素材列表</TextBlock>
<Button Name="btnAdd" Grid.Column="1" Style="{StaticResource btnBaseCancel}"
Height="30" Width="150" Foreground="White" FontSize="13" Click="添加素材_Click" HorizontalAlignment="Left" Margin="15,10">导入素材</Button>
<TextBlock Grid.Column="2" FontSize="13" HorizontalAlignment="Right" FontWeight="Normal" Foreground="{StaticResource niceBlack}" FontFamily="微软雅黑" Margin="0,10,10,0">1/6 导入素材</TextBlock>
<!--素材组 列表-->
<Grid Grid.Row="1" Grid.ColumnSpan="3" Grid.Column="0" >
<ListBox ItemContainerStyle="{StaticResource ListBoxItemEmptyTemplate}" SelectionChanged="ListBox_SelectionChanged"
ItemTemplate="{StaticResource VideoGroupNode}" ItemsSource="{Binding VideoGroupNodeList }" Margin="0" >
<ListBox.Template>
<ControlTemplate TargetType="{x:Type ListBox}">
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Visible" Style="{StaticResource AduScrollViewer}">
<WrapPanel Orientation="Vertical" IsItemsHost="True" ScrollViewer.CanContentScroll="True" ScrollViewer.VerticalScrollBarVisibility="Visible"/>
</ScrollViewer>
</ControlTemplate>
</ListBox.Template>
</ListBox>
</Grid>
<!--合成-->
<Grid Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2">
<Grid.ColumnDefinitions>
<ColumnDefinition ></ColumnDefinition>
<ColumnDefinition Width="180"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition Width="180"></ColumnDefinition>
<ColumnDefinition Width="30"></ColumnDefinition>
<ColumnDefinition Width="150"></ColumnDefinition>
<ColumnDefinition Width="10"></ColumnDefinition>
</Grid.ColumnDefinitions>
<TextBlock FontSize="13" VerticalAlignment="Center" HorizontalAlignment="Right">最多生成 <Run Foreground="{StaticResource niceBlackEnable}" Text="{Binding TotalCount}"></Run> 种</TextBlock>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Grid.Column="1" >
<TextBlock FontSize="13" Margin="20,0,0,0" VerticalAlignment="Center" >生成</TextBlock>
<Border Width="50" Height="20" CornerRadius="5" Background="{StaticResource niceGray}" Margin="15,0" >
<TextBox Background="Transparent" BorderThickness="0" VerticalAlignment="Center" Foreground="{StaticResource niceBlack}" FontSize="13"
VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Name="tbOutPutCount">0</TextBox>
</Border>
<TextBlock FontSize="13" VerticalAlignment="Center" Margin="5,0,0,0">种</TextBlock>
</StackPanel>
<!--<CheckBox Style="{StaticResource chkPassWord}" IsChecked="{Binding 顺时针旋转90, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Center" Grid.Row="4" Grid.Column="2" Height="30" Width="150" Foreground="#333"
FontSize="13" Visibility="Collapsed" >顺时针旋转90度</CheckBox>-->
</Grid>
<Button Name="btnOut" Grid.Row="4" Grid.Column="1" VerticalAlignment="Center" Style="{StaticResource btnBaseCancel}" Height="30" Width="150" Foreground="White"
FontSize="13" Click="合成视频_Click" >下一步</Button>
</Grid>
</Grid>
<Grid Background="#F6F6F8" Visibility="Collapsed" Name="GridStepTwo">
<Grid.RowDefinitions>
<RowDefinition Height="{Binding RowHeight}"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="{Binding RowHeight}"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="50"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="{Binding ColumnWidth}" ></ColumnDefinition>
<ColumnDefinition ></ColumnDefinition>
<ColumnDefinition Width="{Binding ColumnWidth}"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Border Grid.Row="1" Grid.Column="1" BorderThickness="2" CornerRadius="5" >
<Border.BorderBrush>
<DrawingBrush Viewport="0,0,20,20" ViewportUnits="Absolute" TileMode="Tile">
<DrawingBrush.Drawing>
<DrawingGroup>
<GeometryDrawing Brush="Black">
<GeometryDrawing.Geometry>
<GeometryGroup>
<RectangleGeometry Rect="0,0,50,50" />
<RectangleGeometry Rect="50,50,50,50" />
</GeometryGroup>
</GeometryDrawing.Geometry>
</GeometryDrawing>
</DrawingGroup>
</DrawingBrush.Drawing>
</DrawingBrush>
</Border.BorderBrush>
<Border.Background>
<ImageBrush ImageSource="{Binding BackgroundImage}" Stretch="Fill"></ImageBrush>
</Border.Background>
</Border>
<Grid Grid.Row="0" Grid.ColumnSpan="3">
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition Width="180"></ColumnDefinition>
<ColumnDefinition Width="180"></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Center" Background="Transparent" >
<TextBlock Style="{StaticResource myText13}">裁剪像素</TextBlock>
<Border Width="50" Height="20" CornerRadius="5" Background="{StaticResource niceGray}" Margin="15,0" >
<TextBox Background="Transparent" BorderThickness="0" VerticalAlignment="Center"
Text="{Binding CutPixel_1,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Foreground="{StaticResource niceBlack}" FontSize="13"
VerticalContentAlignment="Center" HorizontalContentAlignment="Center" ></TextBox>
</Border>
</StackPanel>
<StackPanel Grid.Column="2" Orientation="Horizontal" VerticalAlignment="Center" Background="Transparent" >
<TextBlock Style="{StaticResource myText13}" >偏移范围</TextBlock>
<Border Width="50" Height="20" CornerRadius="5" Background="{StaticResource niceGray}" Margin="15,0" >
<TextBox Background="Transparent" BorderThickness="0" VerticalAlignment="Center"
Text="{Binding offsetMin_1,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Foreground="{StaticResource niceBlack}" FontSize="13"
VerticalContentAlignment="Center" HorizontalContentAlignment="Center" ></TextBox>
</Border>
</StackPanel>
</Grid>
<Grid Grid.Row="1" Grid.Column="3">
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition Height="50"></RowDefinition>
<RowDefinition Height="50"></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Background="Transparent" >
<TextBlock Style="{StaticResource myText13}" >剪裁像素</TextBlock>
<Border Width="50" Height="20" CornerRadius="5" Background="{StaticResource niceGray}" Margin="15,0" >
<TextBox Background="Transparent" BorderThickness="0" VerticalAlignment="Center"
Text="{Binding CutPixel_2,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Foreground="{StaticResource niceBlack}" FontSize="13"
VerticalContentAlignment="Center" HorizontalContentAlignment="Center" ></TextBox>
</Border>
</StackPanel>
<StackPanel Grid.Row="2" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" Background="Transparent" >
<TextBlock Style="{StaticResource myText13}" >偏移范围</TextBlock>
<Border Width="50" Height="20" CornerRadius="5" Background="{StaticResource niceGray}" Margin="15,0" >
<TextBox Background="Transparent" BorderThickness="0" VerticalAlignment="Center"
Text="{Binding offsetMin_2,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Foreground="{StaticResource niceBlack}" FontSize="13"
VerticalContentAlignment="Center" HorizontalContentAlignment="Center" ></TextBox>
</Border>
</StackPanel>
</Grid>
<Grid Grid.Row="2" Grid.ColumnSpan="3">
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition Width="180"></ColumnDefinition>
<ColumnDefinition Width="180"></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Center" Background="Transparent" >
<TextBlock Style="{StaticResource myText13}">裁剪像素 </TextBlock>
<Border Width="50" Height="20" CornerRadius="5" Background="{StaticResource niceGray}" Margin="15,0" >
<TextBox Background="Transparent" BorderThickness="0" VerticalAlignment="Center"
Text="{Binding CutPixel_3,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Foreground="{StaticResource niceBlack}" FontSize="13"
VerticalContentAlignment="Center" HorizontalContentAlignment="Center" ></TextBox>
</Border>
</StackPanel>
<StackPanel Grid.Column="2" Orientation="Horizontal" VerticalAlignment="Center" Background="Transparent" >
<TextBlock Style="{StaticResource myText13}" >偏移范围</TextBlock>
<Border Width="50" Height="20" CornerRadius="5" Background="{StaticResource niceGray}" Margin="15,0" >
<TextBox Background="Transparent" BorderThickness="0" VerticalAlignment="Center"
Text="{Binding offsetMin_3,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Foreground="{StaticResource niceBlack}" FontSize="13"
VerticalContentAlignment="Center" HorizontalContentAlignment="Center" ></TextBox>
</Border>
</StackPanel>
</Grid>
<Grid Grid.Row="1" Grid.Column="0">
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition Height="50"></RowDefinition>
<RowDefinition Height="50"></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Background="Transparent" >
<TextBlock Style="{StaticResource myText13}" >剪裁像素</TextBlock>
<Border Width="50" Height="20" CornerRadius="5" Background="{StaticResource niceGray}" Margin="15,0" >
<TextBox Background="Transparent" BorderThickness="0" VerticalAlignment="Center"
Text="{Binding CutPixel_4,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Foreground="{StaticResource niceBlack}" FontSize="13"
VerticalContentAlignment="Center" HorizontalContentAlignment="Center" ></TextBox>
</Border>
</StackPanel>
<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Background="Transparent" >
<TextBlock Style="{StaticResource myText13}" >偏移范围</TextBlock>
<Border Width="50" Height="20" CornerRadius="5" Background="{StaticResource niceGray}" Margin="15,0" >
<TextBox Background="Transparent" BorderThickness="0" VerticalAlignment="Center"
Text="{Binding offsetMin_4,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Foreground="{StaticResource niceBlack}" FontSize="13"
VerticalContentAlignment="Center" HorizontalContentAlignment="Center" ></TextBox>
</Border>
</StackPanel>
</Grid>
<Grid Grid.Row="4" Grid.ColumnSpan="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="93"></ColumnDefinition>
<ColumnDefinition Width="370"></ColumnDefinition>
<ColumnDefinition Width="20"></ColumnDefinition>
<ColumnDefinition Width="280"></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<TextBlock Style="{StaticResource myText13}" Margin="30,0,0,0">导出路径</TextBlock>
<Grid Grid.Column="1" Height="40" Width="360" HorizontalAlignment="Left">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition Width="40"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Border Height="20" CornerRadius="5" Background="{StaticResource niceGray}" Margin="15,0" >
<TextBox Background="Transparent" BorderThickness="0" VerticalAlignment="Center"
Text="{Binding SavePath,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Foreground="{StaticResource niceBlack}" FontSize="13" Name="tbOutPut"
VerticalContentAlignment="Center" HorizontalContentAlignment="Center" ></TextBox>
</Border>
<Border Height="30" Grid.Column="1" PreviewMouseLeftButtonUp="选择导出路径_Click" CornerRadius="4" Background="{StaticResource niceBlack}">
<Image Cursor="Hand" Source="img/切片4.png" Height="20" Width="20" HorizontalAlignment="Center" VerticalAlignment="Center" ></Image>
</Border>
</Grid>
</Grid>
<Grid Grid.Column="3" Grid.Row="3">
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<StackPanel Orientation="Horizontal">
<TextBlock Style="{StaticResource myText13}">设置填充颜色</TextBlock>
<colorPicker:ColorPicker ColorMode="ColorPalette" Width="40" Height="20" Background="#f6f6f6"
SelectedColor="{Binding FillColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
HorizontalAlignment="Left"></colorPicker:ColorPicker>
</StackPanel>
<StackPanel Orientation="Horizontal" Grid.Column="1">
<TextBlock Style="{StaticResource myText13}">是否采用同一颜色</TextBlock>
<CheckBox Style="{StaticResource chkPassWord}" Margin="5,0,0,0" IsChecked="{Binding IsSame, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"></CheckBox>
</StackPanel>
</Grid>
<Grid Grid.Column="4" Margin="0,0,30,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="90"></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<Button Grid.Column="0"
Style="{StaticResource btnBaseCancel}" Height="30" Width="80" Tag="剪切" Click="跳过_Click"
Foreground="White" HorizontalContentAlignment="Center" FontSize="13"
HorizontalAlignment="Center" Content="跳过"></Button>
<Button Name="btnCut" Grid.Column="1"
Style="{StaticResource btnBaseCancel}" Height="30" Width="120" Click="剪切视频_Click"
Foreground="White" HorizontalContentAlignment="Center" FontSize="13"
HorizontalAlignment="Center" Content="裁剪预览"></Button>
</Grid>
</Grid>
<Grid Grid.Row="3" Grid.ColumnSpan="3" >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="93"></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<Border Grid.ColumnSpan="2" BorderThickness="0,1,0,1" BorderBrush="{StaticResource niceHover}"></Border>
<TextBlock Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="5" Style="{StaticResource myText13}" Margin="30,0">进度</TextBlock>
<ProgressBar Margin="0,0,30,0" Style="{StaticResource SimpleProgressBar}" Grid.Row="3" Grid.Column="1" VerticalAlignment="Center" Minimum="0" Maximum="{Binding TotalSize}" Value="{Binding Size}" Height="8" ></ProgressBar>
</Grid>
<Button Grid.Column="0" VerticalAlignment="Top" Margin="30,10,0,0"
Style="{StaticResource btnBaseCancel}" Height="30" Width="180" Tag="{Binding ElementName=GridStepOne}" Click="返回上一步_Click"
Foreground="White" HorizontalContentAlignment="Center" FontSize="13"
HorizontalAlignment="Left" Content="返回上一步"></Button>
<TextBlock Grid.Column="2" FontSize="13" HorizontalAlignment="Right" FontWeight="Normal" Foreground="{StaticResource niceBlack}" FontFamily="微软雅黑" Margin="0,10,30,0">2/6 剪切素材</TextBlock>
</Grid>
<Grid Background="#f6f6f8" Visibility="Collapsed" Name="GridStepThree">
<Grid.RowDefinitions>
<RowDefinition Height="80"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="80"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="100"></RowDefinition>
</Grid.RowDefinitions>
<Button Grid.Column="0" VerticalAlignment="Top" Margin="30,10,0,0"
Style="{StaticResource btnBaseCancel}" Height="30" Width="180" Tag="{Binding ElementName=GridStepTwo}" Click="返回上一步_Click"
Foreground="White" HorizontalContentAlignment="Center" FontSize="13"
HorizontalAlignment="Left" Content="返回上一步"></Button>
<TextBlock Grid.Column="2" FontSize="13" HorizontalAlignment="Right" FontWeight="Normal" Foreground="{StaticResource niceBlack}"
FontFamily="微软雅黑" Margin="0,10,30,0">3/6 竖版视频转横版视频</TextBlock>
<Grid Grid.Row="4" Grid.ColumnSpan="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="30"></ColumnDefinition>
<ColumnDefinition Width="93"></ColumnDefinition>
<ColumnDefinition Width="70"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="180"></ColumnDefinition>
<ColumnDefinition Width="30"></ColumnDefinition>
</Grid.ColumnDefinitions>
<TextBlock Style="{StaticResource myText13}" Grid.Column="1">模糊程度(0~∞)</TextBlock>
<Border Grid.Column="2" BorderThickness="1" CornerRadius="4" BorderBrush="#666" Width="50" Height="30" Margin="10,0,0,0">
<TextBox Background="Transparent" BorderThickness="0" VerticalAlignment="Center"
Text="{Binding LumaPower, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Foreground="{StaticResource niceBlack}" FontSize="13"
VerticalContentAlignment="Center" ></TextBox>
</Border>
<Button Grid.Column="4" Style="{StaticResource btnBaseCancel}" Height="30" Width="80" Tag="竖转横" Click="跳过_Click"
Foreground="White" FontSize="13" HorizontalAlignment="Right" >跳过</Button>
<Button Grid.Column="5" Name="btnVeritalToHorizontal" Style="{StaticResource btnBaseCancel}" Height="30" Width="150" Click="竖版转横版_Click"
Foreground="White" FontSize="13" >竖转横预览</Button>
</Grid>
<Grid Grid.Row="3" Grid.ColumnSpan="3" >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="93"></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<Border Grid.ColumnSpan="2" BorderThickness="0,1,0,1" BorderBrush="{StaticResource niceHover}"></Border>
<TextBlock Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="5" Style="{StaticResource myText13}" Margin="30,0">进度 </TextBlock>
<ProgressBar Margin="0,0,30,0" Style="{StaticResource SimpleProgressBar}" Grid.Row="3" Grid.Column="1" VerticalAlignment="Center" Minimum="0" Maximum="{Binding TotalSize}" Value="{Binding Size}" Height="8" ></ProgressBar>
</Grid>
</Grid>
<Grid Background="#f6f6f8" Visibility="Collapsed" Name="GridStepFour">
<Grid.RowDefinitions>
<RowDefinition Height="{Binding RowHeight}"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="{Binding RowHeight}"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="100"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="{Binding ColumnWidth}" ></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="{Binding ColumnWidth}"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Button Grid.Column="0" VerticalAlignment="Top" Margin="30,10,0,0"
Style="{StaticResource btnBaseCancel}" Height="30" Width="180" Tag="{Binding ElementName=GridStepTwo}" Click="返回上一步_Click"
Foreground="White" HorizontalContentAlignment="Center" FontSize="13"
HorizontalAlignment="Left" Content="返回上一步"></Button>
<TextBlock Grid.Column="2" FontSize="13" HorizontalAlignment="Right" FontWeight="Normal" Foreground="{StaticResource niceBlack}"
FontFamily="微软雅黑" Margin="0,10,30,0">3/6 横版视频转竖版视频</TextBlock>
<Border Grid.Row="1" Grid.Column="1" BorderThickness="2" CornerRadius="5" >
<Border.BorderBrush>
<DrawingBrush Viewport="0,0,20,20" ViewportUnits="Absolute" TileMode="Tile">
<DrawingBrush.Drawing>
<DrawingGroup>
<GeometryDrawing Brush="Black">
<GeometryDrawing.Geometry>
<GeometryGroup>
<RectangleGeometry Rect="0,0,50,50" />
<RectangleGeometry Rect="50,50,50,50" />
</GeometryGroup>
</GeometryDrawing.Geometry>
</GeometryDrawing>
</DrawingGroup>
</DrawingBrush.Drawing>
</DrawingBrush>
</Border.BorderBrush>
<Border.Background>
<ImageBrush ImageSource="{Binding BackgroundImage}" Stretch="Uniform"></ImageBrush>
</Border.Background>
</Border>
<Grid Grid.Row="0" Grid.RowSpan="3" Grid.Column="3">
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition Height="50"></RowDefinition>
<RowDefinition Height="50"></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Background="Transparent" >
<TextBlock Style="{StaticResource myText13}" >剪裁像素</TextBlock>
<Border Width="50" Height="20" CornerRadius="5" Background="{StaticResource niceGray}" Margin="15,0" >
<TextBox Background="Transparent" BorderThickness="0" VerticalAlignment="Center"
Text="{Binding CutPixel_横版右,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Foreground="{StaticResource niceBlack}" FontSize="13"
VerticalContentAlignment="Center" HorizontalContentAlignment="Center" ></TextBox>
</Border>
</StackPanel>
<StackPanel Grid.Row="2" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" Background="Transparent" >
<TextBlock Style="{StaticResource myText13}" >偏移范围</TextBlock>
<Border Width="50" Height="20" CornerRadius="5" Background="{StaticResource niceGray}" Margin="15,0" >
<TextBox Background="Transparent" BorderThickness="0" VerticalAlignment="Center"
Text="{Binding offset_横版右,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Foreground="{StaticResource niceBlack}" FontSize="13"
VerticalContentAlignment="Center" HorizontalContentAlignment="Center" ></TextBox>
</Border>
</StackPanel>
</Grid>
<Grid Grid.Row="0" Grid.RowSpan="3" Grid.Column="0">
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition Height="50"></RowDefinition>
<RowDefinition Height="50"></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Background="Transparent" >
<TextBlock Style="{StaticResource myText13}" >剪裁像素</TextBlock>
<Border Width="50" Height="20" CornerRadius="5" Background="{StaticResource niceGray}" Margin="15,0" >
<TextBox Background="Transparent" BorderThickness="0" VerticalAlignment="Center"
Text="{Binding CutPixel_横版左,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Foreground="{StaticResource niceBlack}" FontSize="13"
VerticalContentAlignment="Center" HorizontalContentAlignment="Center" ></TextBox>
</Border>
</StackPanel>
<StackPanel Grid.Row="2" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" Background="Transparent" >
<TextBlock Style="{StaticResource myText13}" >偏移范围</TextBlock>
<Border Width="50" Height="20" CornerRadius="5" Background="{StaticResource niceGray}" Margin="15,0" >
<TextBox Background="Transparent" BorderThickness="0" VerticalAlignment="Center"
Text="{Binding offset_横版左,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
Foreground="{StaticResource niceBlack}" FontSize="13"
VerticalContentAlignment="Center" HorizontalContentAlignment="Center" ></TextBox>
</Border>
</StackPanel>
</Grid>
<Grid Grid.Row="4" Grid.ColumnSpan="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="30"></ColumnDefinition>
<ColumnDefinition Width="93"></ColumnDefinition>
<ColumnDefinition Width="550"></ColumnDefinition>
<ColumnDefinition Width="50"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="30"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid Grid.Column="4">
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition Width="170"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition ></ColumnDefinition>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" Style="{StaticResource myText13}">填充高度Y</TextBlock>
<Border Grid.Column="1" BorderThickness="1" CornerRadius="4" BorderBrush="#666" Width="50" Height="30" Margin="10,0,0,0">
<TextBox Background="Transparent" BorderThickness="0" VerticalAlignment="Center"
Text="{Binding PadHeight,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Foreground="{StaticResource niceBlack}" FontSize="13"
VerticalContentAlignment="Center" ></TextBox>
</Border>
</Grid>
<Button Grid.Column="0" Grid.Row="1" Style="{StaticResource btnBaseCancel}" Height="30" Width="80" Tag="横转竖" Click="跳过_Click"
Foreground="White" FontSize="13" HorizontalAlignment="Center" >跳过</Button>
<Button Grid.Column="1" Grid.Row="1" Name="btnHorizontalToVertical" Style="{StaticResource btnBaseCancel}" Height="30" Width="150" Click="横版转竖版_Click"
Foreground="White" FontSize="13" HorizontalAlignment="Center" >横转竖预览</Button>
</Grid>
<Grid Grid.Column="1" Grid.Row="3" >
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Border BorderBrush="{StaticResource niceGray}" BorderThickness="0,0,2,0" Grid.RowSpan="2" Margin="0,10">
</Border>
<RadioButton Grid.Row="1" Margin="0"
VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="Black"
Content="颜色填充" PreviewMouseLeftButtonDown="SwitchChannel_MouseLeftButtonDown"
Cursor="Hand" FontWeight="Regular" FontFamily="微软雅黑" FontSize="13" Template="{DynamicResource ChannelCheckBoxTemplate}"
GroupName="Padd"
/>
<RadioButton Grid.Row="0" Margin="0" IsChecked="True"
VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="Black" Name="rbImageFill"
Content="图片填充" PreviewMouseLeftButtonDown="SwitchChannel_MouseLeftButtonDown"
Cursor="Hand" FontWeight="Regular" FontFamily="微软雅黑" FontSize="13" Template="{DynamicResource ChannelCheckBoxTemplate}"
GroupName="Padd"
/>
</Grid>
<Grid Grid.Column="2" Grid.Row="3" Name="gridColorPad" Visibility="Collapsed">
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" Grid.Row="1" Margin="20,0,0,0">
<TextBlock Style="{StaticResource myText13}">设置填充颜色</TextBlock>
<colorPicker:ColorPicker ColorMode="ColorPalette" Width="40" Background="#f6f6f6" Height="20" VerticalAlignment="Center" Margin="15,0,0,0"
SelectedColor="{Binding FillColor横转竖, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"