These are chat archives for oxyplot/oxyplot

12th
Jul 2015
Rune Jacobsen
@havremunken
Jul 12 2015 11:15
Anyone here with the knowledge about OxyPlot and WPF to tell me if it is possible to do what I ask about in this question? http://stackoverflow.com/questions/31355609/render-wpf-usercontrol-in-console-app-oxyplot-chart-is-empty
I'm new to OxyPlot and intermediate in WPF so I'm not able to say what is going wrong.
Johan Larsson
@JohanLarsson
Jul 12 2015 11:20
does it work if you pass in a textblock?
Rune Jacobsen
@havremunken
Jul 12 2015 11:20
My ViewModel also has a few text properties, and they render fine when a TextBlock binds to them.
Johan Larsson
@JohanLarsson
Jul 12 2015 11:21
iirc oxyplot does some nonstandard things
try casting uielement to plotview and do a.Refresh() or .Update()
i don't rememer the name of the method
Rune Jacobsen
@havremunken
Jul 12 2015 11:23
I will try that, thanks!
Geert van Horrik
@GeertvanHorrik
Jul 12 2015 11:26
To improve performance, there is a method that checks if a plot is really visible to the user. Maybe that's getting in the way. See https://github.com/oxyplot/oxyplot/blob/c56c61492d761a1d8215e0bf7f124de24b6b5615/Source/OxyPlot.Wpf/PlotBase.cs#L413
Rune Jacobsen
@havremunken
Jul 12 2015 11:27
@JohanLarsson : I tried to force a Plot.UpdateLayout() before the Measure/Arrange/UpdateLayout of the container, but still white unfortunately.
@GeertvanHorrik - I will take a look at that, thanks!
Geert van Horrik
@GeertvanHorrik
Jul 12 2015 11:28
If you enable source server support, you can actually step through the OxyPlot code. See this guide (it also works for OxyPlot):
https://catelproject.atlassian.net/wiki/display/CTL/Stepping+through+the+code
Rune Jacobsen
@havremunken
Jul 12 2015 11:33
Thanks, will try that as well! Yeah, it seems all controls display "IsVisible" as false, even if they render fine to disk, so it could be this "shortcut" that is tricking me.