Intersoft ClientUI Documentation
SnapshotElement(UIElement,Boolean,Action<SnapshotCallbackData>) Method
See Also  Send Feedback
Intersoft.Client.Framework Namespace > Utility Class > SnapshotElement Method : SnapshotElement(UIElement,Boolean,Action<SnapshotCallbackData>) Method






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.
Snapshot the specified UIElement into a WriteableBitmap. The UIElement can be properly captured regardless of its current Visibility and Opacity value.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Sub SnapshotElement( _
   ByVal element As UIElement, _
   ByVal requireParentSurgery As Boolean, _
   ByVal callback As Action(Of SnapshotCallbackData) _
) 
Visual Basic (Usage)Copy Code
Dim element As UIElement
Dim requireParentSurgery As Boolean
Dim callback As Action(Of SnapshotCallbackData)
 
Utility.SnapshotElement(element, requireParentSurgery, callback)
C# 
public static void SnapshotElement( 
   UIElement element,
   bool requireParentSurgery,
   Action<SnapshotCallbackData> callback
)
Delphi 
public procedure SnapshotElement( 
    element: UIElement;
    requireParentSurgery: Boolean;
    callback: Action
); static; 
JScript 
public static function SnapshotElement( 
   element : UIElement,
   requireParentSurgery : boolean,
   callback : Action
);
Managed Extensions for C++ 
public: static void SnapshotElement( 
   UIElement* element,
   bool requireParentSurgery,
   Action<SnapshotCallbackData*>* callback
) 
C++/CLI 
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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.