Replies: 1 comment 9 replies
-
I forgout about this (thank you CoPilot for remembering), but I know I was using Styles + ApplyToDerivedTypes. Could you achieve the same using Global style, setting ApplyToDerivedTypes="False"? |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm migrating from XF 5.x to MAUI with .NET 9 and have noticed that some views no longer set default spacing (namely, Grid and StackLayout now have their respective spacing properties at 0 instead of what seems to have been 10 from my testing). To reduce effort from having to manually update every grid in XAML to set rows and column spacing back to 10 to maintain the look and feel of my app, I applied this spacing via a global style in a resource dictionary I load into App.xaml as a merged dictionary.
The side effect I've discovered of this is that the Expander, which internally uses a grid to render the header and collapsible content, is being subject to this global style. Is this intended? I can understand wanting community toolkit views to be as flexible as possible, but this feels like an oversight.
Beta Was this translation helpful? Give feedback.
All reactions