Stylus::Synchronize Method ()
.NET Framework (current version)
Synchronizes the cursor and the user interface.
Assembly: PresentationCore (in PresentationCore.dll)
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.
.NET Framework
Available since 3.0
Available since 3.0
Show: