Пример #1
0
 internal OverlayWindowDropTarget(IOverlayWindowArea overlayArea, OverlayWindowDropTargetType targetType,
                                  FrameworkElement element)
 {
     _type = targetType;
     _screenDetectionArea = new Rect(element.TransformToDeviceDpi(new Point()),
                                     element.TransformActualSizeToAncestor());
 }
 internal OverlayWindowDropTarget(IOverlayWindowArea overlayArea, OverlayWindowDropTargetType targetType,
     FrameworkElement element)
 {
     _overlayArea = overlayArea;
     _type = targetType;
     _screenDetectionArea = new Rect(element.TransformToDeviceDPI(new Point()),
         element.TransformActualSizeToAncestor());
 }
Пример #3
0
        internal OverlayWindowDropTarget(IOverlayWindowArea overlayArea, OverlayWindowDropTargetType targetType, FrameworkElement element)
        {
            this._overlayArea = overlayArea;
            this._type        = targetType;
            Point point = new Point();

            this._screenDetectionArea = new Rect(element.TransformToDeviceDPI(point), element.TransformActualSizeToAncestor());
        }