File tree Expand file tree Collapse file tree 4 files changed +10
-37
lines changed Expand file tree Collapse file tree 4 files changed +10
-37
lines changed Original file line number Diff line number Diff line change 50
50
TextAlignment =" Center"
51
51
TextWrapping =" Wrap" />
52
52
</StackPanel >
53
- <StackPanel Grid.Row=" 1" >
54
- <StackPanel .Style>
55
- <Style TargetType =" {x:Type StackPanel}" >
56
- <Style .Triggers>
57
- <DataTrigger Binding =" {Binding ElementName=PreviewSubTitle, UpdateSourceTrigger=PropertyChanged, Path=Text.Length}" Value =" 0" >
58
- <Setter Property =" Visibility" Value =" Collapsed" />
59
- </DataTrigger >
60
- </Style .Triggers>
61
- </Style >
62
- </StackPanel .Style>
63
- <Separator Style =" {DynamicResource PreviewSeparatorStyle}" />
64
- <TextBlock
65
- x : Name =" PreviewSubTitle"
66
- Style =" {DynamicResource PreviewItemSubTitleStyle}"
67
- Text =" {Binding Result.SubTitle}" />
68
- </StackPanel >
53
+ <TextBlock Grid.Row=" 1"
54
+ x : Name =" PreviewSubTitle"
55
+ Style =" {DynamicResource PreviewItemSubTitleStyle}"
56
+ Text =" {Binding Result.SubTitle}" />
69
57
</Grid >
70
58
</UserControl >
Original file line number Diff line number Diff line change 371
371
x : Key =" PreviewGlyph"
372
372
BasedOn =" {StaticResource BasePreviewGlyph}"
373
373
TargetType =" {x:Type TextBlock}" />
374
- <Style x : Key =" BasePreviewSeparatorStyle" TargetType =" {x:Type Separator}" >
375
- <Setter Property =" Visibility" Value =" Visible" />
376
- <Setter Property =" Margin" Value =" 0 15 5 5" />
377
- <Style .Triggers>
378
- <DataTrigger Binding =" {Binding ElementName=PreviewSubTitle, UpdateSourceTrigger=PropertyChanged, Path=Text.Length}" Value =" 0" >
379
- <Setter Property =" Visibility" Value =" Collapsed" />
380
- </DataTrigger >
381
- </Style .Triggers>
382
- </Style >
383
374
384
375
<Style
385
376
x : Key =" PreviewBorderStyle"
447
438
<Setter Property =" TextWrapping" Value =" Wrap" />
448
439
</Style >
449
440
<Style x : Key =" BasePreviewItemSubTitleStyle" TargetType =" {x:Type TextBlock}" >
441
+ <Style .Triggers>
442
+ <DataTrigger Binding =" {Binding ElementName=PreviewSubTitle, UpdateSourceTrigger=PropertyChanged, Path=Text.Length}" Value =" 0" >
443
+ <Setter Property =" Visibility" Value =" Collapsed" />
444
+ </DataTrigger >
445
+ </Style .Triggers>
446
+
450
447
<Setter Property =" Foreground" Value =" #8f8f8f" />
451
448
<Setter Property =" FontSize" Value =" 12" />
452
449
<Setter Property =" FontWeight" Value =" Normal" />
Original file line number Diff line number Diff line change 187
187
TargetType =" {x:Type TextBlock}" >
188
188
<Setter Property =" Foreground" Value =" {DynamicResource Color05B}" />
189
189
</Style >
190
- <Style
191
- x : Key =" PreviewSeparatorStyle"
192
- TargetType =" {x:Type Separator}"
193
- BasedOn =" {StaticResource BasePreviewSeparatorStyle}" >
194
- <Setter Property =" Background" Value =" {DynamicResource SeparatorForeground}" />
195
- </Style >
196
190
</ResourceDictionary >
Original file line number Diff line number Diff line change 189
189
TargetType =" {x:Type TextBlock}" >
190
190
<Setter Property =" Foreground" Value =" {DynamicResource Color05B}" />
191
191
</Style >
192
- <Style
193
- x : Key =" PreviewSeparatorStyle"
194
- TargetType =" {x:Type Separator}"
195
- BasedOn =" {StaticResource BasePreviewSeparatorStyle}" >
196
- <Setter Property =" Background" Value =" {DynamicResource SeparatorForeground}" />
197
- </Style >
198
192
</ResourceDictionary >
You can’t perform that action at this time.
0 commit comments