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
Setting ThemeMode on a window causes a button to be positioned differently #10077
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.
Fixing it in a servicing release means you adjust the default behaviour on the fly, that's unacceptable.
Fixing it in next major release, oh well, let's have fun resetting alignment once again for developers that went through the migration — then again, given the amount of missing controls, styles, and functionality, and theme marked as experimental, I'd hope people will accept the theme only for evaluation and it can be adjusted to behave same as rest of the WPF themes in .NET 10.
Activity
lindexi commentedon Nov 16, 2024
@adegeo
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?
h3xds1nz commentedon Nov 16, 2024
@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.
miloush commentedon Nov 16, 2024
Any of the theme stuff can certainly be fixed, it's all experimental. No one should be using it in production.
lindexi commentedon Nov 17, 2024
@h3xds1nz Yeah, I think you have a very convincing case.
And I add the PR here #10082
And maybe we need to review the layout of all other controls