System\Windows\Input\Stylus\Common\StylusPointPropertyInfoDefaults.cs (24)
16StylusPointPropertyUnit.Centimeters,
26StylusPointPropertyUnit.Centimeters,
36StylusPointPropertyUnit.Centimeters,
46StylusPointPropertyUnit.Centimeters,
56StylusPointPropertyUnit.Centimeters,
66StylusPointPropertyUnit.None,
76StylusPointPropertyUnit.None,
87StylusPointPropertyUnit.None,
97StylusPointPropertyUnit.None,
107StylusPointPropertyUnit.None,
117StylusPointPropertyUnit.None,
127StylusPointPropertyUnit.Degrees,
137StylusPointPropertyUnit.Degrees,
147StylusPointPropertyUnit.Degrees,
157StylusPointPropertyUnit.Degrees,
167StylusPointPropertyUnit.Degrees,
177StylusPointPropertyUnit.None,
187StylusPointPropertyUnit.None,
197StylusPointPropertyUnit.None,
207StylusPointPropertyUnit.None,
217StylusPointPropertyUnit.None,
227StylusPointPropertyUnit.None,
237StylusPointPropertyUnit.None,
247StylusPointPropertyUnit.None,
System\Windows\Input\Stylus\Common\StylusPointPropertyUnit.cs (13)
64private static Dictionary<uint, StylusPointPropertyUnit> _pointerUnitMap = new Dictionary<uint, StylusPointPropertyUnit>()
66{ 1, StylusPointPropertyUnit.Centimeters },
67{ 2, StylusPointPropertyUnit.Radians },
68{ 3, StylusPointPropertyUnit.Inches },
69{ 4, StylusPointPropertyUnit.Degrees },
81internal static StylusPointPropertyUnit? FromPointerUnit(uint pointerUnit)
83StylusPointPropertyUnit unit = StylusPointPropertyUnit.None;
87return (IsDefined(unit)) ? unit : (StylusPointPropertyUnit?)null;
90internal static bool IsDefined(StylusPointPropertyUnit unit)
92if (unit >= StylusPointPropertyUnit.None && unit <= StylusPointPropertyUnit.Grams)