Generate bitmap of source control for use as drag cue?

2 posts, 0 answers
  1. Jon Barron
    Jon Barron avatar
    24 posts
    Member since:
    Oct 2012

    Posted 24 Sep 2010 Link to this post

    When a user begins a drag operation, I'd like the drag cue to be a bitmap of the source control they are dragging. Is there a simple way to generate a bitmap from a given control and set it to be the drag cue?
  2. Tsvyatko
    Tsvyatko avatar
    832 posts

    Posted 24 Sep 2010 Link to this post

    Hi Jon Barron,

    You can create bitmap using WritableBitmap class. Please check the code needed.
    Image elementAsImage = new Image();
    WriteableBitmap bitmap = new WriteableBitmap(element, null);
    elementAsImage.Source = bitmap;

    Let know if you have any further questions.

    Sincerely yours,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
Back to Top