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
Hello all, i have developed a small Maui app witch is working on Ios and Maccatalyst. But when i try to start them in a Android Emulator the app crashes after display the main page. I have try'd different Emulators and Versions.
The Debugger shows me that the cause of the crash setting style on the ShelFlyout. This not happen's on Ios and Maccatalyst.
To find a Workaround i have created a new App from Template and use only the Style created for my App. By deactivating my Styling step by step, i discovered the fallowing Styling as cause of the Problem. <!-- this style causes the problem on Android <Style TargetType="Label" Class="FlyoutItemLabelStyle"> <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Secondary}, Dark={StaticResource SecondaryDarkText}}" /> <Setter Property="FontAttributes" Value="Bold" /> <Setter Property="FontSize" Value="20" /> <Setter Property="FontFamily" Value="OpenSansSemibold" /> <Setter Property="HeightRequest" Value="100" /> </Style> -->
Without them, the app works as expected.
The Question is, how i can style my FlyoutItem in a way that not run into the crash ?
The Test Project can be found here
Many thanks for any suggestion.
Bests Enrico
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello all, i have developed a small Maui app witch is working on Ios and Maccatalyst. But when i try to start them in a Android Emulator the app crashes after display the main page. I have try'd different Emulators and Versions.
The Debugger shows me that the cause of the crash setting style on the ShelFlyout. This not happen's on Ios and Maccatalyst.
To find a Workaround i have created a new App from Template and use only the Style created for my App. By deactivating my Styling step by step, i discovered the fallowing Styling as cause of the Problem.
<!-- this style causes the problem on Android <Style TargetType="Label" Class="FlyoutItemLabelStyle"> <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Secondary}, Dark={StaticResource SecondaryDarkText}}" /> <Setter Property="FontAttributes" Value="Bold" /> <Setter Property="FontSize" Value="20" /> <Setter Property="FontFamily" Value="OpenSansSemibold" /> <Setter Property="HeightRequest" Value="100" /> </Style> -->
Without them, the app works as expected.
The Question is, how i can style my FlyoutItem in a way that not run into the crash ?
The Test Project can be found here
Many thanks for any suggestion.
Bests Enrico
Beta Was this translation helpful? Give feedback.
All reactions