Skip to content

XAML Designer Exception From Template #17

Description

@Rob-Storm

When attempting to open the MainWindow.xaml file in the Visual Studio XAML Designer, it throws an InvalidOperationException relating to the window which obviously doesn't exist at design-time.

Changing the initialized check in the Start() method in MonoGameContentControl.cs to this
if (_isInitialized || DesignerProperties.GetIsInDesignMode(this)) return;

fixes the issue and doesn't appear to affect the runtime application.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions