xamarin-forms-samples icon indicating copy to clipboard operation
xamarin-forms-samples copied to clipboard

The Dark/Light Theme gives an error in a solution that has the Appshell.xaml

Open aproko234 opened this issue 2 years ago • 0 comments

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

  1. Create a New Project in VS 2022 (for Android/iOS)
  2. Copy the Application.Resources aspect of App.xaml in the SystemThemesDemo to replace the one in your new project
  3. 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.

aproko234 avatar Jun 22 '22 09:06 aproko234