-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] Global implicit style for ContentPage not being applied #12350
Comments
Same issue in the first 5.0 preview |
Attached a repro sample: |
Workaround mentioned in #10179 that works for me: Add "ApplyToDerivedTypes="True" in style definition, ex:
|
@Saigronas It works for me. Thanks. But, why should I add 'ApplyToDerivedTypes' to True ? I didn't understand fully yet.. I also found something. My problem was caused by Android Device's 'dark mode'. As a result, I cleared my problem. Thank you for everyone. |
Hi! I had the same problem, and I found the solution here... Regarding the question of "why should I set 'ApplyToDerivedTypes' to True?" I believe that any class we create as a ContentPage is actually a derived class. It might be a mistake to think that we have created a ContentPage when, in fact, we are creating a XView that derives from a ContentPage. |
Description
Global style for
ContentPage
is not working at all.Steps to Reproduce
ShellContent
of aContentPage
.ContentPage
.Expected Behavior
All
ContentPage
used inShellContent
(in this case) should have the background color black, and allLabel
used in application should have their text color red.Actual Behavior
Label
style is applied globally, butContentPage
style is not applied at all. (So it is probably not related with #10141)Note
Global explicit style for
ContentPage
is not always working.Basic Information
The text was updated successfully, but these errors were encountered: