52 references to StylusPointPropertyUnit
PresentationCore (52)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (4)
1468StylusPointPropertyUnit unit = StylusPointPropertyUnit.None; 1492unit = StylusPointPropertyUnit.None; 1535unit = (StylusPointPropertyUnit)cb;
MS\Internal\Ink\InkSerializedFormat\MetricEntry.cs (1)
326StylusPointPropertyUnit.None == propertyInfo.Unit &&
System\Windows\Input\Stylus\Common\StylusPointPropertyInfo.cs (4)
29private StylusPointPropertyUnit _unit; 54public StylusPointPropertyInfo(StylusPointProperty stylusPointProperty, int minimum, int maximum, StylusPointPropertyUnit unit, float resolution) 60throw new InvalidEnumArgumentException("unit", (int)unit, typeof(StylusPointPropertyUnit)); 109public StylusPointPropertyUnit Unit
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)
System\Windows\Input\Stylus\Common\TabletDeviceBase.cs (2)
291case StylusPointPropertyUnit.Inches: 296case StylusPointPropertyUnit.Centimeters:
System\Windows\Input\Stylus\Pointer\PointerStylusPointPropertyInfoHelper.cs (1)
78StylusPointPropertyUnit? unit = StylusPointPropertyUnitHelper.FromPointerUnit(prop.unit);
System\Windows\Input\Stylus\Pointer\PointerTouchDevice.cs (1)
108if (propertyInfo.Unit == StylusPointPropertyUnit.Centimeters)
System\Windows\Input\Stylus\Wisp\PenContext.cs (1)
142StylusPointPropertyInfo propertyInfo = new StylusPointPropertyInfo(new StylusPointProperty(guid, false), min, max, (StylusPointPropertyUnit)units, res);
System\Windows\Input\Stylus\Wisp\WispStylusTouchDevice.cs (1)
69if (propertyInfo.Unit == StylusPointPropertyUnit.Centimeters)