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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions