Expand Minimize

Stylus.Synchronize Method

Synchronizes the cursor and the user interface.

Namespace:  System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

static member Synchronize : unit -> unit

Applications may need to determine the element on which the cursor is located. If the application uses animation, the DirectlyOver method might return an element that has moved out from under the cursor. Call Synchronize to be sure that DirectlyOver returns the proper element.

The following example demonstrates how to get the element that is under the cursor. Calling Synchronize ensures that DirectlyOver returns the correct element.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft