summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Views/X264View.xaml
blob: b1c97e592eba23ed3f4fa810218b193bbf952c5b (plain)
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
<UserControl x:Class="HandBrakeWPF.Views.X264View"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:Converters="clr-namespace:HandBrakeWPF.Converters"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:Helpers="clr-namespace:HandBrakeWPF.Helpers"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:Properties="clr-namespace:HandBrakeWPF.Properties"
             xmlns:controls="clr-namespace:HandBrakeWPF.Controls"
             x:Name="x264View"
             mc:Ignorable="d"
             >
    <UserControl.Resources>
        <Converters:AdvancedVisibilityConverter x:Key="VisibilityConverter" />
        <Converters:BooleanToVisibilityConverter x:Key="BooleanVisibilityConverter" />
        <Style x:Key="AdvancedLabel" TargetType="Label">
            <Setter Property="HorizontalAlignment" Value="Right" />
        </Style>

        <Style x:Key="LongToolTipHolder" TargetType="FrameworkElement">
            <Setter Property="ToolTipService.ShowDuration" Value="20000" />
            <Setter Property="Margin" Value="0,2,0,2" />
        </Style>

        <Style x:Key="LongToolTip" TargetType="TextBlock">
            <Setter Property="Width" Value="400" />
            <Setter Property="TextWrapping" Value="Wrap" />
        </Style>

      </UserControl.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <!-- X264 Query  -->

        <TextBlock Text="{x:Static Properties:Resources.Advanced_NotInUse}" Grid.Row="0"
                       TextWrapping="Wrap" Width="480" Margin="0, 100, 0, 0" FontSize="12"
                       Visibility="{Binding ShowX264AdvancedOptions, Converter={StaticResource BooleanVisibilityConverter}, ConverterParameter=true}" />

        <Grid Grid.Row="1" Visibility="{Binding ShowX264AdvancedOptions, Converter={StaticResource BooleanVisibilityConverter}, ConverterParameter=false}">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>

            <!--  Left Column  -->
            <StackPanel Grid.Row="0"
                            Grid.Column="0"
                            Orientation="Vertical"
                            >
                <!--  Encoding  -->
                <StackPanel Orientation="Vertical">
                    <TextBlock Grid.Row="0"
                                   Margin="10,5,0,0"
                                   FontWeight="Bold"
                                   Text="Encoding: "
                                   />
                    <Grid Margin="0,5,0,0"
                              HorizontalAlignment="Left"
                              VerticalAlignment="Top"
                              >
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="*" MinWidth="100" />
                        </Grid.ColumnDefinitions>

                        <Label Grid.Row="0"
                                   Grid.Column="0"
                                   Content="Reference Frames:"
                                   Style="{StaticResource AdvancedLabel}"
                                   />
                        <ComboBox Grid.Row="0"
                                      Grid.Column="1"
                                      Height="22"
                                      DisplayMemberPath="Label"
                                      ItemsSource="{x:Static Helpers:AdvancedChoicesHelper.ReferenceFrames}"
                                      SelectedItem="{Binding ReferenceFrames}"
                                      Style="{StaticResource LongToolTipHolder}"
                                      >
                            <ComboBox.ToolTip>
                                <TextBlock Style="{StaticResource LongToolTip}" Text="{x:Static Properties:Resources.Advanced_ReferenceFramesToolTip}" />
                            </ComboBox.ToolTip>
                        </ComboBox>

                        <Label Grid.Row="1"
                                   Grid.Column="0"
                                   Content="Maximum B-Frames:"
                                   Style="{StaticResource AdvancedLabel}"
                                   />
                        <ComboBox Grid.Row="1"
                                      Grid.Column="1"
                                      Height="22"
                                      DisplayMemberPath="Label"
                                      ItemsSource="{x:Static Helpers:AdvancedChoicesHelper.BFrames}"
                                      SelectedItem="{Binding BFrames}"
                                      Style="{StaticResource LongToolTipHolder}"
                                      >
                            <ComboBox.ToolTip>
                                <TextBlock Style="{StaticResource LongToolTip}" Text="{x:Static Properties:Resources.Advanced_BFramesToolTip}" />
                            </ComboBox.ToolTip>
                        </ComboBox>


                        <Label Grid.Row="4"
                                   Grid.Column="0"
                                   Height="28"
                                   Content="CABAC:"
                                   Style="{StaticResource AdvancedLabel}"
                                   />
                        <CheckBox Grid.Row="4"
                                      Grid.Column="1"
                                      Height="16"
                                      IsChecked="{Binding CabacEntropyCoding}"
                                      Style="{StaticResource LongToolTipHolder}"
                                      >
                            <CheckBox.ToolTip>
                                <TextBlock Style="{StaticResource LongToolTip}" Text="{x:Static Properties:Resources.Advanced_CabacToolTip}" />
                            </CheckBox.ToolTip>
                        </CheckBox>

                        <Label Grid.Row="5"
                                   Grid.Column="0"
                                   Height="28"
                                   Content="8x8 Transform:"
                                   Style="{StaticResource AdvancedLabel}"
                                   />
                        <CheckBox Grid.Row="5"
                                      Grid.Column="1"
                                      Height="16"
                                      IsChecked="{Binding EightByEightDct}"
                                      Style="{StaticResource LongToolTipHolder}">
                            <CheckBox.ToolTip>
                                <TextBlock Style="{StaticResource LongToolTip}" Text="{x:Static Properties:Resources.Advanced_EightByEightDctToolTip}" />
                            </CheckBox.ToolTip>
                        </CheckBox>

                        <Label Grid.Row="6"
                                   Grid.Column="0"
                                   Content="Weighted P-Frames:"
                                   Style="{StaticResource AdvancedLabel}"
                                   />
                        <CheckBox Grid.Row="6"
                                      Grid.Column="1"
                                      VerticalAlignment="Center"
                                      IsChecked="{Binding WeightedPFrames}"
                                      Style="{StaticResource LongToolTipHolder}"
                                      >
                            <CheckBox.ToolTip>
                                <TextBlock Style="{StaticResource LongToolTip}" Text="{x:Static Properties:Resources.Advanced_WeightPToolTip}" />
                            </CheckBox.ToolTip>
                        </CheckBox>

                        <Label Grid.Row="7"
                                   Grid.Column="0"
                                   Content="Pyramidal B-Frames:"
                                   Style="{StaticResource AdvancedLabel}"
                                   Visibility="{Binding PyramidalBFramesVisible,
                                                        Converter={StaticResource VisibilityConverter}}"
                                   />
                        <ComboBox Grid.Row="7"
                                      Grid.Column="1"
                                      Height="22"
                                      MaxWidth="100"
                                      DisplayMemberPath="Label"
                                      ItemsSource="{x:Static Helpers:AdvancedChoicesHelper.PyramidalBFrames}"
                                      SelectedItem="{Binding PyramidalBFrames}"
                                      Style="{StaticResource LongToolTipHolder}"
                                      Visibility="{Binding PyramidalBFramesVisible,
                                                           Converter={StaticResource VisibilityConverter}}"
                                      >
                            <ComboBox.ToolTip>
                                <TextBlock Style="{StaticResource LongToolTip}" Text="{x:Static Properties:Resources.Advanced_PyramidalBFramesToolTip}" />
                            </ComboBox.ToolTip>
                        </ComboBox>
                    </Grid>
                </StackPanel>
            </StackPanel>

            <!--  Right Column  -->
            <Grid Grid.Row="0" Grid.Column="1">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>

                <!-- Analysis -->
                <TextBlock Text="Analysis: " Grid.Row="0" Margin="10,5,0,0" FontWeight="Bold"  />
                <Grid Grid.Row="1"  HorizontalAlignment="Left" VerticalAlignment="Top">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="Auto" MinWidth="100" />
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>

                    <Label Content="Adaptive B-Frames:"
                               Style="{StaticResource AdvancedLabel}"
                               Visibility="{Binding BFramesOptionsVisible,
                                                    Converter={StaticResource VisibilityConverter}}" Height="26" VerticalAlignment="Top" />
                    <ComboBox Grid.Row="0"
                                  Grid.Column="1"
                                  Width="120"
                                  Height="22"
                                  MaxWidth="120"
                                  DisplayMemberPath="Label"
                                  ItemsSource="{x:Static Helpers:AdvancedChoicesHelper.AdaptiveBFrames}"
                                  SelectedItem="{Binding AdaptiveBFrames}"
                                  Style="{StaticResource LongToolTipHolder}"
                                  Visibility="{Binding BFramesOptionsVisible,
                                                       Converter={StaticResource VisibilityConverter}}"
                                  >
                        <ComboBox.ToolTip>
                            <TextBlock Style="{StaticResource LongToolTip}" Text="{x:Static Properties:Resources.Advanced_AdaptiveBFramesToolTip}" />
                        </ComboBox.ToolTip>
                    </ComboBox>

                    <Label Grid.Row="1"
                               Grid.Column="0"
                               Content="Adaptive Direct Mode:"
                               Style="{StaticResource AdvancedLabel}"
                               Visibility="{Binding BFramesOptionsVisible,
                                                    Converter={StaticResource VisibilityConverter}}"
                               />
                    <ComboBox Grid.Row="1"
                                  Grid.Column="1"
                                  Width="120"
                                  Height="22"
                                  MaxWidth="120"
                                  DisplayMemberPath="Label"
                                  ItemsSource="{x:Static Helpers:AdvancedChoicesHelper.DirectPrediction}"
                                  SelectedItem="{Binding DirectPrediction}"
                                  Style="{StaticResource LongToolTipHolder}"
                                  Visibility="{Binding BFramesOptionsVisible,
                                                       Converter={StaticResource VisibilityConverter}}"
                                  >
                        <ComboBox.ToolTip>
                            <TextBlock Style="{StaticResource LongToolTip}" Text="{x:Static Properties:Resources.Advanced_AdaptiveDirectModeToolTip}" />
                        </ComboBox.ToolTip>
                    </ComboBox>

                    <Label Grid.Row="2"
                               Grid.Column="0"
                               Content="Motion Est Method:"
                               Style="{StaticResource AdvancedLabel}"
                               />
                    <ComboBox Grid.Row="2"
                                  Grid.Column="1"
                                  Width="120"
                                  Height="22"
                                  MaxWidth="120"
                                  DisplayMemberPath="Label"
                                  ItemsSource="{x:Static Helpers:AdvancedChoicesHelper.MotionEstimationMethod}"
                                  SelectedItem="{Binding MotionEstimationMethod}"
                                  Style="{StaticResource LongToolTipHolder}"
                                  >
                        <ComboBox.ToolTip>
                            <TextBlock Style="{StaticResource LongToolTip}" Text="{x:Static Properties:Resources.Advanced_MotionEstimationMethodToolTip}" />
                        </ComboBox.ToolTip>
                    </ComboBox>

                    <Label Grid.Row="3"
                               Grid.Column="0"
                               Content="Subpixel Motion Est:"
                               Style="{StaticResource AdvancedLabel}"
                               />
                    <ComboBox Grid.Row="3"
                                  Grid.Column="1"
                                  Width="120"
                                  Height="22"
                                  MaxWidth="120"
                                  DisplayMemberPath="Label"
                                  ItemsSource="{x:Static Helpers:AdvancedChoicesHelper.SubpixelMotionEstimation}"
                                  SelectedItem="{Binding SubpixelMotionEstimation}"
                                  Style="{StaticResource LongToolTipHolder}"
                                  >
                        <ComboBox.ToolTip>
                            <TextBlock Style="{StaticResource LongToolTip}" Text="{x:Static Properties:Resources.Advanced_SubpixelMotionEstimationToolTip}" />
                        </ComboBox.ToolTip>
                    </ComboBox>

                    <Label Grid.Row="4"
                               Grid.Column="0"
                               Content="Motion Est Range:"
                               Style="{StaticResource AdvancedLabel}" />
                    <controls:NumberBox Grid.Row="4"
                                            Grid.Column="1"
                                            Width="120"
                                            Height="22"
                                            MaxWidth="120"
                                            Minimum="4" Maximum="64"   
                                            Number="{Binding MotionEstimationRange, Mode=TwoWay}"
                                            ToolTip="{x:Static Properties:Resources.Advanced_MotionEstimationRangeToolTip}" 
                                            />


                    <!-- Column 2 -->
                    <Label Grid.Row="0" Grid.Column="2"
                               Height="28"
                               HorizontalAlignment="Right"
                               VerticalAlignment="Top"
                               Content="Partition Type:"
                               />
                    <ComboBox Grid.Row="0" Grid.Column="3"
                                  Width="100"
                                  Height="23"
                                  MaxWidth="100"
                                  HorizontalAlignment="Right"
                                  VerticalAlignment="Top"
                                  DisplayMemberPath="Label"
                                  ItemsSource="{x:Static Helpers:AdvancedChoicesHelper.Analysis}"
                                  SelectedItem="{Binding Analysis}"
                                  Style="{StaticResource LongToolTipHolder}"
                                  >
                        <ComboBox.ToolTip>
                            <TextBlock Style="{StaticResource LongToolTip}" Text="{x:Static Properties:Resources.Advanced_AnalysisToolTip}" />
                        </ComboBox.ToolTip>
                    </ComboBox>

                    <Label Grid.Row="1" Grid.Column="2" Height="28" HorizontalAlignment="Right" VerticalAlignment="Top" Content="Trellis:" />
                    <ComboBox Grid.Row="1"
                                  Grid.Column="3"
                                  Width="100"
                                  Height="23"
                                  MaxWidth="100"
                                  HorizontalAlignment="Right"
                                  VerticalAlignment="Top"
                                  DisplayMemberPath="Label"
                                  ItemsSource="{x:Static Helpers:AdvancedChoicesHelper.Trellis}"
                                  SelectedItem="{Binding Trellis}"
                                  Style="{StaticResource LongToolTipHolder}">
                        <ComboBox.ToolTip>
                            <TextBlock Style="{StaticResource LongToolTip}" Text="{x:Static Properties:Resources.Advanced_TrellisToolTip}" />
                        </ComboBox.ToolTip>
                    </ComboBox>
                </Grid>

                <!-- PhysoVisual -->
                <TextBlock Text="Psychovisual: " Grid.Row="2" Margin="10,5,0,0" FontWeight="Bold"  />
                <Grid Grid.Row="3"
                          Height="90"
                          HorizontalAlignment="Left"
                          VerticalAlignment="Top"
                          >
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="Auto" MinWidth="100" />
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>

                    <Label Grid.Row="0" Grid.Column="0"
                               Content="Adaptive Quant Strength:"
                               Style="{StaticResource AdvancedLabel}"
                               />
                    <Slider Grid.Row="0" Grid.Column="1"
                                IsSnapToTickEnabled="True"
                                LargeChange="0.2"
                                Maximum="2.0"
                                 Width="150"
                                Minimum="0.0"
                                SmallChange="0.1"
                                Style="{StaticResource LongToolTipHolder}"
                                TickFrequency="0.1"
                                TickPlacement="BottomRight"
                                Value="{Binding AdaptiveQuantizationStrength}"
                                >
                        <Slider.ToolTip>
                            <TextBlock Style="{StaticResource LongToolTip}" Text="{x:Static Properties:Resources.Advanced_AdaptiveQuantizationStrengthToolTip}" />
                        </Slider.ToolTip>
                    </Slider>

                    <Label Grid.Row="1" Grid.Column="0"
                               Content="Rate Distortion:"
                               Style="{StaticResource AdvancedLabel}"
                               Visibility="{Binding PsychovisualRateDistortionVisible,
                                                    Converter={StaticResource VisibilityConverter}}"
                               />
                    <Slider Grid.Row="1" Grid.Column="1"
                                IsSnapToTickEnabled="True"
                                LargeChange="0.2"
                                Maximum="2.0"
                                Minimum="0.0"
                                Width="150"
                                SmallChange="0.1"
                                Style="{StaticResource LongToolTipHolder}"
                                TickFrequency="0.1"
                                TickPlacement="BottomRight"
                                Visibility="{Binding PsychovisualRateDistortionVisible,
                                                     Converter={StaticResource VisibilityConverter}}"
                                Value="{Binding PsychovisualRateDistortion}"
                                >
                        <Slider.ToolTip>
                            <TextBlock Style="{StaticResource LongToolTip}" Text="{x:Static Properties:Resources.Advanced_PsychovisualRateDistortionToolTip}" />
                        </Slider.ToolTip>
                    </Slider>

                    <Label Grid.Row="2" Grid.Column="0"
                               Content="Psychovisual Trellis:"
                               Style="{StaticResource AdvancedLabel}"
                               Visibility="{Binding PsychovisualTrellisVisible,
                                                    Converter={StaticResource VisibilityConverter}}"
                               />
                    <Slider Grid.Row="2" Grid.Column="1"
                                IsSnapToTickEnabled="True"
                                LargeChange="0.2"
                                Maximum="1.0"
                                Minimum="0.0"
                                Width="150"
                                SmallChange="0.05"
                                Style="{StaticResource LongToolTipHolder}"
                                TickFrequency="0.05"
                                TickPlacement="BottomRight"
                                Visibility="{Binding PsychovisualTrellisVisible,
                                                     Converter={StaticResource VisibilityConverter}}"
                                Value="{Binding PsychovisualTrellis}"
                                >
                        <Slider.ToolTip>
                            <TextBlock Style="{StaticResource LongToolTip}" Text="{x:Static Properties:Resources.Advanced_PsychovisualTrellisToolTip}" />
                        </Slider.ToolTip>
                    </Slider>

                    <Label Grid.Row="0" Grid.Column="2"  Width="110"
                                   HorizontalAlignment="Left"
                                   VerticalAlignment="Center"
                                   HorizontalContentAlignment="Right"
                                   Content="No DCT-Decimate:"
                                   />
                    <CheckBox Grid.Row="0" Grid.Column="3"  HorizontalAlignment="Left"
                                      VerticalAlignment="Center"
                                      IsChecked="{Binding NoDctDecimate}"
                                      Style="{StaticResource LongToolTipHolder}"
                                      >
                        <CheckBox.ToolTip>
                            <TextBlock Style="{StaticResource LongToolTip}" Text="{x:Static Properties:Resources.Advanced_NoDctDecimateToolTip}" />
                        </CheckBox.ToolTip>
                    </CheckBox>

                    <Label Grid.Row="1"
                               Grid.Column="2"
                               Height="28"
                               HorizontalAlignment="Right"
                               VerticalAlignment="Top"
                               Content="Deblocking:"
                               />
                    <StackPanel Orientation="Vertical" Grid.Row="1" Grid.Column="3" Grid.RowSpan="2">
                        <ComboBox
                                  Width="85"
                                  Height="23"
                                  MaxWidth="85"
                                  HorizontalAlignment="Right"
                                  VerticalAlignment="Top"
                                  DisplayMemberPath="Label"
                                  ItemsSource="{x:Static Helpers:AdvancedChoicesHelper.DeblockingStrength}"
                                  SelectedItem="{Binding DeblockingStrength}"
                                  Style="{StaticResource LongToolTipHolder}"
                                  >
                            <ComboBox.ToolTip>
                                <TextBlock Style="{StaticResource LongToolTip}" Text="{x:Static Properties:Resources.Advanced_DeblockingToolTip}" />
                            </ComboBox.ToolTip>
                        </ComboBox>
                        <ComboBox 
                                  Width="85"
                                  Height="23"
                                  MaxWidth="85"
                                  Margin="0,5,0,0"
                                  HorizontalAlignment="Right"
                                  VerticalAlignment="Top"
                                  DisplayMemberPath="Label"
                                  ItemsSource="{x:Static Helpers:AdvancedChoicesHelper.DeblockingThreshold}"
                                  SelectedItem="{Binding DeblockingThreshold}"
                                  Style="{StaticResource LongToolTipHolder}"
                                  >
                            <ComboBox.ToolTip>
                                <TextBlock Style="{StaticResource LongToolTip}" Text="{x:Static Properties:Resources.Advanced_DeblockingToolTip}" />
                            </ComboBox.ToolTip>
                        </ComboBox>
                    </StackPanel>

                </Grid>

            </Grid>

        </Grid>
        
        <TextBlock Grid.Row="2" Margin="10,5,10,0"
                   VerticalAlignment="Center"
                   FontWeight="Bold"
                   Text="x264 Encoder Options:"
                   Visibility="{Binding ShowX264AdvancedOptions, Converter={StaticResource BooleanVisibilityConverter}, ConverterParameter=false}" />
        
        <TextBox Grid.Row="3"
                 Margin="10,2,10, 2"
                 MinHeight="50"
                 HorizontalAlignment="Stretch"
                 VerticalAlignment="Stretch"
                 Style="{StaticResource LongToolTipHolder}"
                 ToolTip="{x:Static Properties:Resources.Advanced_EncoderOptions}"
                 Text="{Binding AdvancedOptionsString, UpdateSourceTrigger=PropertyChanged}"
                 TextWrapping="Wrap"
                 Visibility="{Binding ShowX264AdvancedOptions, Converter={StaticResource BooleanVisibilityConverter}, ConverterParameter=false}"
                 />
    </Grid>
</UserControl>