Commit 53ceabd
authored
Additional SmartHint refactoring (#3181)
* Initial work of respecting TextBox.Height - only done for TextBox so far
* Aligning prefix/suffix texts
* PasswordBox respects VerticalContentAlignment
Icons still need alignment
* Fixes hint floating position for default offset
* DatePicker now respects VerticalContentAlignment
* TimePicker now respects VerticalContentAlignment
* Renamed element to match content
* PasswordBox trailing icons/buttons now respect VerticalContentAlignment
* ComboBox clear button now respects VerticalContentAlignment
* ComboBox toggle button now respects VerticalContentAlignment
* Improved 'Smart Hint' demo app page
* Added FontSize to 'Smart Hint' demo app page
* Change default VerticalContentAlignment of ComboBox to Center
* Apply red color to FontSize in 'Smart Hint' demo page
Currently only the default FontSize is correctly supported.
* Use FontFamily from "hint" as input to floating offset converter
* Add support for controlling FontFamily in 'Smart Hint' demo page
* Add comment in demo app page regarding ShowMeTheXaml
* Fix typo
* Fix for broken UI tests for DatePicker and TimePicker
* Fix broken UI tests for PasswordBox
* Apply same visibility fix for TextBox as was done to PasswordBox, etc.
The TextBox also uses the "IsHintInFloatingPosition" AP for the prefix text. I did not touch this as it still collapses it when the prefix text is not set.
* Align ComboBox prefix/suffix text margin and visibility with other ctrls
* Use HelperTextStyle in ComboBox, DatePicker, and TimePicker
Also uses the helper text in the 'Smart Hint' demo app for a warning
* Set default VerticalContentAlignment=Center for Date- and TimePicker
Fixes failing UI test
* Fixed failing unit tests for FloatingHintTransformConverter1 parent 5ef62a0 commit 53ceabd
File tree
16 files changed
+957
-239
lines changed- MainDemo.Wpf
- Domain
- MaterialDesignThemes.Wpf.Tests/Converters
- MaterialDesignThemes.Wpf
- Converters
- Themes
16 files changed
+957
-239
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| 16 | + | |
12 | 17 | | |
13 | 18 | | |
14 | | - | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
17 | 30 | | |
18 | 31 | | |
19 | 32 | | |
20 | | - | |
| 33 | + | |
21 | 34 | | |
22 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
23 | 41 | | |
24 | 42 | | |
25 | 43 | | |
| |||
81 | 99 | | |
82 | 100 | | |
83 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
84 | 112 | | |
85 | 113 | | |
86 | 114 | | |
| |||
120 | 148 | | |
121 | 149 | | |
122 | 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 | + | |
123 | 231 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments