16 references to As
PresentationCore (16)
System\Windows\Input\Stylus\Wisp\PenContexts.cs (1)
212PenContext newContext = _stylusLogic.TabletDevices[(int)index].As<WispTabletDevice>().CreateContext(_inputSource.Handle, this);
System\Windows\Input\Stylus\Wisp\WispLogic.cs (9)
289var tablet = report.StylusDevice.TabletDevice.As<WispTabletDevice>(); 320tabletDevice = rawStylusInputReport?.StylusDevice?.TabletDevice?.As<WispTabletDevice>(); 933WispTabletDevice tabletDevice = stylusDevice.TabletDevice?.As<WispTabletDevice>(); 1058WispTabletDevice tabletDevice = stylusDevice.TabletDevice.As<WispTabletDevice>(); 1350WispTabletDevice tabletDevice = stylusArgs?.StylusDeviceImpl?.TabletDevice.As<WispTabletDevice>(); 2607tablet.As<WispTabletDevice>().InvalidateSizeDeltas(); // Will be recalc'd on next stylus down. 3468penThread = tabletDeviceCollection[0].As<WispTabletDevice>().PenThread; 3558tablet.As<WispTabletDevice>()?.UpdateScreenMeasurements(); 3576return matrix * tabletDevice.As<TabletDeviceBase>().TabletToScreen;
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (6)
260PenThread penThread = _tablets.Length > 0 ? _tablets[0].As<WispTabletDevice>().PenThread : 408PenThread penThread = _tablets.Length > 0 ? _tablets[0].As<WispTabletDevice>().PenThread : 560WispTabletDevice removeTablet = _tablets[index].As<WispTabletDevice>(); 592WispTabletDevice tablet = _tablets[iTablet].As<WispTabletDevice>(); 665ctxs[i++] = tablet.As<WispTabletDevice>().CreateContext(hwnd, contexts); 675ctxs[i++] = tablet.As<WispTabletDevice>().CreateContext(hwnd, contexts);