xamarin-forms-samples
xamarin-forms-samples copied to clipboard
The Dark/Light Theme gives an error in a solution that has the Appshell.xaml
Sample
Description
After updating or importing the (Application Resources) of App.xaml in the above project into a new xamarin.forms app, when you try to deploy, it gives an error ( "Object reference not set to an instance of an object.")
Steps to Reproduce
- Create a New Project in VS 2022 (for Android/iOS)
- Copy the Application.Resources aspect of App.xaml in the SystemThemesDemo to replace the one in your new project
- Build & deploy
Expected Behavior
The Shell menu is supposed to accept the AppBindngTheme Mark-Up instruction in the AppShell.xaml file
Actual Behavior
It gives an error ( "Object reference not set to an instance of an object.") and stops in AppShell.x.l.cs file.
Information
- IDE and IDE version: VS 2022
- Platform with the issue:
- iOS:
- Android: 10
- UWP:
- Device or simulator/emulator: Both.