Skip to content

CustomDialog in Visual Studio Designer throws exception #1850

@ghost

Description

HI,

I would like to see the preview of my CustomDialog in Visual Studio but unfortunately it shows the folling error message.

image

The fix is realy simple, in BaseMetroDialog -> HandleTheme add the NULL check for windowTheme


                var windowTheme = DetectTheme(this);

                if (windowTheme == null)
                    return;


                var theme = windowTheme.Item1; <-- Throws

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions