-
Hello, I noticed that if I create styles and do not base them on any other style, the controls do not take the WinUI 3 styles. As I am relatively new to WinUI and uno I am not sure if I am doing something wrong or if that is the intended behavior. As I read some articles about this, I think I have to base my styles on the default styles, however the default styles are not found when I am trying to reference them as static resources. Is this maybe related to #4424 or am I just doing something wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Hi @DavidM29! Would you be able to upload a sample app .zip where you are experiencing this issue? I can check to see if anything needs to be changed |
Beta Was this translation helpful? Give feedback.
-
UnoApp1.zip If the |
Beta Was this translation helpful? Give feedback.
Seems like an issue with winui: microsoft/microsoft-ui-xaml#6528
The suggestion in that issue is to remove the
BasedOn
. Curious that it is required for non-Windows platforms.For now, you can use platform conditionals and define this in your xaml
and use this for BasedOn:
I will create an issue in the Uno repo to investigate the need for the BasedOn in Uno platforms