47 references to AutoConnectDirections
System.Data (47)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectAdorner.cs (15)
29
private
AutoConnectDirections
highlightedDirection =
AutoConnectDirections
.None;
30
private
AutoConnectDirections
directions;
42
public AutoConnectAdorner(UIElement adornedElement, FreeFormPanel panel,
AutoConnectDirections
directions)
123
internal
AutoConnectDirections
AutoConnectDirection
142
if (position.X < 0 && this.highlightedDirection !=
AutoConnectDirections
.Left)
144
this.highlightedDirection =
AutoConnectDirections
.Left;
147
else if (position.X > size.Width && this.highlightedDirection !=
AutoConnectDirections
.Right)
149
this.highlightedDirection =
AutoConnectDirections
.Right;
152
else if (position.Y < 0 && this.highlightedDirection !=
AutoConnectDirections
.Top)
154
this.highlightedDirection =
AutoConnectDirections
.Top;
157
else if (position.Y > size.Height && this.highlightedDirection !=
AutoConnectDirections
.Bottom)
159
this.highlightedDirection =
AutoConnectDirections
.Bottom;
185
this.highlightedDirection =
AutoConnectDirections
.None;
223
if (this.AutoConnectDirection !=
AutoConnectDirections
.None)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectHelper.cs (30)
98
internal static
AutoConnectDirections
GetAutoConnectDirection(int index)
103
return
AutoConnectDirections
.Left;
105
return
AutoConnectDirections
.Right;
107
return
AutoConnectDirections
.Top;
109
return
AutoConnectDirections
.Bottom;
111
return
AutoConnectDirections
.None;
115
internal static Point CalculateDropLocation(Size droppedSize, DependencyObject autoConnectTarget,
AutoConnectDirections
direction, HashSet<Point> shapeLocations)
124
case
AutoConnectDirections
.Left:
127
case
AutoConnectDirections
.Right:
130
case
AutoConnectDirections
.Top:
133
case
AutoConnectDirections
.Bottom:
154
internal static EdgeLocation AutoConnectDirection2EdgeLocation(
AutoConnectDirections
direction)
159
case
AutoConnectDirections
.Left:
162
case
AutoConnectDirections
.Right:
165
case
AutoConnectDirections
.Top:
168
case
AutoConnectDirections
.Bottom:
199
internal DependencyObject FindTarget(Point point, DependencyObject dragged, out
AutoConnectDirections
directions)
201
directions =
AutoConnectDirections
.None;
234
AutoConnectDirections
direction;
237
if (target != null && (direction & this.panel.AutoConnectContainer.GetDirectionsAllowed(e, target)) !=
AutoConnectDirections
.None)
264
private static void RemoveDirectionsInCollision(List<DependencyObject> childShapes, DependencyObject target, List<Rect> hitTestRects, ref
AutoConnectDirections
directions)
268
if (directions ==
AutoConnectDirections
.None)
292
private void RemoveDirectionsOutsideOfPanel(List<Rect> hitTestRects, ref
AutoConnectDirections
directions)
304
private
AutoConnectDirections
GetAutoConnectDirections(
AutoConnectDirections
directions, List<DependencyObject> childShapes, DependencyObject target)
306
directions =
AutoConnectDirections
.Top |
AutoConnectDirections
.Bottom |
AutoConnectDirections
.Left |
AutoConnectDirections
.Right;
313
private void AddDropTargets(DragEventArgs e, UIElement adornedElement,
AutoConnectDirections
directions)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\IAutoConnectContainer.cs (2)
16
void DoAutoConnect(DragEventArgs e, UIElement targetElement,
AutoConnectDirections
direction);
18
AutoConnectDirections
GetDirectionsAllowed(DragEventArgs e, UIElement targetElement);