227 references to DesignerEdges
System.Workflow.Activities (32)
Designers\StateDesigner.cs (16)
1080
public override ReadOnlyCollection<ConnectionPoint> GetConnectionPoints(
DesignerEdges
edges)
1088
if ((edges &
DesignerEdges
.Top) > 0)
1089
connectionPoints.Add(new ConnectionPoint(this,
DesignerEdges
.Top, 0));
1091
if ((edges &
DesignerEdges
.Bottom) > 0)
1092
connectionPoints.Add(new ConnectionPoint(this,
DesignerEdges
.Bottom, 0));
1100
if ((edges &
DesignerEdges
.Left) > 0 && layout.LeftConnectionPoint != Point.Empty)
1102
connectionPoints.Add(new DesignerLayoutConnectionPoint(this, leftConnectionIndex, (CompositeActivity)layout.ActivityDesigner.Activity,
DesignerEdges
.Left));
1107
if ((edges &
DesignerEdges
.Right) > 0 && layout.RightConnectionPoint != Point.Empty)
1109
connectionPoints.Add(new DesignerLayoutConnectionPoint(this, rightConnectionIndex, (CompositeActivity)layout.ActivityDesigner.Activity,
DesignerEdges
.Right));
1118
protected override ReadOnlyCollection<Point> GetConnections(
DesignerEdges
edges)
1121
if ((edges &
DesignerEdges
.Top) > 0)
1124
if ((edges &
DesignerEdges
.Bottom) > 0)
1131
if ((edges &
DesignerEdges
.Left) > 0 && layout.LeftConnectionPoint != Point.Empty)
1134
if ((edges &
DesignerEdges
.Right) > 0 && layout.RightConnectionPoint != Point.Empty)
1774
return new DesignerLayoutConnectionPoint(sourceStateDesigner, connectionIndex, eventHandler,
DesignerEdges
.Right);
1782
return new ConnectionPoint(targetStateDesigner,
DesignerEdges
.Top, 0);
Designers\StateDesigner.Layouts.cs (8)
27
private
DesignerEdges
_designerEdges;
29
public DesignerLayoutConnectionPoint(ActivityDesigner associatedDesigner, int connectionIndex, CompositeActivity eventHandler,
DesignerEdges
designerEdges)
32
Debug.Assert(designerEdges ==
DesignerEdges
.Left || designerEdges ==
DesignerEdges
.Right);
42
Debug.Assert(this.DesignerEdges ==
DesignerEdges
.Left || this.DesignerEdges ==
DesignerEdges
.Right);
46
if (this.DesignerEdges ==
DesignerEdges
.Left)
63
public
DesignerEdges
DesignerEdges
Designers\StateDesignerConnector.cs (8)
311
DesignerEdges
sourceEdge = (
DesignerEdges
)Enum.Parse(typeof(
DesignerEdges
), constructionArguments["SourceConnectionEdge"] as string);
313
if (sourceDesigner != null && eventHandler != null && sourceEdge !=
DesignerEdges
.None && sourceIndex >= 0)
322
DesignerEdges
targetEdge = (
DesignerEdges
)Enum.Parse(typeof(
DesignerEdges
), constructionArguments["TargetConnectionEdge"] as string);
324
if (targetDesigner != null && targetEdge !=
DesignerEdges
.None && targetIndex >= 0)
System.Workflow.ComponentModel (195)
AuthoringOM\Design\ActivityDesigner.cs (22)
931
ReadOnlyCollection<ConnectionPoint> connectionPoints = GetConnectionPoints(
DesignerEdges
.All);
978
public virtual ReadOnlyCollection<ConnectionPoint> GetConnectionPoints(
DesignerEdges
edges)
982
if ((edges &
DesignerEdges
.Left) > 0)
984
for (int i = 0; i < GetConnections(
DesignerEdges
.Left).Count; i++)
985
connectionPoints.Add(new ConnectionPoint(this,
DesignerEdges
.Left, i));
988
if ((edges &
DesignerEdges
.Right) > 0)
990
for (int i = 0; i < GetConnections(
DesignerEdges
.Right).Count; i++)
991
connectionPoints.Add(new ConnectionPoint(this,
DesignerEdges
.Right, i));
994
if ((edges &
DesignerEdges
.Top) > 0)
996
for (int i = 0; i < GetConnections(
DesignerEdges
.Top).Count; i++)
997
connectionPoints.Add(new ConnectionPoint(this,
DesignerEdges
.Top, i));
1000
if ((edges &
DesignerEdges
.Bottom) > 0)
1002
for (int i = 0; i < GetConnections(
DesignerEdges
.Bottom).Count; i++)
1003
connectionPoints.Add(new ConnectionPoint(this,
DesignerEdges
.Bottom, i));
1174
protected internal virtual ReadOnlyCollection<Point> GetConnections(
DesignerEdges
edges)
1179
if ((edges &
DesignerEdges
.Left) > 0)
1182
if ((edges &
DesignerEdges
.Top) > 0)
1185
if ((edges &
DesignerEdges
.Right) > 0)
1188
if ((edges &
DesignerEdges
.Bottom) > 0)
2917
void IWorkflowDesignerMessageSink.OnBeginResizing(
DesignerEdges
sizingEdge)
2928
void IWorkflowDesignerMessageSink.OnResizing(
DesignerEdges
sizingEdge, Rectangle bounds)
2971
using (GraphicsPath graphicsPath = ActivityDesignerPaint.GetDesignerPath(this, Point.Empty, new Size(DesignerTheme.BorderWidth, DesignerTheme.BorderWidth),
DesignerEdges
.All, false))
AuthoringOM\Design\ActivityDesignerLayoutSerializers.cs (8)
226
DesignerEdges
sourceEdge = (
DesignerEdges
)Enum.Parse(typeof(
DesignerEdges
), constructionArguments["SourceConnectionEdge"] as string);
228
if (sourceDesigner != null && sourceEdge !=
DesignerEdges
.None && sourceIndex >= 0)
237
DesignerEdges
targetEdge = (
DesignerEdges
)Enum.Parse(typeof(
DesignerEdges
), constructionArguments["TargetConnectionEdge"] as string);
239
if (targetDesigner != null && targetEdge !=
DesignerEdges
.None && targetIndex >= 0)
AuthoringOM\Design\Connector.cs (64)
68
private
DesignerEdges
designerEdge;
71
public ConnectionPoint(ActivityDesigner associatedDesigner,
DesignerEdges
designerEdge, int connectionIndex)
100
public
DesignerEdges
ConnectionEdge
104
DesignerEdges
designerEdge = this.designerEdge;
106
if (designerEdge !=
DesignerEdges
.Left && designerEdge !=
DesignerEdges
.Right &&
107
designerEdge !=
DesignerEdges
.Top && designerEdge !=
DesignerEdges
.Bottom)
132
IList<Point> connections = this.associatedDesigner.GetConnections(
DesignerEdges
.All);
650
internal
DesignerEdges
SourceConnectionEdge
654
DesignerEdges
connectionEdge =
DesignerEdges
.None;
704
internal
DesignerEdges
TargetConnectionEdge
708
DesignerEdges
connectionEdge =
DesignerEdges
.None;
1662
Dictionary<
DesignerEdges
, List<Point>> escapeEdges = new Dictionary<
DesignerEdges
, List<Point>>();
1665
DesignerEdges
escapeEdge =
DesignerEdges
.None;
1675
escapeEdge = DesignerGeometryHelper.ClosestEdgeToPoint((Point)escapeLocation, bounds,
DesignerEdges
.All);
1678
if (escapeEdge !=
DesignerEdges
.None)
1698
Dictionary<
DesignerEdges
, Point[]> designerEdgeCover = new Dictionary<
DesignerEdges
, Point[]>();
1699
designerEdgeCover.Add(
DesignerEdges
.Left, new Point[] { new Point(bounds.Left, bounds.Top), new Point(bounds.Left, bounds.Bottom) });
1700
designerEdgeCover.Add(
DesignerEdges
.Top, new Point[] { new Point(bounds.Left, bounds.Top), new Point(bounds.Right, bounds.Top) });
1701
designerEdgeCover.Add(
DesignerEdges
.Right, new Point[] { new Point(bounds.Right, bounds.Top), new Point(bounds.Right, bounds.Bottom) });
1702
designerEdgeCover.Add(
DesignerEdges
.Bottom, new Point[] { new Point(bounds.Left, bounds.Bottom), new Point(bounds.Right, bounds.Bottom) });
1705
foreach (
DesignerEdges
designerEdge in designerEdgeCover.Keys)
1712
if (designerEdge ==
DesignerEdges
.Left)
1728
else if (designerEdge ==
DesignerEdges
.Right)
1744
else if (designerEdge ==
DesignerEdges
.Top)
1760
else if (designerEdge ==
DesignerEdges
.Bottom)
2022
ConnectorSegment leftCover = coverSet.GetCover(Z,
DesignerEdges
.Left);
2023
ConnectorSegment rightCover = coverSet.GetCover(Z,
DesignerEdges
.Right);
2024
ConnectorSegment bottomCover = coverSet.GetCover(Z,
DesignerEdges
.Bottom);
2025
ConnectorSegment topCover = coverSet.GetCover(Z,
DesignerEdges
.Top);
2212
ConnectorSegment lesserCover = coverSet.GetCover(Z, (orientation == Orientation.Horizontal) ?
DesignerEdges
.Left :
DesignerEdges
.Bottom);
2219
ConnectorSegment higherCover = coverSet.GetCover(Z, (orientation == Orientation.Horizontal) ?
DesignerEdges
.Right :
DesignerEdges
.Top);
2243
DesignerEdges
side; //which side is the cover we are trying to escape
2246
side = (direction.Y < 0) ?
DesignerEdges
.Bottom :
DesignerEdges
.Top;
2249
side = (direction.X < 0) ?
DesignerEdges
.Left :
DesignerEdges
.Right;
2738
ConnectorSegment leftCover = coverSet.GetCover(p,
DesignerEdges
.Left);
2739
ConnectorSegment rightCover = coverSet.GetCover(p,
DesignerEdges
.Right);
2750
ConnectorSegment bottomCover = coverSet.GetCover(p,
DesignerEdges
.Bottom);
2751
ConnectorSegment topCover = coverSet.GetCover(p,
DesignerEdges
.Top);
2888
public ConnectorSegment GetCover(Point p,
DesignerEdges
side)
2893
if (side ==
DesignerEdges
.Left || side ==
DesignerEdges
.Right)
2898
int currentDistance = (side ==
DesignerEdges
.Left) ? p.X - segment.A.X : segment.A.X - p.X;
2914
int currentDistance = (side ==
DesignerEdges
.Bottom) ? p.Y - segment.A.Y : segment.A.Y - p.Y;
2930
public List<ConnectorSegment> GetCovers(Point p,
DesignerEdges
side)
2934
if (side ==
DesignerEdges
.Left || side ==
DesignerEdges
.Right)
2939
int currentDistance = (side ==
DesignerEdges
.Left) ? p.X - segment.A.X : segment.A.X - p.X;
2949
int currentDistance = (side ==
DesignerEdges
.Bottom) ? p.Y - segment.A.Y : segment.A.Y - p.Y;
2958
public bool IsEscapePoint(Point origin, Point escape,
DesignerEdges
side)
2963
if (side ==
DesignerEdges
.Left || side ==
DesignerEdges
.Right)
2982
if (side ==
DesignerEdges
.Left || side ==
DesignerEdges
.Right)
AuthoringOM\Design\DesignerHelpers.cs (21)
503
GraphicsPath designerPath = GetDesignerPath(designer, new Point(-location.X, -location.Y), Size.Empty,
DesignerEdges
.None);
529
return GetDesignerPath(designer, Point.Empty, Size.Empty,
DesignerEdges
.None, enableRoundedCorners);
532
internal static GraphicsPath GetDesignerPath(ActivityDesigner designer, Point offset, Size inflate,
DesignerEdges
edgeToInflate)
537
internal static GraphicsPath GetDesignerPath(ActivityDesigner designer, Point offset, Size inflate,
DesignerEdges
edgeToInflate, bool enableRoundedCorners)
544
if ((edgeToInflate &
DesignerEdges
.Left) > 0)
550
if ((edgeToInflate &
DesignerEdges
.Right) > 0)
553
if ((edgeToInflate &
DesignerEdges
.Top) > 0)
559
if ((edgeToInflate &
DesignerEdges
.Bottom) > 0)
1834
internal static
DesignerEdges
ClosestEdgeToPoint(Point point, Rectangle rect,
DesignerEdges
edgesToConsider)
1837
List<
DesignerEdges
> edges = new List<
DesignerEdges
>();
1839
if ((edgesToConsider &
DesignerEdges
.Left) > 0)
1842
edges.Add(
DesignerEdges
.Left);
1845
if ((edgesToConsider &
DesignerEdges
.Top) > 0)
1848
edges.Add(
DesignerEdges
.Top);
1851
if ((edgesToConsider &
DesignerEdges
.Right) > 0)
1854
edges.Add(
DesignerEdges
.Right);
1857
if ((edgesToConsider &
DesignerEdges
.Bottom) > 0)
1860
edges.Add(
DesignerEdges
.Bottom);
1872
return
DesignerEdges
.None;
AuthoringOM\Design\DesignerInterfaces.cs (5)
144
void OnBeginResizing(
DesignerEdges
sizingEdge);
145
void OnResizing(
DesignerEdges
sizingEdge, Rectangle bounds);
431
private
DesignerEdges
sizingEdge;
434
public ActivityDesignerResizeEventArgs(
DesignerEdges
sizingEdge, Rectangle newBounds)
440
public
DesignerEdges
SizingEdge
AuthoringOM\Design\MessageFilters\ConnectionManager.cs (3)
525
ReadOnlyCollection<ConnectionPoint> snapPoints = designer.GetConnectionPoints(
DesignerEdges
.All);
553
foreach (ConnectionPoint connectionPoint in snappedConnectionPoint.AssociatedDesigner.GetConnectionPoints(
DesignerEdges
.All))
578
ReadOnlyCollection<ConnectionPoint> snapPoints = designer.GetConnectionPoints(
DesignerEdges
.All);
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (42)
17
private
DesignerEdges
designerSizingEdge =
DesignerEdges
.None;
35
DesignerEdges
sizingEdge =
DesignerEdges
.None;
37
if (designer != null && sizingEdge !=
DesignerEdges
.None && CanResizeDesigner(designer))
53
DesignerEdges
sizingEdge =
DesignerEdges
.None;
64
if (designer != null && sizingEdge !=
DesignerEdges
.None && CanResizeDesigner(designer))
82
SetResizableDesigner(null,
DesignerEdges
.None);
89
SetResizableDesigner(null,
DesignerEdges
.None);
91
UpdateCursor(
DesignerEdges
.None);
99
SetResizableDesigner(null,
DesignerEdges
.None);
111
SetResizableDesigner(null,
DesignerEdges
.None);
115
private void UpdateCursor(
DesignerEdges
sizingEdge)
122
if (((sizingEdge &
DesignerEdges
.Left) > 0 && (sizingEdge &
DesignerEdges
.Top) > 0) ||
123
((sizingEdge &
DesignerEdges
.Right) > 0 && (sizingEdge &
DesignerEdges
.Bottom) > 0))
127
else if (((sizingEdge &
DesignerEdges
.Right) > 0 && (sizingEdge &
DesignerEdges
.Top) > 0) ||
128
((sizingEdge &
DesignerEdges
.Left) > 0 && (sizingEdge &
DesignerEdges
.Bottom) > 0))
132
else if ((sizingEdge &
DesignerEdges
.Top) > 0 || (sizingEdge &
DesignerEdges
.Bottom) > 0)
136
else if ((sizingEdge &
DesignerEdges
.Left) > 0 || (sizingEdge &
DesignerEdges
.Right) > 0)
140
else if (sizingEdge ==
DesignerEdges
.None &&
151
private ActivityDesigner GetDesignerToResize(Point point, out
DesignerEdges
sizingEdge)
154
sizingEdge =
DesignerEdges
.None;
189
private
DesignerEdges
GetSizingEdge(ActivityDesigner designer, Point point)
191
DesignerEdges
sizingEdge =
DesignerEdges
.None;
196
sizingEdge |=
DesignerEdges
.Left;
198
sizingEdge |=
DesignerEdges
.Top;
200
sizingEdge |=
DesignerEdges
.Right;
202
sizingEdge |=
DesignerEdges
.Bottom;
224
private void SetResizableDesigner(ActivityDesigner designer,
DesignerEdges
sizingEdge)
268
private void UpdateDesignerSize(Point point, ActivityDesigner designerToSize,
DesignerEdges
sizingEdge)
283
if ((sizingEdge &
DesignerEdges
.Left) > 0)
295
if ((sizingEdge &
DesignerEdges
.Top) > 0)
307
if ((sizingEdge &
DesignerEdges
.Right) > 0)
310
if ((sizingEdge &
DesignerEdges
.Bottom) > 0)
AuthoringOM\Design\MessageFilters\WorkflowDesignerMessageFilter.cs (2)
557
void IWorkflowDesignerMessageSink.OnBeginResizing(
DesignerEdges
sizingEdge)
561
void IWorkflowDesignerMessageSink.OnResizing(
DesignerEdges
sizingEdge, Rectangle bounds)
AuthoringOM\Design\ParallelActivityDesigner.cs (12)
220
ReadOnlyCollection<Point> connectionPoints = GetInnerConnections(
DesignerEdges
.Top |
DesignerEdges
.Bottom);
343
ReadOnlyCollection<Point> firstDesignerConnections = firstDesigner.GetConnections(
DesignerEdges
.Top |
DesignerEdges
.Bottom);
346
ReadOnlyCollection<Point> lastDesignerConnections = lastDesigner.GetConnections(
DesignerEdges
.Top |
DesignerEdges
.Bottom);
380
ReadOnlyCollection<Point> designerConnections = activityDesigner.GetConnections(
DesignerEdges
.Top |
DesignerEdges
.Bottom);
431
ReadOnlyCollection<Point> firstDesignerConnections = firstDesigner.GetConnections(
DesignerEdges
.Top |
DesignerEdges
.Bottom);
447
ReadOnlyCollection<Point> lastDesignerConnections = lastDesigner.GetConnections(
DesignerEdges
.Top |
DesignerEdges
.Bottom);
AuthoringOM\Design\SequentialActivityDesigner.cs (12)
190
ReadOnlyCollection<Point> containerConnections = GetInnerConnections(
DesignerEdges
.Top |
DesignerEdges
.Bottom);
203
ReadOnlyCollection<Point> startDesignerConnections = startDesigner.GetConnections(
DesignerEdges
.Top |
DesignerEdges
.Bottom);
223
ReadOnlyCollection<Point> designerFromConnections = designerFrom.GetConnections(
DesignerEdges
.Top |
DesignerEdges
.Bottom);
225
ReadOnlyCollection<Point> designerToConnections = designerTo.GetConnections(
DesignerEdges
.Top |
DesignerEdges
.Bottom);
233
ReadOnlyCollection<Point> endDesignerConnections = endDesigner.GetConnections(
DesignerEdges
.Top |
DesignerEdges
.Bottom);
445
ReadOnlyCollection<Point> connectionPoints = GetInnerConnections(
DesignerEdges
.Top |
DesignerEdges
.Bottom);
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (2)
257
protected override ReadOnlyCollection<Point> GetInnerConnections(
DesignerEdges
edges)
260
if (connectionPoints.Count > 0 && Footer != null && (edges &
DesignerEdges
.Bottom) > 0)
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (2)
439
protected virtual ReadOnlyCollection<Point> GetInnerConnections(
DesignerEdges
edges)
442
if (connectionPoints.Count > 0 && (edges &
DesignerEdges
.Top) > 0)