94 references to PointUtil
PresentationCore (54)
MS\Internal\Automation\ElementUtil.cs (2)
155
Point pointClient =
PointUtil
.ScreenToClient( pointScreen, hwndSource );
156
Point pointRoot =
PointUtil
.ClientToRoot(pointClient, hwndSource);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\PointUtil.cs (1)
247
Matrix matrixRootTransform =
PointUtil
.GetVisualTransform(target.RootVisual);
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (3)
189
Rect rectRoot =
PointUtil
.ElementToRoot(rectElement, VisualTreeHelper.GetContainingVisual2D(_owner), presentationSource);
190
Rect rectClient =
PointUtil
.RootToClient(rectRoot, presentationSource);
191
rect =
PointUtil
.ClientToScreen(rectClient, hwndSource);
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (9)
187
Rect rectRoot =
PointUtil
.ElementToRoot(rectElement, _owner, presentationSource);
188
Rect rectClient =
PointUtil
.RootToClient(rectRoot, presentationSource);
189
Rect rectScreen =
PointUtil
.ClientToScreen(rectClient, hwndSource);
210
Rect rectRoot =
PointUtil
.ElementToRoot(rectElement, _owner, presentationSource);
211
Rect rectClient =
PointUtil
.RootToClient(rectRoot, presentationSource);
212
Rect rectScreen =
PointUtil
.ClientToScreen(rectClient, hwndSource);
504
Rect rectRoot =
PointUtil
.ElementToRoot(rectElement, _owner, presentationSource);
505
Rect rectClient =
PointUtil
.RootToClient(rectRoot, presentationSource);
506
Rect rectScreen =
PointUtil
.ClientToScreen(rectClient, hwndSource);
System\Windows\DragDrop.cs (2)
1279
clientPoint =
PointUtil
.ScreenToClient(screenPoint, source);
1363
targetPoint =
PointUtil
.ClientToRoot(targetPoint, source);
System\Windows\Input\InputElement.cs (4)
278
ptTranslated =
PointUtil
.RootToClient(ptTranslated, sourceFrom);
281
Point ptScreen =
PointUtil
.ClientToScreen(ptTranslated, sourceFrom);
284
ptTranslated =
PointUtil
.ScreenToClient(ptScreen, sourceTo);
287
ptTranslated =
PointUtil
.ClientToRoot(ptTranslated, sourceTo);
System\Windows\Input\MouseDevice.cs (8)
121
ptScreen =
PointUtil
.ClientToScreen(_lastPosition, activeSource);
169
Point ptClient =
PointUtil
.ScreenToClient(ptScreen, presentationSource);
584
ptRoot =
PointUtil
.TryClientToRoot(ptClient, relativePresentationSource, false, out success);
1298
Point ptRoot =
PointUtil
.TryClientToRoot(ptClient, rawMouseInputReport.InputSource, false, out success);
2097
Point ptClient = clientUnits ? pt :
PointUtil
.RootToClient(pt, inputSource);
2103
Point ptScreen =
PointUtil
.ClientToScreen(ptClient, source);
2123
Point ptClientHit =
PointUtil
.ScreenToClient(ptScreen, sourceHit);
2158
Point rootPt = clientUnits ?
PointUtil
.ClientToRoot(pt, inputSource) : pt;
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (3)
612
Point ptDevice =
PointUtil
.ScreenToClient(rawScreenPoint, _inputSource);
740
Point ptClient =
PointUtil
.ScreenToClient(curPoint, relativePresentationSource);
741
Point ptRoot =
PointUtil
.ClientToRoot(ptClient, relativePresentationSource);
System\Windows\Input\Stylus\Wisp\WispLogic.cs (6)
608
pt =
PointUtil
.ScreenToClient(pt, mouseInputReport.InputSource);
1751
Point pt =
PointUtil
.ScreenToClient(stylusDevice.LastMouseScreenPoint, mouseInputSource);
2851
pt =
PointUtil
.ScreenToClient(pt, mouseInputSource);
2944
Point ptScreen =
PointUtil
.ClientToScreen(ptClient, source);
2963
ptClientHit =
PointUtil
.ScreenToClient(ptScreen, sourceHit);
3219
penContexts.DestroyedLocation =
PointUtil
.ClientToScreen(new Point(0, 0), hwndSource);
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (9)
320
Point ptDevice =
PointUtil
.ScreenToClient(_lastScreenLocation, _inputSource);
1192
Point ptClient =
PointUtil
.ScreenToClient(_lastScreenLocation, relativePresentationSource);
1193
Point ptRoot =
PointUtil
.ClientToRoot(ptClient, relativePresentationSource);
1412
Point newWindowLocation =
PointUtil
.ClientToScreen(new Point(0, 0), inputSource);
1431
_lastScreenLocation =
PointUtil
.ClientToScreen(pt, inputSource);
1469
dragPosition =
PointUtil
.ClientToScreen(dragPosition, inputSource);
1632
Point newWindowLocation =
PointUtil
.ClientToScreen(new Point(0, 0), inputSource);
1646
_lastScreenLocation =
PointUtil
.ClientToScreen(pt, inputSource);
1666
Point pt =
PointUtil
.ScreenToClient(_lastMouseScreenLocation, mouseInputSource);
System\Windows\InterOp\HwndMouseInputProvider.cs (3)
290
currentPosition =
PointUtil
.ScreenToClient(currentPosition, inputSource);
291
currentPosition =
PointUtil
.ClientToRoot(currentPosition, inputSource);
1440
currentPosition =
PointUtil
.ClientToScreen(currentPosition, _source);
System\Windows\Media\Visual.cs (4)
4734
point =
PointUtil
.RootToClient(point, inputSource);
4735
point =
PointUtil
.ClientToScreen(point, inputSource);
4756
point =
PointUtil
.ScreenToClient(point, inputSource);
4757
point =
PointUtil
.ClientToRoot(point, inputSource);
PresentationFramework (40)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (2)
73
Point ptClient =
PointUtil
.RootToClient(ptRoot, source);
74
Point ptScreen =
PointUtil
.ClientToScreen(ptClient, source);
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (6)
144
boundingRect =
PointUtil
.ElementToRoot(boundingRect, uiScope, hwndSource);
145
boundingRect =
PointUtil
.RootToClient(boundingRect, hwndSource);
146
boundingRect =
PointUtil
.ClientToScreen(boundingRect, hwndSource);
165
boundingRect =
PointUtil
.ElementToRoot(boundingRect, uiScope, hwndSource);
166
boundingRect =
PointUtil
.RootToClient(boundingRect, hwndSource);
167
boundingRect =
PointUtil
.ClientToScreen(boundingRect, hwndSource);
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (6)
75
Rect rectRoot =
PointUtil
.ElementToRoot(rectElement, textView.RenderScope, presentationSource);
76
Rect rectClient =
PointUtil
.RootToClient(rectRoot, presentationSource);
77
Rect rectScreen =
PointUtil
.ClientToScreen(rectClient, hwndSource);
121
Rect rectRoot =
PointUtil
.ElementToRoot(rectElement, textView.RenderScope, presentationSource);
122
Rect rectClient =
PointUtil
.RootToClient(rectRoot, presentationSource);
123
Rect rectScreen =
PointUtil
.ClientToScreen(rectClient, hwndSource);
System\Windows\Controls\PopupControlService.cs (9)
859
Rect rectRoot =
PointUtil
.ElementToRoot(rectElement, ownerUIE, presentationSource);
860
Rect ownerRect =
PointUtil
.RootToClient(rectRoot, presentationSource);
864
rects.Add(
PointUtil
.FromRect(ownerRect));
884
Matrix matrixRootTransform =
PointUtil
.GetVisualTransform(target.RootVisual);
892
rects.Add(
PointUtil
.FromRect(rectClient));
899
Point clientPt =
PointUtil
.ScreenToClient(screenRect.Location, presentationSource);
904
rects.Add(
PointUtil
.FromRect(tooltipRect));
1597
System.Windows.Point ptScreen =
PointUtil
.ClientToScreen(pt, mouseSource);
1598
pt =
PointUtil
.ScreenToClient(ptScreen, _source);
System\Windows\Controls\Primitives\Popup.cs (10)
1832
PointUtil
.GetVisualTransform(rootVisual); //Transform applied directly to root
2445
PointUtil
.GetVisualTransform(rootVisual) *
2671
NativeMethods.RECT nativeBounds =
PointUtil
.FromRect(boundingBox);
2700
return
PointUtil
.ToRect(rect);
2994
return
PointUtil
.ToPoint(ClientToScreen(targetWindow, clientPoint));
3013
devicePoint =
PointUtil
.ClientToScreen(clientPt, hwnd);
3020
devicePoint =
PointUtil
.ScreenToClient(devicePoint, parent);
3052
Matrix transform =
PointUtil
.GetVisualTransform(rootVisual) * ct.TransformToDevice;
3097
return
PointUtil
.ToRect(rect);
3110
return
PointUtil
.ToRect(rect);
System\Windows\Controls\TextAdaptor.cs (2)
402
return
PointUtil
.ClientToScreen(point, presentationSource);
434
point =
PointUtil
.ScreenToClient(point, presentationSource);
System\Windows\Interop\HwndHost.cs (5)
362
Rect rectClientRTLAdjusted =
PointUtil
.ToRect(rcClientRTLAdjusted);
390
Rect rectRoot =
PointUtil
.ElementToRoot(rectElement, this, source);
391
Rect rectClient =
PointUtil
.RootToClient(rectRoot, source);
395
NativeMethods.RECT rcClient =
PointUtil
.FromRect(rectClient);
396
NativeMethods.RECT rcClientRTLAdjusted =
PointUtil
.AdjustForRightToLeft(rcClient, new HandleRef(null, hwndParent));