-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
CheckBox Windows 10 Style #3534
Conversation
@punker76 In Win10 the Checkbox size is 20x20 px, in MahApps it is 18x18 px. What do you think, which value should we use as default for this style? |
W10 style should use W10 size I think, so 20x20. |
1cc40cd
to
ac01ab5
Compare
ae50a0e
to
56a44b8
Compare
01462e2
to
b8e813b
Compare
91f81b5
to
54621ef
Compare
9deacf7
to
0e9c257
Compare
0e9c257
to
6b4a2a0
Compare
3e533db
to
b524281
Compare
77f4a5f
to
d5989f6
Compare
936c2ed
to
e2a8d22
Compare
64613ed
to
5a747ff
Compare
975c1ee
to
7303ebf
Compare
bcf949e
to
9f8b442
Compare
… Style - A CheckBoxHelper was introduced to allow different Glyphs and Brushes for different Styles - Introduced a new Windows 10 CheckBox Style that switches the colors for a better visibility, especially with a dark theme - Use Win10 check glyph Xaml path data from "Segoe MDL2 Assets" - Set Win10 BorderThickness to 2 Code format renaming
9f8b442
to
20c6878
Compare
Colors and Brushes taken from Win10 UWPNew ColorsMahApps.Colors.SystemAccent New BrushesMahApps.Brushes.SystemControlBackgroundAccent New CheckBox BrushesMahApps.Brushes.CheckBox.ForegroundUnchecked New CheckBoxHelper attached propertiesCheckSize |
Good Morning @punker76, absolutely impressing how you improved this PR! Many thanks!! 👍 Happy coding, |
Describe the changes you have made to improve this project
Added a
CheckBoxHelper
to enable differentCheckBox
designs. Thanks to this helper class I created a style similar to the UWPCheckBox
.The main advantage of this approach is, that it is not a breaking change, unless the new style is the default style. Moreover the user can create
CheckBoxStyles
on his own, e.g. an eye forVisibility
.Additional context
Sample XAML:
Closed Issues
Closes #3136