Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2.1.0 does not render in AvalonDock #1809

Open
hdock999 opened this issue Oct 25, 2021 · 11 comments
Open

V2.1.0 does not render in AvalonDock #1809

hdock999 opened this issue Oct 25, 2021 · 11 comments

Comments

@hdock999
Copy link

Oxyplot does not render in a floating windows of AvalonDock (https://github.com/Dirkster99/AvalonDock)

Steps to reproduce

  1. download TestApp.zip
  2. Compile and Run program,
  3. while dockable window is attached to window, rendering of a graph works fine, as soon as window is floating, rendering stops. This did work with OxyPlot V2.0.0

Platform: Windows
.NET version: 2.6

Expected behaviour

Graph should render in docked and floating window

Actual behaviour

Graph does only render, when window is docked.

@VisualMelon
Copy link
Contributor

May be a duplicate of #1796

@chriglburri
Copy link

Is there already a fix or a workaround for this available? I'm running into the same issue.

@VisualMelon
Copy link
Contributor

@chriglburri I'm not sure. I remember trying to test this, but can't remember what happened after that and can't immediately find the test code. I'd suggest trying with a pre-release version of oxyplot and see if it works for you. You can get the CI builds from https://www.myget.org/F/oxyplot/api/v3/index.json

If that's a problem for you, I'll try to test this again, but that could be a while away.

@chriglburri
Copy link

@VisualMelon I checkt the PR which is mentioned in #1796. These changes together with an additional check if the parent is an AdornerDecorator seems to work.

I guess I have to live with a modified clone for the moment. Thanks for your response.

@VisualMelon
Copy link
Contributor

VisualMelon commented Aug 17, 2022

@chriglburri thanks for testing, glad it worked.

an additional check if the parent is an AdornerDecorator

Are you able to share the details of this? Do you think this is something that should be the library proper?

@chriglburri
Copy link

@VisualMelon
I took the code from the current develop branch, see line 458-462
https://github.com/oxyplot/oxyplot/blob/79a2a542e30fc74b7ac82b58a636b4abc76e08f3/Source/OxyPlot.Wpf.Shared/PlotViewBase.cs

                //Check if the parent is an AdornerDecorator like in an ElementHost
                if (dpObject is AdornerDecorator)
                {
                    return true;
                }

Apparently the bug is already fixed but not released yet.

@VisualMelon
Copy link
Contributor

Ah, I see. Thank you

@ChrisCC6
Copy link

ChrisCC6 commented Sep 5, 2022

Hi, is there a timing to release this fix? I'm currently having the same issue in combination with AvalonDock.

Regards Chris

@VisualMelon
Copy link
Contributor

I'm not aware of any plan for a release at the moment.

@chriglburri
Copy link

@VisualMelon
I did a quick test and it looks to me as if this bug is fixed.
@ChrisCC6, @hdock999 can you confirm this?

@VisualMelon
Copy link
Contributor

VisualMelon commented Apr 11, 2023

@chriglburri for reference, this is expected to work in 2.1.2 (released last December)

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

No branches or pull requests

4 participants