Intersoft ClientUI Documentation
SnapshotElement(UIElement,Boolean,Action<SnapshotCallbackData>) Method



The UIElement to snapshot.
Determines whether the snapshot should be performed in background to achieve smoother effect.
The delegate that handles the callback which process the resulted writeable bitmap.
Snapshot the specified UIElement into a WriteableBitmap. The UIElement can be properly captured regardless of its current Visibility and Opacity value.
Syntax
Public Overloads Shared Sub SnapshotElement( _
   ByVal element As UIElement, _
   ByVal requireParentSurgery As Boolean, _
   ByVal callback As Action(Of SnapshotCallbackData) _
) 
Dim element As UIElement
Dim requireParentSurgery As Boolean
Dim callback As Action(Of SnapshotCallbackData)
 
Utility.SnapshotElement(element, requireParentSurgery, callback)
public static void SnapshotElement( 
   UIElement element,
   bool requireParentSurgery,
   Action<SnapshotCallbackData> callback
)
public:
static void SnapshotElement( 
   UIElement^ element,
   bool requireParentSurgery,
   Action<SnapshotCallbackData^>^ callback
) 

Parameters

element
The UIElement to snapshot.
requireParentSurgery
Determines whether the snapshot should be performed in background to achieve smoother effect.
callback
The delegate that handles the callback which process the resulted writeable bitmap.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Utility Class
Utility Members
Overload List

Send Feedback