This documentation is archived and is not being maintained.
StylusPointProperties Class
Visual Studio 2008
Contains a StylusPointProperty for each property that the WPF supports.
Assembly: PresentationCore (in PresentationCore.dll)
The WPF ships with pre-defined StylusPointProperty objects for properties that are commonly collected by a stylus and a digitizer. You can use these built-in properties to create a StylusPointDescription.
The following example demonstrates how to create a StylusPointDescription using the StylusPointProperties fields.
Dim newDescription As New StylusPointDescription( _ New StylusPointPropertyInfo() {New StylusPointPropertyInfo(StylusPointProperties.X), _ New StylusPointPropertyInfo(StylusPointProperties.Y), _ New StylusPointPropertyInfo(StylusPointProperties.NormalPressure), _ New StylusPointPropertyInfo(StylusPointProperties.XTiltOrientation), _ New StylusPointPropertyInfo(StylusPointProperties.YTiltOrientation), _ New StylusPointPropertyInfo(StylusPointProperties.BarrelButton)}) Dim propertyValues As Integer() = {1800, 1000, 1} Dim newStylusPoint As New StylusPoint(100, 100, 0.5F, newDescription, propertyValues)
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: