You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Margin and Padding of HelperText don't match the specs #2633
Margin and Padding of HelperText don't match the specs.
The HelperText should be aligned with the Text.
This correction have to be made on :
FilledPassword
FilledDatePicker
FilledCombobox
OutlinedPassword
OutlinedDatePicker
OutlinedCombobox
I have already fixed the problem for most of the styles by taking the example of this PR : #2217
You can check my changes here : ElieTaillard@eca7a83
I just need to fix the problem for the FilledCombobox, but a trigger is missing in MaterialDesignTheme.ComboBox.xaml for the property wpf:TextFieldAssist.HasFilledTextField
So a few things need to be changed for that trigger to work:
Make sure the trigger is being applied in the triggers section of the MaterialDesignFloatingHintComboBoxTemplate control template.
Make sure to give the Canvas around the help text the name "HelperTextWrapper"
In the MaterialDesignFilledComboBox style set the TextFieldAssist.HasFilledTextField attached property to true (was a little surprised this was missing).
Activity
Keboo commentedon Apr 3, 2022
Yes I am good simply adding in that trigger.
ElieTaillard commentedon Apr 11, 2022
I tried to add
in the

<ControlTemplate.Triggers>tag, but it doesn't change the padding and margin of the HelperText for the FilledComboboxDo I have to change anything in the code behind to make it work?
Keboo commentedon Apr 15, 2022
So a few things need to be changed for that trigger to work:
MaterialDesignFloatingHintComboBoxTemplatecontrol template.Canvasaround the help text the name "HelperTextWrapper"MaterialDesignFilledComboBoxstyle set theTextFieldAssist.HasFilledTextFieldattached property to true (was a little surprised this was missing).ElieTaillard commentedon Apr 15, 2022
Thank you, this setter was missing
<Setter Property="wpf:TextFieldAssist.HasFilledTextField" Value="True"/>Fix MaterialDesignInXAML#2633 - HelperText margin and padding (Materi…