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