Skip to content

WinForms: improve the designer experience for .NET Framework apps #4362

@swharden

Description

@swharden

SkiaSharp can't load in the designer view of .NET Framework WinForms apps. The control appears in the toolbox, but drag-dropping it onto the window causes a spectacularly confusing error (screenshot below).

The presently recommended workaround is to add a FormsPlot programmatically (https://scottplot.net/faq/add-winforms-programmatically/) but some users may find this confusing (e.g., #4312)

This issue will track using preprocessor directives to create a version of FormsPlot specifically for .NET Framework projects that does not use SkiaSharp and will not crash in this way, but that will replace itself at runtime with a regular FormsPlot containing the SkiaSharp surface.

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions