Click here to Skip to main content
15,902,189 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My UI consists of a set of charts, and when you click on a data point in the chart, a Popup opens with the details for that point. Printing is working, but now I'm supposed to include the Popups if they're present. My internet research suggests it's impossible as they're not really part of the visual tree. Anyone know for sure? If it's not possible, any good suggestions on the simplest refactor of the popups that will print?
Posted

If you are using the default popup of Chart Control , then do not use it. added a popup and Chart control to a Panel ,and make that popup isopen as False,fire the event on DataPoint Mouseover and make the isopen to true.then you are popup control will come on VisualTree and it will Display the DataPoint Value too.


Regards
Md.Siraz
 
Share this answer
 
It's the Silverlight Popup control that was the problem. It's somehow not part of the same visual tree as all the standard controls, which is why it displays outside the borders of controls over which it is rendered. Even setting the PageVisual equal to the RootVisual of the application doesn't capture any Popups displayed. Solution was to remove the Popup wrapper, changing the Visible property of the container on the fly instead (which also means manually maintaining the ZIndex so the (non)popups are on top, and handling sizing/placement issues when the (non)popup would be rendered at the edge of the parent control).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900