-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
1185 lines (1172 loc) · 93.2 KB
/
Copy pathMainWindow.xaml
File metadata and controls
1185 lines (1172 loc) · 93.2 KB
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
<?xml version="1.0" encoding="utf-8"?>
<ui:FluentWindow x:Class="FileMill.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:models="clr-namespace:FileMill.Models" xmlns:conv="clr-namespace:FileMill.Converters" xmlns:views="clr-namespace:FileMill.Views" xmlns:properties="clr-namespace:FileMill.Properties" xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml" Title="FileMill" Icon="app.ico" MinHeight="600" MinWidth="850" WindowStartupLocation="CenterScreen" ExtendsContentIntoTitleBar="True" WindowBackdropType="Mica" Background="{DynamicResource WindowBackground}" xmlns:filemill="clr-namespace:FileMill" Height="{Binding WindowHeight, Mode=TwoWay}" Width="{Binding WindowWidth, Mode=TwoWay}" Left="{Binding WindowLeft, Mode=TwoWay}" Top="{Binding WindowTop, Mode=TwoWay}" WindowState="{Binding WindowState, Mode=TwoWay}">
<FrameworkElement.Resources>
<ResourceDictionary>
<BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
<conv:EnumToBooleanConverter x:Key="EnumToBooleanConverter" />
<Style x:Key="ToolbarButtonStyle" TargetType="{x:Type Button}">
<Setter Property="Width" Value="32" />
<Setter Property="Height" Value="32" />
<Setter Property="Background" Value="#00FFFFFF" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="FrameworkElement.Cursor" Value="Hand" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border Name="border" Background="{TemplateBinding Control.Background}" CornerRadius="4">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="UIElement.IsMouseOver" Value="True">
<Setter TargetName="border" Value="{DynamicResource ToolbarButtonHoverBackground}" Property="Border.Background" />
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter TargetName="border" Value="{DynamicResource ToolbarButtonPressedBackground}" Property="Border.Background" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="UIElement.Opacity" Value="0.4" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
</FrameworkElement.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<ui:TitleBar Grid.Row="0" Title="FileMill" Icon="app.ico" />
<ui:Button Name="AboutButton" Grid.Row="0" ToolTip="このアプリについて" Appearance="Transparent" Width="36" Height="36" Padding="0" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,180,0" Click="MenuItem_About_Click" WindowChrome.IsHitTestVisibleInChrome="True">
<ui:SymbolIcon Symbol="Info24" />
</ui:Button>
<ui:Button Name="SettingsButton" Grid.Row="0" CommandParameter="Options" ToolTip="環境設定" Appearance="Transparent" Width="36" Height="36" Padding="0" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,140,0" Command="{Binding OpenModalCommand}" WindowChrome.IsHitTestVisibleInChrome="True">
<ui:SymbolIcon Symbol="Settings24" />
</ui:Button>
<Grid Row="1">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid Row="0">
<Grid Visibility="{Binding IsStep1, Converter={StaticResource BooleanToVisibilityConverter}}">
<Grid Margin="24">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid Row="0" Margin="0,0,0,16">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<StackPanel>
<TextBlock Text="{x:Static properties:Loc.WizardStep1Title}" FontSize="20" FontWeight="Bold" />
<TextBlock Text="変換したい画像、Officeドキュメント、またはPDFファイルを選択してください" FontSize="14" Foreground="{DynamicResource TextFillColorSecondaryBrush}" Margin="0,4,0,0" />
</StackPanel>
<StackPanel Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Center">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<Border Width="24" Height="24" CornerRadius="12" Background="{DynamicResource SystemAccentColorBrush}" BorderBrush="{DynamicResource SystemAccentColorBrush}" BorderThickness="1">
<TextBlock Text="1" Foreground="#FFFFFFFF" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="13" />
</Border>
<TextBlock Text="{x:Static properties:Loc.WizardStep1Label}" Foreground="{DynamicResource TextFillColorPrimaryBrush}" FontWeight="SemiBold" FontSize="12" Margin="6,0,0,0" VerticalAlignment="Center"/>
</StackPanel>
<Line X1="0" Y1="0" X2="20" Y2="0" Stroke="{DynamicResource ControlForegroundDim}" StrokeThickness="2" VerticalAlignment="Center" Margin="8,0" />
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<Border Width="24" Height="24" CornerRadius="12" Background="#00FFFFFF" BorderBrush="{DynamicResource ControlForegroundDim}" BorderThickness="1">
<TextBlock Text="2" Foreground="{DynamicResource TextFillColorTertiaryBrush}" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="13" />
</Border>
<TextBlock Text="{x:Static properties:Loc.WizardStep2Label}" Foreground="{DynamicResource TextFillColorTertiaryBrush}" FontSize="12" Margin="6,0,0,0" VerticalAlignment="Center"/>
</StackPanel>
<Line X1="0" Y1="0" X2="20" Y2="0" Stroke="{DynamicResource ControlForegroundDim}" StrokeThickness="2" VerticalAlignment="Center" Margin="8,0" />
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<Border Width="24" Height="24" CornerRadius="12" Background="#00FFFFFF" BorderBrush="{DynamicResource ControlForegroundDim}" BorderThickness="1">
<TextBlock Text="3" Foreground="{DynamicResource TextFillColorTertiaryBrush}" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="13" />
</Border>
<TextBlock Text="{x:Static properties:Loc.WizardStep3Label}" Foreground="{DynamicResource TextFillColorTertiaryBrush}" FontSize="12" Margin="6,0,0,0" VerticalAlignment="Center"/>
</StackPanel>
</StackPanel>
</Grid>
<Border Name="FileListDropBorder" Grid.Row="1" BorderBrush="{DynamicResource CardStrokeColorDefaultBrush}" BorderThickness="1" CornerRadius="8" Background="{DynamicResource CardBackgroundFillColorDefaultBrush}" AllowDrop="True" DragEnter="FileList_DragEnter" DragOver="FileList_DragOver" DragLeave="FileList_DragLeave" Drop="FileList_Drop">
<Grid>
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Margin="32">
<FrameworkElement.Style>
<Style TargetType="{x:Type StackPanel}">
<Setter Property="Visibility" Value="Collapsed" />
<Style.Triggers>
<DataTrigger Value="True" Binding="{Binding IsFileListEmpty}">
<Setter Property="Visibility" Value="Visible" />
</DataTrigger>
</Style.Triggers>
</Style>
</FrameworkElement.Style>
<ui:SymbolIcon Symbol="DocumentArrowDown24" Filled="True" FontSize="64" Foreground="{DynamicResource SystemAccentColorBrush}" HorizontalAlignment="Center" />
<TextBlock Text="ここにファイルをドラッグ&ドロップしてください" FontSize="16" FontWeight="SemiBold" HorizontalAlignment="Center" Margin="0,16,0,8" />
<TextBlock Text="画像 (JPEG/PNG/WebP/AVIF/TIFF) ・ Office (Word/Excel/PowerPoint) ・ PDF に対応" FontSize="14" Foreground="{DynamicResource TextFillColorSecondaryBrush}" HorizontalAlignment="Center" Margin="0,0,0,16" />
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<ui:Button Appearance="Primary" Padding="16,8" Margin="0,0,12,0" Command="{Binding AddFilesCommand}">
<ui:Button.Icon>
<ui:SymbolIcon Symbol="DocumentAdd24" />
</ui:Button.Icon>
<TextBlock Text="{x:Static properties:Loc.WizardAddFilesBtn}" Margin="6,0,0,0" />
</ui:Button>
<ui:Button Appearance="Secondary" Padding="16,8" Command="{Binding AddFolderCommand}">
<ui:Button.Icon>
<ui:SymbolIcon Symbol="FolderAdd24" />
</ui:Button.Icon>
<TextBlock Text="{x:Static properties:Loc.WizardAddFolderBtn}" Margin="6,0,0,0" />
</ui:Button>
</StackPanel>
</StackPanel>
<Grid>
<FrameworkElement.Style>
<Style TargetType="{x:Type Grid}">
<Setter Property="Visibility" Value="Visible" />
<Style.Triggers>
<DataTrigger Value="True" Binding="{Binding IsFileListEmpty}">
<Setter Property="Visibility" Value="Collapsed" />
</DataTrigger>
</Style.Triggers>
</Style>
</FrameworkElement.Style>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Border Grid.Row="0" Background="{DynamicResource ControlFillColorDefaultBrush}" BorderBrush="{DynamicResource ControlStrokeColorDefaultBrush}" BorderThickness="0,0,0,1" Padding="8,4" CornerRadius="8,8,0,0">
<Grid>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<ui:Button ToolTip="ファイルを追加" Margin="0,0,6,0" Padding="8,4" Command="{Binding AddFilesCommand}">
<ui:SymbolIcon Symbol="DocumentAdd20" />
</ui:Button>
<ui:Button ToolTip="フォルダを追加" Margin="0,0,6,0" Padding="8,4" Command="{Binding AddFolderCommand}">
<ui:SymbolIcon Symbol="FolderAdd20" />
</ui:Button>
<ui:Button ToolTip="すべて削除" Margin="0,0,6,0" Padding="8,4" Command="{Binding ClearFilesCommand}">
<ui:SymbolIcon Symbol="Delete20" />
</ui:Button>
<ui:Button ToolTip="選択したファイルを削除" Padding="8,4" Command="{Binding RemoveFileCommand}" CommandParameter="{Binding SelectedItem, ElementName=FileListView}">
<ui:SymbolIcon Symbol="Dismiss20" />
</ui:Button>
</StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
<TextBlock FontSize="14" Foreground="{DynamicResource TextFillColorSecondaryBrush}" Text="{Binding Files.Count, StringFormat=追加済み: {0} 件}" />
</StackPanel>
</Grid>
</Border>
<ui:ListView Name="FileListView" Grid.Row="1" BorderThickness="0" SelectionMode="Extended" ItemsSource="{Binding Files}" PreviewKeyDown="FileListView_PreviewKeyDown">
<FrameworkElement.Resources>
<ResourceDictionary>
<Style x:Key="{x:Type GridViewColumnHeader}" TargetType="{x:Type GridViewColumnHeader}" BasedOn="{StaticResource {x:Type GridViewColumnHeader}}">
<Setter Property="Padding" Value="8,4" />
<Setter Property="HorizontalContentAlignment" Value="Left" />
<EventSetter Event="Click" Handler="FileListHeader_Click" />
</Style>
</ResourceDictionary>
</FrameworkElement.Resources>
<ListView.View>
<GridView>
<GridViewColumn Width="46">
<GridViewColumn.Header>
<CheckBox Name="HeaderSelectAllCheckBox" IsChecked="True" Click="HeaderSelectAllCheckBox_Click" />
</GridViewColumn.Header>
<GridViewColumn.CellTemplate>
<DataTemplate>
<CheckBox IsChecked="{Binding IsChecked, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
<GridViewColumn x:Name="ColName" Header="ファイル名" Width="180" DisplayMemberBinding="{Binding FileName}" />
<GridViewColumn x:Name="ColFormat" Header="形式" Width="60" DisplayMemberBinding="{Binding Format}" />
<GridViewColumn Header="種類" Width="70" DisplayMemberBinding="{Binding FileType}" />
<GridViewColumn x:Name="ColSize" Header="サイズ" Width="90" DisplayMemberBinding="{Binding OriginalSizeDisplay}" />
<GridViewColumn x:Name="ColDim" Header="画像解像度" Width="100" DisplayMemberBinding="{Binding DimensionsDisplay}" />
<GridViewColumn x:Name="ColPath" Header="パス" Width="300" DisplayMemberBinding="{Binding FilePath}" />
</GridView>
</ListView.View>
<ItemsControl.ItemContainerStyle>
<Style TargetType="{x:Type ui:ListViewItem}" BasedOn="{StaticResource {x:Type ui:ListViewItem}}">
<Setter Property="FrameworkElement.Tag" Value="{Binding DataContext, RelativeSource={RelativeSource AncestorType=ListView}}" />
<Setter Property="FrameworkElement.ContextMenu">
<Setter.Value>
<ContextMenu>
<MenuItem Header="削除(_D)" Command="{Binding PlacementTarget.Tag.RemoveFileCommand, RelativeSource={RelativeSource AncestorType=ContextMenu}}" CommandParameter="{Binding PlacementTarget.DataContext, RelativeSource={RelativeSource AncestorType=ContextMenu}}" />
</ContextMenu>
</Setter.Value>
</Setter>
</Style>
</ItemsControl.ItemContainerStyle>
</ui:ListView>
</Grid>
</Grid>
</Border>
<Grid Row="2" Margin="0,16,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Grid Column="0" VerticalAlignment="Center" Margin="0,0,24,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBlock Text="出力先フォルダ:" VerticalAlignment="Center" Margin="0,0,8,0" Foreground="{DynamicResource TextFillColorSecondaryBrush}" FontSize="14" />
<ui:TextBox Grid.Column="1" Height="36" VerticalContentAlignment="Center" FontSize="14" Padding="8,0" PlaceholderText="選択された出力先パス" Text="{Binding OutputDirectory, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
<ui:Button Grid.Column="2" Content="..." Width="36" Height="36" Margin="4,0,0,0" Command="{Binding BrowseOutputCommand}" />
</Grid>
<ui:Button Grid.Column="1" Appearance="Primary" Height="36" Width="120" Command="{Binding GoNextCommand}">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{x:Static properties:Loc.WizardNext}" VerticalAlignment="Center" />
</StackPanel>
</ui:Button>
</Grid>
</Grid>
</Grid>
<Grid Visibility="{Binding IsStep2, Converter={StaticResource BooleanToVisibilityConverter}}">
<Grid Margin="24">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid Row="0" Margin="0,0,0,16">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<StackPanel>
<TextBlock Text="{x:Static properties:Loc.WizardStep2Title}" FontSize="20" FontWeight="Bold" />
<TextBlock Text="各ファイル形式ごとの処理方法を設定してください" FontSize="14" Foreground="{DynamicResource TextFillColorSecondaryBrush}" Margin="0,4,0,0" />
</StackPanel>
<StackPanel Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Center">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<Border Width="24" Height="24" CornerRadius="12" Background="#00FFFFFF" BorderBrush="{DynamicResource ControlForegroundDim}" BorderThickness="1">
<TextBlock Text="1" Foreground="{DynamicResource TextFillColorTertiaryBrush}" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="13" />
</Border>
<TextBlock Text="{x:Static properties:Loc.WizardStep1Label}" Foreground="{DynamicResource TextFillColorTertiaryBrush}" FontSize="12" Margin="6,0,0,0" VerticalAlignment="Center"/>
</StackPanel>
<Line X1="0" Y1="0" X2="20" Y2="0" Stroke="{DynamicResource ControlForegroundDim}" StrokeThickness="2" VerticalAlignment="Center" Margin="8,0" />
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<Border Width="24" Height="24" CornerRadius="12" Background="{DynamicResource SystemAccentColorBrush}" BorderBrush="{DynamicResource SystemAccentColorBrush}" BorderThickness="1">
<TextBlock Text="2" Foreground="#FFFFFFFF" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="13" />
</Border>
<TextBlock Text="{x:Static properties:Loc.WizardStep2Label}" Foreground="{DynamicResource TextFillColorPrimaryBrush}" FontWeight="SemiBold" FontSize="12" Margin="6,0,0,0" VerticalAlignment="Center"/>
</StackPanel>
<Line X1="0" Y1="0" X2="20" Y2="0" Stroke="{DynamicResource ControlForegroundDim}" StrokeThickness="2" VerticalAlignment="Center" Margin="8,0" />
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<Border Width="24" Height="24" CornerRadius="12" Background="#00FFFFFF" BorderBrush="{DynamicResource ControlForegroundDim}" BorderThickness="1">
<TextBlock Text="3" Foreground="{DynamicResource TextFillColorTertiaryBrush}" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="13" />
</Border>
<TextBlock Text="{x:Static properties:Loc.WizardStep3Label}" Foreground="{DynamicResource TextFillColorTertiaryBrush}" FontSize="12" Margin="6,0,0,0" VerticalAlignment="Center"/>
</StackPanel>
</StackPanel>
</Grid>
<Grid Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="260" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0" Margin="0,0,16,0">
<!-- 設定プリセット -->
<ui:Card Margin="0,0,0,12" Padding="16">
<StackPanel>
<TextBlock Text="設定プリセット" FontSize="14" FontWeight="SemiBold" Foreground="{DynamicResource TextFillColorPrimaryBrush}" Margin="0,0,0,12" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<ComboBox Grid.Column="0" Height="36" Margin="0,0,8,0" FontSize="13" IsEditable="True" ItemsSource="{Binding PresetNames}" Text="{Binding SelectedPresetName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
<ui:Button Grid.Column="1" ToolTip="現在の設定をプリセットとして保存" Height="36" Command="{Binding SavePresetCommand}">
<ui:SymbolIcon Symbol="Save20" />
</ui:Button>
</Grid>
</StackPanel>
</ui:Card>
<!-- 変換対象の概要 -->
<ui:Card Margin="0,0,0,12" Padding="16">
<StackPanel>
<TextBlock Text="変換対象の概要" FontSize="14" FontWeight="SemiBold" Foreground="{DynamicResource TextFillColorPrimaryBrush}" Margin="0,0,0,12" />
<TextBlock FontSize="14" Margin="0,0,0,6" Text="{Binding Files.Count, StringFormat=合計ファイル数: {0} 件}" />
<Border BorderBrush="{DynamicResource ControlStrokeColorDefaultBrush}" BorderThickness="0,1,0,0" Margin="0,4" />
<TextBlock Text="出力先:" FontSize="13" Foreground="{DynamicResource TextFillColorSecondaryBrush}" Margin="0,4,0,2" />
<TextBlock FontSize="13" FontWeight="SemiBold" TextWrapping="Wrap" Text="{Binding OutputDirectory}" />
</StackPanel>
</ui:Card>
<!-- 出力ファイル名の規則 -->
<ui:Card Padding="16">
<StackPanel>
<TextBlock Text="出力ファイル名の規則" FontSize="14" FontWeight="SemiBold" Foreground="{DynamicResource TextFillColorPrimaryBrush}" Margin="0,0,0,12" />
<TextBlock Text="ファイル名の末尾に付加する文字列:" FontSize="13" Foreground="{DynamicResource TextFillColorSecondaryBrush}" Margin="0,0,0,4" />
<ui:TextBox PlaceholderText="例: _optimized" Height="32" Text="{Binding FileNameRule, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
</StackPanel>
</ui:Card>
</StackPanel>
<Border Grid.Column="1" BorderBrush="{DynamicResource CardStrokeColorDefaultBrush}" BorderThickness="1" CornerRadius="8" Background="{DynamicResource CardBackgroundFillColorDefaultBrush}">
<TabControl Name="SettingsTabControl" Style="{StaticResource {x:Type TabControl}}" BorderThickness="0" Background="#00FFFFFF" Padding="12" SelectedIndex="{Binding SelectedTabIndex}">
<TabControl.Resources>
<Style TargetType="{x:Type TabItem}">
<Setter Property="Padding" Value="16,10" />
<Setter Property="Background" Value="Transparent" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type TabItem}">
<Grid Name="TabGrid" Background="Transparent" Margin="0,0,8,0">
<Border Name="TabBorder" BorderBrush="Transparent" BorderThickness="0,0,0,3" Padding="{TemplateBinding Control.Padding}" CornerRadius="4,4,0,0" Background="Transparent">
<ContentPresenter Name="ContentSite" ContentSource="Header" HorizontalAlignment="Center" VerticalAlignment="Center" />
</Border>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="UIElement.IsMouseOver" Value="True">
<Setter TargetName="TabBorder" Value="{DynamicResource SubtleFillColorSecondaryBrush}" Property="Border.Background" />
</Trigger>
<Trigger Property="TabItem.IsSelected" Value="True">
<Setter TargetName="TabBorder" Value="{DynamicResource SystemAccentColorBrush}" Property="Border.BorderBrush" />
<Setter TargetName="TabBorder" Value="{DynamicResource SubtleFillColorTertiaryBrush}" Property="Border.Background" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</TabControl.Resources>
<TabItem>
<HeaderedContentControl.Header>
<StackPanel Orientation="Horizontal" Margin="4,2">
<ui:SymbolIcon Symbol="Image24" Margin="0,0,8,0">
<ui:SymbolIcon.Style>
<Style TargetType="{x:Type ui:SymbolIcon}">
<Setter Property="Foreground" Value="{DynamicResource TextFillColorSecondaryBrush}" />
<Style.Triggers>
<DataTrigger Binding="{Binding IsSelected, RelativeSource={RelativeSource AncestorType=TabItem}}" Value="True">
<Setter Property="Foreground" Value="{DynamicResource SystemAccentColorBrush}" />
</DataTrigger>
</Style.Triggers>
</Style>
</ui:SymbolIcon.Style>
</ui:SymbolIcon>
<TextBlock Text="画像変換設定" FontSize="13" VerticalAlignment="Center">
<TextBlock.Style>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="Foreground" Value="{DynamicResource TextFillColorSecondaryBrush}" />
<Setter Property="FontWeight" Value="Normal" />
<Style.Triggers>
<DataTrigger Binding="{Binding IsSelected, RelativeSource={RelativeSource AncestorType=TabItem}}" Value="True">
<Setter Property="Foreground" Value="{DynamicResource SystemAccentColorBrush}" />
<Setter Property="FontWeight" Value="Bold" />
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
</StackPanel>
</HeaderedContentControl.Header>
<Grid>
<ScrollViewer VerticalScrollBarVisibility="Auto" Margin="0,0,-8,0" Padding="0,0,8,0">
<StackPanel>
<!-- 1. ExifAutoRotate -->
<Expander Margin="0,0,0,8">
<HeaderedContentControl.Header>
<CheckBox Content="Exif情報を基に画像を自動回転する" FontSize="14" FontWeight="SemiBold" IsChecked="{Binding DataContext.ExifAutoRotateStep.Enabled, Mode=TwoWay, RelativeSource={RelativeSource AncestorType=Expander}}" />
</HeaderedContentControl.Header>
<TextBlock Text="Exifの回転情報(Orientation)を検出し、正しい向きに回転します。" FontSize="13" Foreground="{DynamicResource TextFillColorSecondaryBrush}" Margin="8" />
</Expander>
<!-- 2. Crop -->
<Expander Margin="0,0,0,8">
<HeaderedContentControl.Header>
<CheckBox Content="トリミング (Crop)" FontSize="14" FontWeight="SemiBold" IsChecked="{Binding DataContext.CropStep.Enabled, Mode=TwoWay, RelativeSource={RelativeSource AncestorType=Expander}}" />
</HeaderedContentControl.Header>
<StackPanel Margin="8" DataContext="{Binding CropStep}">
<Grid Margin="0,0,0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="80" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="トリミング幅:" VerticalAlignment="Center" FontSize="13" />
<ui:TextBox Grid.Column="1" Height="32" Padding="6,0" Text="{Binding CropWidth, UpdateSourceTrigger=PropertyChanged}" />
</Grid>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="80" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="トリミング高:" VerticalAlignment="Center" FontSize="13" />
<ui:TextBox Grid.Column="1" Height="32" Padding="6,0" Text="{Binding CropHeight, UpdateSourceTrigger=PropertyChanged}" />
</Grid>
</StackPanel>
</Expander>
<!-- 3. Rotate -->
<Expander Margin="0,0,0,8">
<HeaderedContentControl.Header>
<CheckBox Content="回転設定" FontSize="14" FontWeight="SemiBold" IsChecked="{Binding DataContext.RotateStep.Enabled, Mode=TwoWay, RelativeSource={RelativeSource AncestorType=Expander}}" />
</HeaderedContentControl.Header>
<StackPanel Margin="8" DataContext="{Binding RotateStep}">
<RadioButton Content="すべての画像を対象にする" GroupName="RotateTarget" Margin="0,4" FontSize="13" IsChecked="{Binding RotateTarget, Converter={StaticResource EnumToBooleanConverter}, ConverterParameter=All}" />
<RadioButton Content="横長画像のみ" GroupName="RotateTarget" Margin="0,4" FontSize="13" IsChecked="{Binding RotateTarget, Converter={StaticResource EnumToBooleanConverter}, ConverterParameter=Landscape}" />
<RadioButton Content="縦長画像のみ" GroupName="RotateTarget" Margin="0,4" FontSize="13" IsChecked="{Binding RotateTarget, Converter={StaticResource EnumToBooleanConverter}, ConverterParameter=Portrait}" />
<Grid Margin="0,8,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="80" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="回転角度:" VerticalAlignment="Center" FontSize="13" />
<ComboBox Grid.Column="1" Height="36" SelectedIndex="{Binding RotationAngleIndex}">
<ComboBoxItem Content="90度" FontSize="13" />
<ComboBoxItem Content="180度" FontSize="13" />
<ComboBoxItem Content="270度" FontSize="13" />
</ComboBox>
</Grid>
</StackPanel>
</Expander>
<!-- 4. Resize -->
<Expander Margin="0,0,0,8">
<HeaderedContentControl.Header>
<CheckBox Content="リサイズ" FontSize="14" FontWeight="SemiBold" IsChecked="{Binding DataContext.ResizeStep.Enabled, Mode=TwoWay, RelativeSource={RelativeSource AncestorType=Expander}}" />
</HeaderedContentControl.Header>
<StackPanel Margin="8" DataContext="{Binding ResizeStep}">
<Grid Margin="0,0,0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="80" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="目標幅 (px):" VerticalAlignment="Center" FontSize="13" />
<ui:TextBox Grid.Column="1" Height="32" Padding="6,0" PlaceholderText="例: 1920" Text="{Binding TargetWidth, UpdateSourceTrigger=PropertyChanged}" />
</Grid>
<Grid Margin="0,0,0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="80" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="目標高 (px):" VerticalAlignment="Center" FontSize="13" />
<ui:TextBox Grid.Column="1" Height="32" Padding="6,0" PlaceholderText="例: 1080" Text="{Binding TargetHeight, UpdateSourceTrigger=PropertyChanged}" />
</Grid>
<Grid Margin="0,0,0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="80" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="サイズ調整:" VerticalAlignment="Center" FontSize="13" />
<ComboBox Grid.Column="1" Height="36" SelectedIndex="{Binding FitModeIndex}">
<ComboBoxItem Content="内包 (Inside)" FontSize="13" />
<ComboBoxItem Content="外接 (Cover)" FontSize="13" />
<ComboBoxItem Content="引き伸ばし (Fill)" FontSize="13" />
</ComboBox>
</Grid>
<CheckBox Content="画像の拡大を許可する" FontSize="13" IsChecked="{Binding AllowUpscale}" />
</StackPanel>
</Expander>
<!-- 5. Padding -->
<Expander Margin="0,0,0,8">
<HeaderedContentControl.Header>
<CheckBox Content="余白の追加 (Padding)" FontSize="14" FontWeight="SemiBold" IsChecked="{Binding DataContext.PaddingStep.Enabled, Mode=TwoWay, RelativeSource={RelativeSource AncestorType=Expander}}" />
</HeaderedContentControl.Header>
<StackPanel Margin="8" DataContext="{Binding PaddingStep}">
<Grid Margin="0,0,0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="80" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="余白サイズ (px):" VerticalAlignment="Center" FontSize="13" />
<ui:TextBox Grid.Column="1" Height="32" Padding="6,0" Text="{Binding PaddingSize, UpdateSourceTrigger=PropertyChanged}" />
</Grid>
<TextBlock Text="背景色 (RGB):" FontSize="13" Foreground="{DynamicResource TextFillColorSecondaryBrush}" Margin="0,4,0,2" />
<Grid Margin="0,2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="35" />
</Grid.ColumnDefinitions>
<TextBlock Text="R" VerticalAlignment="Center" FontSize="13" />
<Slider Grid.Column="1" Minimum="0" Maximum="255" TickFrequency="5" IsSnapToTickEnabled="True" Value="{Binding PaddingRed}" />
<TextBlock Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Right" FontWeight="Bold" FontSize="13" Text="{Binding PaddingRed}" />
</Grid>
<Grid Margin="0,2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="35" />
</Grid.ColumnDefinitions>
<TextBlock Text="G" VerticalAlignment="Center" FontSize="13" />
<Slider Grid.Column="1" Minimum="0" Maximum="255" TickFrequency="5" IsSnapToTickEnabled="True" Value="{Binding PaddingGreen}" />
<TextBlock Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Right" FontWeight="Bold" FontSize="13" Text="{Binding PaddingGreen}" />
</Grid>
<Grid Margin="0,2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="35" />
</Grid.ColumnDefinitions>
<TextBlock Text="B" VerticalAlignment="Center" FontSize="13" />
<Slider Grid.Column="1" Minimum="0" Maximum="255" TickFrequency="5" IsSnapToTickEnabled="True" Value="{Binding PaddingBlue}" />
<TextBlock Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Right" FontWeight="Bold" FontSize="13" Text="{Binding PaddingBlue}" />
</Grid>
</StackPanel>
</Expander>
<!-- 6. Sharpen -->
<Expander Margin="0,0,0,8">
<HeaderedContentControl.Header>
<CheckBox Content="アンシャープマスク" FontSize="14" FontWeight="SemiBold" IsChecked="{Binding DataContext.SharpenStep.Enabled, Mode=TwoWay, RelativeSource={RelativeSource AncestorType=Expander}}" />
</HeaderedContentControl.Header>
<StackPanel Margin="8" DataContext="{Binding SharpenStep}">
<TextBlock Text="強さ (Sigma):" FontSize="13" Foreground="{DynamicResource TextFillColorSecondaryBrush}" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="40" />
</Grid.ColumnDefinitions>
<Slider Minimum="0.1" Maximum="5.0" TickFrequency="0.1" IsSnapToTickEnabled="True" Value="{Binding SharpenSigma}" />
<TextBlock Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right" FontWeight="Bold" FontSize="13" Text="{Binding SharpenSigma, StringFormat={}{0:F1}}" />
</Grid>
</StackPanel>
</Expander>
<!-- 7. ColorAdjust -->
<Expander Margin="0,0,0,8">
<HeaderedContentControl.Header>
<CheckBox Content="色調補正 (明るさ・コントラスト)" FontSize="14" FontWeight="SemiBold" IsChecked="{Binding DataContext.ColorAdjustStep.Enabled, Mode=TwoWay, RelativeSource={RelativeSource AncestorType=Expander}}" />
</HeaderedContentControl.Header>
<StackPanel Margin="8" DataContext="{Binding ColorAdjustStep}">
<TextBlock Text="明るさ:" FontSize="13" Foreground="{DynamicResource TextFillColorSecondaryBrush}" />
<Grid Margin="0,0,0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="40" />
</Grid.ColumnDefinitions>
<Slider Minimum="-100" Maximum="100" TickFrequency="5" IsSnapToTickEnabled="True" Value="{Binding Brightness}" />
<TextBlock Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right" FontWeight="Bold" FontSize="13" Text="{Binding Brightness}" />
</Grid>
<TextBlock Text="コントラスト:" FontSize="13" Foreground="{DynamicResource TextFillColorSecondaryBrush}" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="40" />
</Grid.ColumnDefinitions>
<Slider Minimum="-100" Maximum="100" TickFrequency="5" IsSnapToTickEnabled="True" Value="{Binding Contrast}" />
<TextBlock Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right" FontWeight="Bold" FontSize="13" Text="{Binding Contrast}" />
</Grid>
</StackPanel>
</Expander>
<!-- 8. ToneCurve -->
<Expander Margin="0,0,0,8">
<HeaderedContentControl.Header>
<CheckBox Content="トーンカーブ (ガンマ補正)" FontSize="14" FontWeight="SemiBold" IsChecked="{Binding DataContext.ToneCurveStep.Enabled, Mode=TwoWay, RelativeSource={RelativeSource AncestorType=Expander}}" />
</HeaderedContentControl.Header>
<StackPanel Margin="8" DataContext="{Binding ToneCurveStep}">
<TextBlock Text="ガンマ値:" FontSize="13" Foreground="{DynamicResource TextFillColorSecondaryBrush}" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="40" />
</Grid.ColumnDefinitions>
<Slider Minimum="0.1" Maximum="3.0" TickFrequency="0.1" IsSnapToTickEnabled="True" Value="{Binding ToneGamma}" />
<TextBlock Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right" FontWeight="Bold" FontSize="13" Text="{Binding ToneGamma, StringFormat={}{0:F1}}" />
</Grid>
</StackPanel>
</Expander>
<!-- 9. Posterize -->
<Expander Margin="0,0,0,8">
<HeaderedContentControl.Header>
<CheckBox Content="減色" FontSize="14" FontWeight="SemiBold" IsChecked="{Binding DataContext.PosterizeStep.Enabled, Mode=TwoWay, RelativeSource={RelativeSource AncestorType=Expander}}" />
</HeaderedContentControl.Header>
<StackPanel Margin="8" DataContext="{Binding PosterizeStep}">
<TextBlock Text="ビット深度:" FontSize="13" Foreground="{DynamicResource TextFillColorSecondaryBrush}" Margin="0,0,0,4" />
<ComboBox Height="36" SelectedIndex="{Binding BitsIndex}">
<ComboBoxItem Content="8 bit (フルカラー)" FontSize="13" />
<ComboBoxItem Content="7 bit (128階調)" FontSize="13" />
<ComboBoxItem Content="6 bit (64階調)" FontSize="13" />
<ComboBoxItem Content="5 bit (32階調)" FontSize="13" />
<ComboBoxItem Content="4 bit (16階調)" FontSize="13" />
<ComboBoxItem Content="3 bit (8階調)" FontSize="13" />
<ComboBoxItem Content="2 bit (4階調)" FontSize="13" />
<ComboBoxItem Content="1 bit (2階調)" FontSize="13" />
</ComboBox>
<TextBlock FontSize="13" Foreground="{DynamicResource TextFillColorSecondaryBrush}" Margin="0,8,0,0" Text="{Binding LevelsPerChannel, StringFormat=階調レベル: {0}階調/ch}" />
</StackPanel>
</Expander>
<!-- 10. Composite -->
<Expander Margin="0,0,0,8">
<HeaderedContentControl.Header>
<CheckBox Content="画像合成 (ウォーターマーク)" FontSize="14" FontWeight="SemiBold" IsChecked="{Binding DataContext.CompositeStep.Enabled, Mode=TwoWay, RelativeSource={RelativeSource AncestorType=Expander}}" />
</HeaderedContentControl.Header>
<StackPanel Margin="8" DataContext="{Binding CompositeStep}">
<TextBlock Text="合成する画像のファイルパス:" FontSize="13" Foreground="{DynamicResource TextFillColorSecondaryBrush}" />
<Grid Margin="0,4,0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<ui:TextBox Height="32" Text="{Binding CompositePath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
<ui:Button Grid.Column="1" Content="..." Width="32" Height="32" Margin="4,0,0,0" Command="{Binding DataContext.BrowseCompositeCommand, RelativeSource={RelativeSource AncestorType=Window}}" />
</Grid>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="Xオフセット:" VerticalAlignment="Center" FontSize="13" Margin="0,0,6,0" />
<ui:TextBox Grid.Column="1" Margin="0,0,12,0" Height="32" Text="{Binding CompositeX, UpdateSourceTrigger=PropertyChanged}" />
<TextBlock Grid.Column="2" Text="Yオフセット:" VerticalAlignment="Center" FontSize="13" Margin="0,0,6,0" />
<ui:TextBox Grid.Column="3" Height="32" Text="{Binding CompositeY, UpdateSourceTrigger=PropertyChanged}" />
</Grid>
</StackPanel>
</Expander>
<!-- 11. FormatConvert -->
<Expander Margin="0,0,0,8" IsExpanded="True">
<HeaderedContentControl.Header>
<CheckBox Content="フォーマット変換" FontSize="14" FontWeight="SemiBold" IsChecked="{Binding DataContext.FormatStep.Enabled, Mode=TwoWay, RelativeSource={RelativeSource AncestorType=Expander}}" />
</HeaderedContentControl.Header>
<StackPanel Margin="8" DataContext="{Binding FormatStep}">
<Grid Margin="0,0,0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="80" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="出力形式:" VerticalAlignment="Center" FontSize="13" />
<ComboBox Grid.Column="1" Height="36" SelectedIndex="{Binding TargetFormatIndex}">
<ComboBoxItem Content="JPEG" FontSize="13" />
<ComboBoxItem Content="PNG" FontSize="13" />
<ComboBoxItem Content="WebP" FontSize="13" />
<ComboBoxItem Content="AVIF" FontSize="13" />
<ComboBoxItem Content="TIFF" FontSize="13" />
</ComboBox>
</Grid>
<StackPanel Margin="0,8,0,0">
<TextBlock Text="品質 (JPEG / WebP / AVIF):" FontSize="13" Foreground="{DynamicResource TextFillColorSecondaryBrush}" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="40" />
</Grid.ColumnDefinitions>
<Slider Minimum="0" Maximum="100" TickFrequency="5" IsSnapToTickEnabled="True" Value="{Binding Quality}" />
<TextBlock Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right" FontWeight="Bold" FontSize="13" Text="{Binding Quality}" />
</Grid>
</StackPanel>
<StackPanel Margin="0,4,0,0">
<TextBlock Text="圧縮レベル (PNG):" FontSize="13" Foreground="{DynamicResource TextFillColorSecondaryBrush}" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="40" />
</Grid.ColumnDefinitions>
<Slider Minimum="0" Maximum="9" TickFrequency="1" IsSnapToTickEnabled="True" Value="{Binding CompressionLevel}" />
<TextBlock Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right" FontWeight="Bold" FontSize="13" Text="{Binding CompressionLevel}" />
</Grid>
</StackPanel>
</StackPanel>
</Expander>
<!-- 12. Optimize -->
<Expander Margin="0,0,0,8" IsExpanded="True">
<HeaderedContentControl.Header>
<CheckBox Content="ロスレス最適化" FontSize="14" FontWeight="SemiBold" IsChecked="{Binding DataContext.OptimizeStep.Enabled, Mode=TwoWay, RelativeSource={RelativeSource AncestorType=Expander}}" />
</HeaderedContentControl.Header>
<StackPanel Margin="8" DataContext="{Binding OptimizeStep}">
<CheckBox Content="メタデータ (Exifなど) を削除する" Margin="0,4" FontSize="13" IsChecked="{Binding StripMetadata}" />
<CheckBox Content="Huffman符号化の最適化 (JPEG)" Margin="0,4" FontSize="13" IsChecked="{Binding OptimizeCoding}" />
<CheckBox Content="Trellis量子化を有効化 (JPEG)" Margin="0,4" FontSize="13" IsChecked="{Binding TrellisQuant}" />
<CheckBox Content="ロスレス圧縮を優先する (WebP/AVIF)" Margin="0,4" FontSize="13" IsChecked="{Binding Lossless}" />
<StackPanel Margin="0,8,0,0">
<TextBlock Text="圧縮効率 (WebP / AVIF):" FontSize="13" Foreground="{DynamicResource TextFillColorSecondaryBrush}" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="40" />
</Grid.ColumnDefinitions>
<Slider Minimum="0" Maximum="6" TickFrequency="1" IsSnapToTickEnabled="True" Value="{Binding ReductionEffort}" />
<TextBlock Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right" FontWeight="Bold" FontSize="13" Text="{Binding ReductionEffort}" />
</Grid>
</StackPanel>
<Border BorderBrush="{DynamicResource ControlStrokeColorDefaultBrush}" BorderThickness="0,1,0,0" Margin="0,12,0,0" Padding="0,12,0,0">
<StackPanel>
<CheckBox Name="UseOxipngCheck" Content="PNGロスレス最適化に oxipng を使用する" FontSize="13" Margin="0,4" IsChecked="{Binding DataContext.UseOxipng, Mode=TwoWay, RelativeSource={RelativeSource AncestorType=Expander}}" />
<StackPanel Margin="16,4,0,4" Visibility="{Binding IsChecked, ElementName=UseOxipngCheck, Converter={StaticResource BooleanToVisibilityConverter}}">
<TextBlock Text="oxipng 最適化レベル:" FontSize="13" Foreground="{DynamicResource TextFillColorSecondaryBrush}" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="40" />
</Grid.ColumnDefinitions>
<Slider Minimum="0" Maximum="6" TickFrequency="1" IsSnapToTickEnabled="True" Value="{Binding DataContext.OxipngLevel, RelativeSource={RelativeSource AncestorType=Expander}}" />
<TextBlock Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right" FontWeight="Bold" FontSize="13" Text="{Binding DataContext.OxipngLevel, RelativeSource={RelativeSource AncestorType=Expander}}" />
</Grid>
</StackPanel>
<CheckBox Content="JPEG高品質エンコードに jpegli を使用する" FontSize="13" Margin="0,4" IsChecked="{Binding DataContext.UseJpegli, Mode=TwoWay, RelativeSource={RelativeSource AncestorType=Expander}}" />
</StackPanel>
</Border>
</StackPanel>
</Expander>
</StackPanel>
</ScrollViewer>
</Grid>
</TabItem>
<TabItem>
<HeaderedContentControl.Header>
<StackPanel Orientation="Horizontal" Margin="4,2">
<ui:SymbolIcon Symbol="DocumentBriefcase24" Margin="0,0,8,0">
<ui:SymbolIcon.Style>
<Style TargetType="{x:Type ui:SymbolIcon}">
<Setter Property="Foreground" Value="{DynamicResource TextFillColorSecondaryBrush}" />
<Style.Triggers>
<DataTrigger Binding="{Binding IsSelected, RelativeSource={RelativeSource AncestorType=TabItem}}" Value="True">
<Setter Property="Foreground" Value="{DynamicResource SystemAccentColorBrush}" />
</DataTrigger>
</Style.Triggers>
</Style>
</ui:SymbolIcon.Style>
</ui:SymbolIcon>
<TextBlock Text="Office変換設定" FontSize="13" VerticalAlignment="Center">
<TextBlock.Style>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="Foreground" Value="{DynamicResource TextFillColorSecondaryBrush}" />
<Setter Property="FontWeight" Value="Normal" />
<Style.Triggers>
<DataTrigger Binding="{Binding IsSelected, RelativeSource={RelativeSource AncestorType=TabItem}}" Value="True">
<Setter Property="Foreground" Value="{DynamicResource SystemAccentColorBrush}" />
<Setter Property="FontWeight" Value="Bold" />
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
</StackPanel>
</HeaderedContentControl.Header>
<Grid>
<ScrollViewer VerticalScrollBarVisibility="Auto" Margin="0,0,-8,0" Padding="0,0,8,0">
<StackPanel>
<Expander Margin="0,0,0,8" IsExpanded="True">
<HeaderedContentControl.Header>
<CheckBox Content="Officeファイルを軽量化・最適化する" FontSize="14" FontWeight="SemiBold" IsChecked="{Binding DataContext.EnableOfficeOptimize, Mode=TwoWay, RelativeSource={RelativeSource AncestorType=Expander}}" />
</HeaderedContentControl.Header>
<StackPanel Margin="8">
<CheckBox Content="作成者・ドキュメントのメタデータを削除" Margin="0,4" FontSize="13" IsChecked="{Binding StripOfficeMetadata}" />
<CheckBox Content="ファイル内の未使用オブジェクトをクリーンアップ" Margin="0,4" FontSize="13" IsChecked="{Binding CleanUnusedObjects}" />
<CheckBox Content="Excel: すべてのシートの選択セルを A1 にリセット" Margin="0,4" FontSize="13" IsChecked="{Binding ResetCellSelection}" />
</StackPanel>
</Expander>
<Expander Margin="0,0,0,8" IsExpanded="True">
<HeaderedContentControl.Header>
<CheckBox Content="文書内の埋め込み画像を最適化" FontSize="14" FontWeight="SemiBold" IsChecked="{Binding DataContext.CompressEmbeddedImages, Mode=TwoWay, RelativeSource={RelativeSource AncestorType=Expander}}" />
</HeaderedContentControl.Header>
<StackPanel Margin="8">
<CheckBox Name="OfficePpiCheck" Content="解像度を最大 PPI で制限する" Margin="0,4" FontSize="13" IsChecked="{Binding ResizeEmbeddedImagesByPpi}" />
<StackPanel Margin="16,4,0,8" Visibility="{Binding IsChecked, ElementName=OfficePpiCheck, Converter={StaticResource BooleanToVisibilityConverter}}">
<TextBlock Text="上限解像度 (PPI):" FontSize="13" Foreground="{DynamicResource TextFillColorSecondaryBrush}" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="50" />
</Grid.ColumnDefinitions>
<Slider Minimum="72" Maximum="600" TickFrequency="10" IsSnapToTickEnabled="True" Value="{Binding TargetImagePpi}" />
<TextBlock Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right" FontWeight="Bold" FontSize="13" Text="{Binding TargetImagePpi}" />
</Grid>
</StackPanel>
<CheckBox Name="OfficeWebpCheck" Content="画像を WebP フォーマットに変換" Margin="0,4" FontSize="13" IsChecked="{Binding ConvertToWebP}" />
<StackPanel Margin="16,4,0,8" Visibility="{Binding IsChecked, ElementName=OfficeWebpCheck, Converter={StaticResource BooleanToVisibilityConverter}}">
<TextBlock Text="WebP 圧縮品質:" FontSize="13" Foreground="{DynamicResource TextFillColorSecondaryBrush}" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="40" />
</Grid.ColumnDefinitions>
<Slider Minimum="10" Maximum="100" TickFrequency="5" IsSnapToTickEnabled="True" Value="{Binding WebPQuality}" />
<TextBlock Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right" FontWeight="Bold" FontSize="13" Text="{Binding WebPQuality}" />
</Grid>
</StackPanel>
<CheckBox Name="OfficeOxipngCheck" Content="PNGロスレス圧縮に oxipng を使用" Margin="0,4" FontSize="13" IsChecked="{Binding UseOxipng}" />
<StackPanel Margin="16,4,0,8" Visibility="{Binding IsChecked, ElementName=OfficeOxipngCheck, Converter={StaticResource BooleanToVisibilityConverter}}">
<TextBlock Text="oxipng 最適化レベル:" FontSize="13" Foreground="{DynamicResource TextFillColorSecondaryBrush}" />
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="40" />
</Grid.ColumnDefinitions>
<Slider Minimum="0" Maximum="6" TickFrequency="1" IsSnapToTickEnabled="True" Value="{Binding OxipngLevel}" />
<TextBlock Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right" FontWeight="Bold" FontSize="13" Text="{Binding OxipngLevel}" />
</Grid>
</StackPanel>
<CheckBox Content="JPEGエンコードに jpegli を使用" Margin="0,4" FontSize="13" IsChecked="{Binding UseJpegli}" />
</StackPanel>
</Expander>
<Expander Margin="0,0,0,8">
<HeaderedContentControl.Header>
<CheckBox Content="文書内の埋め込み動画・音声を圧縮" FontSize="14" FontWeight="SemiBold" IsChecked="{Binding DataContext.CompressMedia, Mode=TwoWay, RelativeSource={RelativeSource AncestorType=Expander}}" />
</HeaderedContentControl.Header>
<StackPanel Margin="8">
<TextBlock Text="映像品質 (CRF - 値が小さいほど高品質):" FontSize="13" Foreground="{DynamicResource TextFillColorSecondaryBrush}" />
<Grid Margin="0,4,0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="40" />
</Grid.ColumnDefinitions>
<Slider Minimum="0" Maximum="51" TickFrequency="1" IsSnapToTickEnabled="True" Value="{Binding MediaVideoCrf}" />
<TextBlock Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right" FontWeight="Bold" FontSize="13" Text="{Binding MediaVideoCrf}" />
</Grid>
<Grid Margin="0,4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="映像映像コーデック:" VerticalAlignment="Center" FontSize="13" />
<ComboBox Grid.Column="1" Height="36" SelectedIndex="{Binding MediaVideoCodecIndex}">
<ComboBoxItem Content="libx264 (H.264)" FontSize="13" />
<ComboBoxItem Content="libx265 (H.265/HEVC)" FontSize="13" />
<ComboBoxItem Content="libvpx-vp9 (VP9)" FontSize="13" />
<ComboBoxItem Content="libaom-av1 (AV1)" FontSize="13" />
</ComboBox>
</Grid>
<Grid Margin="0,4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="音声コーデック:" VerticalAlignment="Center" FontSize="13" />
<ComboBox Grid.Column="1" Height="36" SelectedIndex="{Binding MediaAudioCodecIndex}">
<ComboBoxItem Content="aac (AAC)" FontSize="13" />
<ComboBoxItem Content="libopus (Opus)" FontSize="13" />
<ComboBoxItem Content="copy (コピー)" FontSize="13" />
</ComboBox>
</Grid>
</StackPanel>
</Expander>
<Expander Margin="0,0,0,8">
<HeaderedContentControl.Header>
<CheckBox Content="完了時にPDF形式に変換・保存する" FontSize="14" FontWeight="SemiBold" IsChecked="{Binding DataContext.ConvertOfficeToPdf, Mode=TwoWay, RelativeSource={RelativeSource AncestorType=Expander}}" IsEnabled="{Binding DataContext.IsOfficePdfConversionAvailable, RelativeSource={RelativeSource AncestorType=Expander}}" ToolTip="{Binding DataContext.OfficePdfConversionToolTip, RelativeSource={RelativeSource AncestorType=Expander}}" />
</HeaderedContentControl.Header>
<StackPanel Margin="8">
<CheckBox Content="PDF/A 標準互換としてエクスポート" FontSize="13" IsChecked="{Binding ConvertOfficeToPdfA}" />
</StackPanel>
</Expander>
</StackPanel>
</ScrollViewer>
</Grid>
</TabItem>
<TabItem>
<HeaderedContentControl.Header>
<StackPanel Orientation="Horizontal" Margin="4,2">
<ui:SymbolIcon Symbol="DocumentPdf24" Margin="0,0,8,0">
<ui:SymbolIcon.Style>
<Style TargetType="{x:Type ui:SymbolIcon}">
<Setter Property="Foreground" Value="{DynamicResource TextFillColorSecondaryBrush}" />
<Style.Triggers>
<DataTrigger Binding="{Binding IsSelected, RelativeSource={RelativeSource AncestorType=TabItem}}" Value="True">
<Setter Property="Foreground" Value="{DynamicResource SystemAccentColorBrush}" />
</DataTrigger>
</Style.Triggers>
</Style>
</ui:SymbolIcon.Style>
</ui:SymbolIcon>
<TextBlock Text="PDF軽量化設定" FontSize="13" VerticalAlignment="Center">
<TextBlock.Style>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="Foreground" Value="{DynamicResource TextFillColorSecondaryBrush}" />
<Setter Property="FontWeight" Value="Normal" />
<Style.Triggers>
<DataTrigger Binding="{Binding IsSelected, RelativeSource={RelativeSource AncestorType=TabItem}}" Value="True">
<Setter Property="Foreground" Value="{DynamicResource SystemAccentColorBrush}" />
<Setter Property="FontWeight" Value="Bold" />
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
</StackPanel>
</HeaderedContentControl.Header>
<Grid>
<ScrollViewer VerticalScrollBarVisibility="Auto" Margin="0,0,-8,0" Padding="0,0,8,0">
<StackPanel>
<Expander Margin="0,0,0,8" IsExpanded="True">
<HeaderedContentControl.Header>
<CheckBox Content="PDF内の埋め込み画像を再圧縮・最適化する" FontSize="14" FontWeight="SemiBold" IsChecked="{Binding DataContext.PdfOptimizeImages, Mode=TwoWay, RelativeSource={RelativeSource AncestorType=Expander}}" />
</HeaderedContentControl.Header>
<StackPanel Margin="8">
<TextBlock Text="JPEG 圧縮品質 (1 - 100):" FontSize="13" Foreground="{DynamicResource TextFillColorSecondaryBrush}" />
<Grid Margin="0,4,0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="40" />
</Grid.ColumnDefinitions>
<Slider Minimum="1" Maximum="100" TickFrequency="5" IsSnapToTickEnabled="True" Value="{Binding PdfJpegQuality}" />
<TextBlock Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right" FontWeight="Bold" FontSize="13" Text="{Binding PdfJpegQuality}" />
</Grid>
<Grid Margin="0,4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="12" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="圧縮最小サイズ制限:" VerticalAlignment="Center" FontSize="13" />
<ui:TextBox Grid.Column="1" Height="32" PlaceholderText="幅 (px)" Text="{Binding PdfMinWidth, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
<TextBlock Grid.Column="2" Text="x" HorizontalAlignment="Center" VerticalAlignment="Center" />
<ui:TextBox Grid.Column="3" Height="32" PlaceholderText="高さ (px)" Text="{Binding PdfMinHeight, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
</Grid>
<CheckBox Content="インライン画像の構成を保持" FontSize="13" Margin="0,6,0,0" IsChecked="{Binding PdfKeepInlineImages}" />
</StackPanel>
</Expander>
<Expander Margin="0,0,0,8">
<HeaderedContentControl.Header>
<CheckBox Content="ストリーム(テキスト・構造データ)の圧縮" FontSize="14" FontWeight="SemiBold" IsChecked="{Binding DataContext.PdfCompressStreams, Mode=TwoWay, RelativeSource={RelativeSource AncestorType=Expander}}" />
</HeaderedContentControl.Header>
<StackPanel Margin="8">
<TextBlock Text="Deflate 圧縮レベル (1 - 9):" FontSize="13" Foreground="{DynamicResource TextFillColorSecondaryBrush}" />
<Grid Margin="0,4,0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="40" />
</Grid.ColumnDefinitions>
<Slider Minimum="1" Maximum="9" TickFrequency="1" IsSnapToTickEnabled="True" Value="{Binding PdfCompressionLevel}" />
<TextBlock Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right" FontWeight="Bold" FontSize="13" Text="{Binding PdfCompressionLevel}" />
</Grid>
<Grid Margin="0,4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="デコードレベル:" VerticalAlignment="Center" FontSize="13" />
<ComboBox Height="36" SelectedIndex="{Binding PdfDecodeLevelIndex}">
<ComboBoxItem Content="none (デコードしない)" />
<ComboBoxItem Content="generalized (通常)" />
<ComboBoxItem Content="specialized (高度)" />
<ComboBoxItem Content="all (すべてデコード)" />
</ComboBox>
</Grid>
<CheckBox Content="既存の Flate(Deflate)ストリームを再圧縮する" FontSize="13" Margin="0,6,0,0" IsChecked="{Binding PdfRecompressFlate}" />
</StackPanel>
</Expander>
<Expander Margin="0,0,0,8">
<HeaderedContentControl.Header>
<CheckBox Content="PDF構造のクリーンアップと整理" FontSize="14" FontWeight="SemiBold" IsChecked="{Binding DataContext.PdfStructureCleanup, Mode=TwoWay, RelativeSource={RelativeSource AncestorType=Expander}}" />
</HeaderedContentControl.Header>
<StackPanel Margin="8">
<CheckBox Content="インライン画像を通常画像オブジェクトに変換" Margin="0,4" FontSize="13" IsChecked="{Binding PdfExternalizeInlineImages}" />
<CheckBox Content="未参照のオブジェクトを保持する" Margin="0,4" FontSize="13" IsChecked="{Binding PdfPreserveUnreferencedObjects}" />
<CheckBox Content="コンテンツストリームの改行コードを正規化" Margin="0,4" FontSize="13" IsChecked="{Binding PdfNormalizeContent}" />
<CheckBox Content="隣接するテキストコンテンツを統合" Margin="0,4" FontSize="13" IsChecked="{Binding PdfCoalesceContents}" />
</StackPanel>
</Expander>
<Expander Margin="0,0,0,8">
<HeaderedContentControl.Header>
<CheckBox Content="Web最適化 (Linearize) / 互換性設定" FontSize="14" FontWeight="SemiBold" IsChecked="{Binding DataContext.PdfDistributionCompatibility, Mode=TwoWay, RelativeSource={RelativeSource AncestorType=Expander}}" />
</HeaderedContentControl.Header>
<StackPanel Margin="8">
<CheckBox Content="Web配信用に最適化 (最初のページを高速表示)" Margin="0,4" FontSize="13" IsChecked="{Binding PdfLinearize}" />
<Grid Margin="0,6">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="120" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Text="最小PDF互換バージョン:" VerticalAlignment="Center" FontSize="13" />
<ComboBox Grid.Column="1" Height="36" SelectedIndex="{Binding PdfMinVersionIndex}">
<ComboBoxItem Content="指定なし" />
<ComboBoxItem Content="1.3" />
<ComboBoxItem Content="1.4" />
<ComboBoxItem Content="1.5" />
<ComboBoxItem Content="1.6" />
<ComboBoxItem Content="1.7" />
<ComboBoxItem Content="2.0" />
</ComboBox>
</Grid>
</StackPanel>
</Expander>
<Expander Margin="0,0,0,8">
<HeaderedContentControl.Header>
<CheckBox Content="セキュリティ制限やパスワードの解除" FontSize="14" FontWeight="SemiBold" IsChecked="{Binding DataContext.PdfRestrictionRemoval, Mode=TwoWay, RelativeSource={RelativeSource AncestorType=Expander}}" />
</HeaderedContentControl.Header>
<StackPanel Margin="8">
<CheckBox Content="所有者パスワードによる暗号化の解除" Margin="0,4" FontSize="13" IsChecked="{Binding PdfDecrypt}" />
<CheckBox Content="コピー・編集・印刷のセキュリティ制限を解除" Margin="0,4" FontSize="13" IsChecked="{Binding PdfRemoveRestrictions}" />
</StackPanel>
</Expander>
</StackPanel>
</ScrollViewer>
</Grid>