Пример #1
0
 public void ConfigurePosition(IVisual target, PlacementMode placement, Point offset,
                               PopupPositioningEdge anchor = PopupPositioningEdge.None, PopupPositioningEdge gravity = PopupPositioningEdge.None)
 {
     _positionerParameters.ConfigurePosition((TopLevel)_overlayLayer.GetVisualRoot(), target, placement, offset, anchor,
                                             gravity);
     UpdatePosition();
 }
Пример #2
0
 public void ConfigurePosition(IVisual target, PlacementMode placement, Point offset,
                               PopupAnchor anchor = PopupAnchor.None, PopupGravity gravity = PopupGravity.None,
                               PopupPositionerConstraintAdjustment constraintAdjustment = PopupPositionerConstraintAdjustment.All,
                               Rect?rect = null)
 {
     _positionerParameters.ConfigurePosition((TopLevel)_overlayLayer.GetVisualRoot(), target, placement, offset, anchor,
                                             gravity, constraintAdjustment, rect);
     UpdatePosition();
 }
Пример #3
0
        public void ConfigurePosition(IVisual target, PlacementMode placement, Point offset,
                                      PopupPositioningEdge anchor  = PopupPositioningEdge.None,
                                      PopupPositioningEdge gravity = PopupPositioningEdge.None)
        {
            _positionerParameters.ConfigurePosition(_parent, target,
                                                    placement, offset, anchor, gravity);

            if (_positionerParameters.Size != default)
            {
                UpdatePosition();
            }
        }
Пример #4
0
        public void ConfigurePosition(IVisual target, PlacementMode placement, Point offset,
                                      PopupAnchor anchor   = PopupAnchor.None,
                                      PopupGravity gravity = PopupGravity.None,
                                      PopupPositionerConstraintAdjustment constraintAdjustment = PopupPositionerConstraintAdjustment.All,
                                      Rect?rect = null)
        {
            _positionerParameters.ConfigurePosition(_parent, target,
                                                    placement, offset, anchor, gravity, constraintAdjustment, rect);

            if (_positionerParameters.Size != default)
            {
                UpdatePosition();
            }
        }