System\Windows\Input\Stylus\Common\StylusPointPropertyInfoDefaults.cs (24)
23StylusPointPropertyUnit.Centimeters,
33StylusPointPropertyUnit.Centimeters,
43StylusPointPropertyUnit.Centimeters,
53StylusPointPropertyUnit.Centimeters,
63StylusPointPropertyUnit.Centimeters,
73StylusPointPropertyUnit.None,
83StylusPointPropertyUnit.None,
94StylusPointPropertyUnit.None,
104StylusPointPropertyUnit.None,
114StylusPointPropertyUnit.None,
124StylusPointPropertyUnit.None,
134StylusPointPropertyUnit.Degrees,
144StylusPointPropertyUnit.Degrees,
154StylusPointPropertyUnit.Degrees,
164StylusPointPropertyUnit.Degrees,
174StylusPointPropertyUnit.Degrees,
184StylusPointPropertyUnit.None,
194StylusPointPropertyUnit.None,
204StylusPointPropertyUnit.None,
214StylusPointPropertyUnit.None,
224StylusPointPropertyUnit.None,
234StylusPointPropertyUnit.None,
244StylusPointPropertyUnit.None,
254StylusPointPropertyUnit.None,
System\Windows\Input\Stylus\Common\StylusPointPropertyUnit.cs (13)
71private static Dictionary<uint, StylusPointPropertyUnit> _pointerUnitMap = new Dictionary<uint, StylusPointPropertyUnit>()
73{ 1, StylusPointPropertyUnit.Centimeters },
74{ 2, StylusPointPropertyUnit.Radians },
75{ 3, StylusPointPropertyUnit.Inches },
76{ 4, StylusPointPropertyUnit.Degrees },
88internal static StylusPointPropertyUnit? FromPointerUnit(uint pointerUnit)
90StylusPointPropertyUnit unit = StylusPointPropertyUnit.None;
94return (IsDefined(unit)) ? unit : (StylusPointPropertyUnit?)null;
97internal static bool IsDefined(StylusPointPropertyUnit unit)
99if (unit >= StylusPointPropertyUnit.None && unit <= StylusPointPropertyUnit.Grams)