I have a UIElement that I want to capture a snapshot of when a user clicks a button. When a user clicks the button, I want to take the UIElement an
UIElement
You can also do the following:
private void SetImageSourceBasedOnElement(Image image, UIElement element) { if (element != null) { WriteableBitmap writableBitmap = new WriteableBitmap(element, null); writableBitmap.Invalidate(); image.Source = writableBitmap; } }