Hi all,
I would like to take screenshot of whole content from XamDataGrid. Especially in case when some rows are hidden by viewport and I have vertical scrollbar.
How could I do this?
Thanks
Hello Petr,
The functionality from the sample I have attached in my previous reply is what we can currently offer you as a way of creating screenshots.
I can also suggest you to submit a new product idea for future versions (or vote for existing ones) at http://ideas.infragistics.com.
As a member of the Infragistics Community you can vote for the features and suggestions you want to see added to the products, resulting in the most popular features bubbling up to the top. When planning new releases, our Product Management team will look at the most popular features and use your feedback to prioritize upcoming work.
If you require any further assistance on this matter, please do not hesitate to ask.
Thank you Tacho! I tried to save xamDataGrid as common wpf control and it works. I thought that there is any specific way to do it for infragistic control.
Moreover, there is another problem, when grid contains more rows that it could show. I found a little bit weird ways to do it by moving scrollbar and stitching images or calculate/set height and restore after. But both ways leads to blinking UI. It is not good.
May be you can suggest another ways?
Please note that the XamDataGrid does not support a built-in functionality for taking screenshots.
An approach I can suggest you in order to create screenshots of any FrameworkElement in WPF is to use the image encoder classes and to manually create an image of an element. You should be able to make any further adjustments by using the built-in functionalities of the .NET framework.
You can take a look at the sample application I have prepared, where this functionality has been implemented.
If you require any further assistance on this matter, please do not hesitate to ask