StylusDevice.DirectlyOver Property

Gets the IInputElement that the pointer is directly over.

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

public IInputElement DirectlyOver { get; }
/** @property */
public IInputElement get_DirectlyOver ()

public function get DirectlyOver () : IInputElement

You cannot use this property in XAML.

Property Value

The element the pointer is over.

The following example demonstrates the DirectlyOver property.

// See to what DirectlyOver property is set
// First see if it's null
if (null == myStylusDevice.DirectlyOver)
    textbox1.AppendText("DirectlyOver: null\n");
    // Otherwise display the underlying type
    textbox1.AppendText("DirectlyOver: " + myStylusDevice.DirectlyOver.GetType().Name + "\n");

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions