Skip to content

Consider supporting transparent background in OxyPlot.WindowsForms.PlotView #1732

Open
@VisualMelon

Description

It is currently a pain to use an OxyPlot.WinfowsForms.PlotView with a transparent background: it throws if you set its BackColor to transparent. To avoid this, it is necessary to set the ControlStyles.SupportsTransparentBackColor style to true on the PlotView; however, Control.SetStyle is protected, so consumers must resort to reflection or extending PlotView to do so. This could be done in the PlotView constructor without - as far as I'm aware - any repercussions: could this mess with performance/interactivity?

I can see no reason why we shouldn't support transparent backgrounds: they would be easy to abuse, but no doubt have their uses as well, and this limitation is little more than an irritation at the moment.

See #1670 for more discussion.

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions