-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Checkboxes using Dark theme within DataGrid column appear unchecked (Server 2012 R2) #3840
Comments
@webprofusion-chrisc It seems like that you use a different style for the CheckBox. So can you show this style? |
@punker76 hmm, I do? Maybe! I did have a couple of naive style hacks (some of the borders were too white and the tab item grey was hard to read) but I don't know if they are affecting this: https://github.com/webprofusion/certify/blob/development/src/Certify.UI/App.xaml This is the actual usage in-situ: https://github.com/webprofusion/certify/blob/65e7257b50358e885d1f1bd26b8c6773d299522a/src/Certify.UI/Controls/ManagedCertificate/CertificateDomains.xaml#L218 |
@webprofusion-chrisc Oh I see, you don’t use autogenerated columns, so you need to set the style for the CheckBox column like in this sample MahApps.Metro/src/MahApps.Metro.Samples/MahApps.Metro.Demo/ExampleViews/DataGridExamples.xaml Lines 195 to 196 in 5a79c04
|
Thanks! I just figured this out at the exact same time, I reproduced it using the MahApps.Metro.Demo and removing those attributes. I'll do that. Does this still count as a bug (i.e. should there be a default instead of just not being set)? |
@webprofusion-chrisc I think this is not possible due to the way the DataGrid is implemented. 🙁 |
@webprofusion-chrisc @timunie I found a way to do this. |
@punker76 Did you ask Chuck Norris? I read abot it on a MS page that said it is not possible. If it works this would be a huge improvement. |
Chuck Norris doesn't implement data grid improvements, the IL reconfigures dynamically according to his will. |
Introduce new DataGridColumnStylesHelperExtension to enable auto generated column styles. It implements a IDataGridColumnStylesHelper interface to allow using custom defined helpers. - Adds new style MahApps.Styles.TextBlock.DataGrid
- Add AutoGeneratedComboBoxColumnStyle and AutoGeneratedComboBoxColumnEditingStyle attached properties - Add new style MahApps.Styles.ComboBox.DataGrid
- Add AutoGeneratedNumericUpDownColumnStyle and AutoGeneratedNumericUpDownColumnEditingStyle attached properties - Use real default styles (without looking for a base style)
- Fix style key `MahApps.Styles.NumericUpDown.DataGridColumn` to `MahApps.Styles.NumericUpDown.DataGrid` - Fix style key `MahApps.Styles.NumericUpDown.DataGridColumnEditing` to `MahApps.Styles.NumericUpDown.DataGrid.Editing`
Introduce new DataGridColumnStylesHelperExtension to enable auto generated column styles. It implements a IDataGridColumnStylesHelper interface to allow using custom defined helpers. - Adds new style MahApps.Styles.TextBlock.DataGrid
- Add AutoGeneratedComboBoxColumnStyle and AutoGeneratedComboBoxColumnEditingStyle attached properties - Add new style MahApps.Styles.ComboBox.DataGrid
- Add AutoGeneratedNumericUpDownColumnStyle and AutoGeneratedNumericUpDownColumnEditingStyle attached properties - Use real default styles (without looking for a base style)
- Fix style key `MahApps.Styles.NumericUpDown.DataGridColumn` to `MahApps.Styles.NumericUpDown.DataGrid` - Fix style key `MahApps.Styles.NumericUpDown.DataGridColumnEditing` to `MahApps.Styles.NumericUpDown.DataGrid.Editing`
- Add new default style for Hyperlink MahApps.Styles.Hyperlink
- Add AutoGeneratedHyperlinkColumnStyle and AutoGeneratedHyperlinkColumnEditingStyle attached properties - Add new style MahApps.Styles.Hyperlink.DataGrid
…tedColumnStyles (GH-3840) DataGrid auto generated column styles
@webprofusion-chrisc this has now been fixed, and it will be released in the next version of MahApps.Metro |
@punker76 fantastic! Much appreciated, I know this was quite complicated but hopefully it makes it easier for people to use. |
Describe the bug
On Windows Server 2012 R2, using a Dark theme, checked DataGridCheckBoxColumn appears unchecked.
Steps to reproduce
On Windows Server 2012 R2, using a Dark theme,
Or, download https://certifytheweb.com, add a contact using New Certificate, then Add new Certificate with at least one domain.
Include
column should be checked in light or dark mode (changed under settings).Expected behavior
Actual behavior
The checkboxes in this image are checked, but they don't look it until the theme is set back to light.
Environment
Originally posted by @webprofusion-chrisc in #3833 (comment)
The text was updated successfully, but these errors were encountered: