On Platform="Default" not working #22105
Labels
area-xaml
XAML, CSS, Triggers, Behaviors
platform/android 🤖
platform/windows 🪟
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
I want to have font sizes specific for each idiom and each platform. I have created a Resources file with this code:
And while running the application on both Windows and Android phone, the font sizes are not being set to 100 from the "Default" platform. This is what it looks like in a reproduction repo (first text is from On Platform="Android" second one from On Platform="Default"):
Steps to Reproduce
Create an OnIdiom that has OnPlatform inside of it and make a Label use FontSize from the static resource with this OnIdiom.
Running the repository with reproduction, one Label gets big and other one does not, while both should have font size = 100.
Link to public reproduction project repository
https://github.com/twojnarowski/MauiAppOnPlatformDefaultRepro/tree/master
Version with bug
8.0.7 SR2
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android, Windows
Affected platform versions
No response
Did you find any workaround?
I have to set manually On Platforms for each platform, instead of using only Default where I want the same size for each platform.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: