52 references to StylusPointPropertyUnit
PresentationCore (52)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (4)
1455StylusPointPropertyUnit unit = StylusPointPropertyUnit.None; 1479unit = StylusPointPropertyUnit.None; 1522unit = (StylusPointPropertyUnit)cb;
MS\Internal\Ink\InkSerializedFormat\MetricEntry.cs (1)
324StylusPointPropertyUnit.None == propertyInfo.Unit &&
System\Windows\Input\Stylus\Common\StylusPointPropertyInfo.cs (4)
20private StylusPointPropertyUnit _unit; 45public StylusPointPropertyInfo(StylusPointProperty stylusPointProperty, int minimum, int maximum, StylusPointPropertyUnit unit, float resolution) 51throw new InvalidEnumArgumentException("unit", (int)unit, typeof(StylusPointPropertyUnit)); 100public StylusPointPropertyUnit Unit
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)
System\Windows\Input\Stylus\Common\TabletDeviceBase.cs (2)
284case StylusPointPropertyUnit.Inches: 289case StylusPointPropertyUnit.Centimeters:
System\Windows\Input\Stylus\Pointer\PointerStylusPointPropertyInfoHelper.cs (1)
69StylusPointPropertyUnit? unit = StylusPointPropertyUnitHelper.FromPointerUnit(prop.unit);
System\Windows\Input\Stylus\Pointer\PointerTouchDevice.cs (1)
104if (propertyInfo.Unit == StylusPointPropertyUnit.Centimeters)
System\Windows\Input\Stylus\Wisp\PenContext.cs (1)
129StylusPointPropertyInfo propertyInfo = new StylusPointPropertyInfo(new StylusPointProperty(guid, false), min, max, (StylusPointPropertyUnit)units, res);
System\Windows\Input\Stylus\Wisp\WispStylusTouchDevice.cs (1)
61if (propertyInfo.Unit == StylusPointPropertyUnit.Centimeters)