File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
MaterialDesignThemes.Wpf/Themes Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 115
115
materialDesign:HintAssist.Hint=" Password" />
116
116
<TextBox Grid.Row=" 4" Grid.Column=" 1" materialDesign:HintAssist.Hint=" Floating Hint"
117
117
Style =" {StaticResource MaterialDesignFloatingHintTextBox}"
118
- Margin =" 0 16 0 8 " />
118
+ Margin =" 0 2 0 0 " />
119
119
<ComboBox Grid.Row=" 4" Grid.Column=" 3" materialDesign:HintAssist.Hint=" OS" Style =" {StaticResource MaterialDesignFloatingHintComboBox}"
120
- Margin =" 0 16 0 8 " >
120
+ Margin =" 0 2 0 0 " >
121
121
<ComboBoxItem >Andoid</ComboBoxItem >
122
122
<ComboBoxItem >iOS</ComboBoxItem >
123
123
<ComboBoxItem >Linux</ComboBoxItem >
Original file line number Diff line number Diff line change 388
388
<ControlTemplate x : Key =" MaterialDesignFloatingHintComboBoxTemplate" TargetType =" {x:Type ComboBox}" >
389
389
<Grid x : Name =" templateRoot"
390
390
SnapsToDevicePixels =" True" >
391
- <Grid >
391
+ <Grid x : Name = " InnerRoot " >
392
392
<Grid .ColumnDefinitions>
393
393
<ColumnDefinition Width =" *" />
394
394
<ColumnDefinition Width =" 0" MinWidth =" {DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" />
464
464
<Setter TargetName =" Underline" Property =" Visibility" Value =" {Binding Path=(wpf:TextFieldAssist.DecorationVisibility), RelativeSource={RelativeSource TemplatedParent}}" />
465
465
<Setter TargetName =" contentPresenter" Property =" Visibility" Value =" Collapsed" />
466
466
</Trigger >
467
+ <Trigger Property =" wpf:HintAssist.IsFloating" Value =" True" >
468
+ <Setter TargetName =" InnerRoot" Property =" Margin" Value =" 0 12 0 0" />
469
+ </Trigger >
467
470
<MultiTrigger >
468
471
<MultiTrigger .Conditions>
469
472
<Condition Property =" IsEditable" Value =" False" />
512
515
<Setter Property =" ItemContainerStyle" Value =" {StaticResource MaterialDesignComboBoxItemSelectedCollapsedStyle}" />
513
516
<Setter Property =" ScrollViewer.HorizontalScrollBarVisibility" Value =" Auto" />
514
517
<Setter Property =" ScrollViewer.VerticalScrollBarVisibility" Value =" Auto" />
515
- <Setter Property =" Margin" Value =" 0 12 0 0" />
516
518
<Setter Property =" Padding" Value =" 0 4 0 5" />
517
519
<Setter Property =" VerticalContentAlignment" Value =" Top" />
518
520
<Setter Property =" HorizontalContentAlignment" Value =" Stretch" />
Original file line number Diff line number Diff line change 21
21
<Setter Property =" VerticalContentAlignment" Value =" Bottom" />
22
22
<Setter Property =" FocusVisualStyle" Value =" {x:Null}" />
23
23
<Setter Property =" AllowDrop" Value =" true" />
24
- <Setter Property =" Margin" Value =" 0 12 0 0" />
25
24
<Setter Property =" ScrollViewer.PanningMode" Value =" VerticalFirst" />
26
25
<Setter Property =" Stylus.IsFlicksEnabled" Value =" False" />
27
26
<Setter Property =" Validation.ErrorTemplate" Value =" {StaticResource MaterialDesignValidationErrorTemplate}" />
96
95
</MultiTrigger .Conditions>
97
96
<Setter TargetName =" Hint" Property =" Foreground" Value =" {DynamicResource PrimaryHueMidBrush}" />
98
97
</MultiTrigger >
98
+ <Trigger Property =" wpf:HintAssist.IsFloating" Value =" True" >
99
+ <Setter TargetName =" border" Property =" Margin" Value =" 0 12 0 0" />
100
+ </Trigger >
99
101
<Trigger Property =" IsEnabled" Value =" false" >
100
102
<Setter Property =" Opacity" TargetName =" border" Value =" 0.56" />
101
103
</Trigger >
You can’t perform that action at this time.
0 commit comments