ExportExtensions.ExportToImage Sample Code

3 posts, 1 answers
  1. Rocky Fernandes
    Rocky Fernandes avatar
    12 posts
    Member since:
    Jul 2009

    Posted 19 Jan 2010 Link to this post

    I searched the telerik web and couldn't find a demo code for the ExportExtensions.ExportToImage method other than the following links with no sample code. Can some one please provide me a sample code
    http://www.telerik.com/help/wpf/telerik.windows.controls-telerik.windows.media.imaging.exportextensions-exporttoimage(frameworkelement,stream,double,double,bitmapencoder).html


    http://www.telerik.com/community/forums/silverlight/general-discussions/exporting-as-bmp.aspx
  2. Rocky Fernandes
    Rocky Fernandes avatar
    12 posts
    Member since:
    Jul 2009

    Posted 19 Jan 2010 Link to this post

    Hi.

    I got my code to work.

    I added the reference Telerik.Windows.Controls. and then used the below function

     

    Telerik.Windows.Media.Imaging.

    ExportExtensions

     

    .ExportToImage(LayoutRoot, fs, new Telerik.Windows.Media.Imaging.PngBitmapEncoder());

    It works great and saves the image. But now the problem is once the image is saved the control just freezes up. The buttons and slider I have on the control is not clickable anymore. It just doesn't respond to any mouse click event. Any fix?

     

  3. Answer
    Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 22 Jan 2010 Link to this post

    Hello Rocky Fernandes,

    Unfortunately we were not able to reproduce the problematic behavior in our local tests -- please review the attached sample application and let us know how we can observe the erroneous issue locally so we can advise you properly how to proceed.


    Best wishes,
    Manuel
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top