-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Setting ThemeMode on a window causes a button to be positioned differently #10077
Comments
The style define is in \src\Themes\PresentationFramework.Fluent\Styles\Button.xaml wpf/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Styles/Button.xaml Line 25 in d4bb347
See #8870 And in WinUI, the default button style is also left-aligned, so I think this style is appropriate here. What do you think? |
@lindexi I for one think that's wrong, because this means that simply migrating your existing WPF app, you will have to do a full sweep for the GUI and add the alignment properties (sure, there's padding, font size, etc. but this is an additional step). That essentially "breaks" everyone's GUI after opting-in. I've seen it yesterday in the XAML and when testing the access keys, before this issue got posted and well, made me sad. Fun fact is though, you can't realistically fix this now this has been shipped.
|
Any of the theme stuff can certainly be fixed, it's all experimental. No one should be using it in production. |
Description
Setting
ThemeMode
on a window causes a button to be completely repositioned.Reproduction Steps
ThemeMode
property on the window to anything other thanNone
.Before
ThemeMode
is set:After
ThemeMode
is set:Expected behavior
Don't alter the layout.
Actual behavior
Layout is altered.
Regression?
No response
Known Workarounds
No response
Impact
No response
Configuration
Other information
No response
The text was updated successfully, but these errors were encountered: