StylusPointProperties Class
.NET Framework 3.0
Contains a StylusPointProperty for each property that the WPF supports.
Namespace: System.Windows.Input
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace: http://schemas.microsoft.com/winfx/2006/xaml/presentation
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace: http://schemas.microsoft.com/winfx/2006/xaml/presentation
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 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.Community Additions
ADD
Show: