Export (0) Print
Expand All

StylusDevice.Target Property

Gets the element that receives input.

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

public override IInputElement Target { get; }

Property Value

Type: System.Windows.IInputElement
The IInputElement object that receives input.

The following example demonstrates the Target property.

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

.NET Framework

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft