102 references to Margin
System.Workflow.Activities (16)
Designers\ConditionalDesigner.cs (1)
98diamondRectangle.Width = compositeDesignerTheme.ConnectorSize.Height - 2 * e.AmbientTheme.Margin.Height + 2;
Designers\ListenDesigner.cs (1)
78roundRectangle.Width = compositeDesignerTheme.ConnectorSize.Height - 2 * e.AmbientTheme.Margin.Height - 1;
Designers\SetStateDesigner.cs (3)
44Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin; 55Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin; 89Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
Designers\StateDesigner.Layouts.cs (7)
450width += ambientTheme.Margin.Width * 2; 452height += ambientTheme.Margin.Height; 462origin.X += ambientTheme.Margin.Width; 463origin.Y += ambientTheme.Margin.Height / 2; 668int layoutWidth = layout.Size.Width + 2 * (selectionSize.Width + ambientTheme.Margin.Width); 981Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin; 1040Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
Designers\WhileDesigner.cs (4)
47connectionPoint = new Point(imageRectangle.Right + e.AmbientTheme.Margin.Width / 2, imageRectangle.Top + imageRectangle.Height / 2); 49connectionPoint = new Point(textRectangle.Right + e.AmbientTheme.Margin.Width / 2, textRectangle.Top + textRectangle.Height / 2); 51connectionPoint = new Point(bounds.Left + bounds.Width / 2 + e.AmbientTheme.Margin.Width / 2, bounds.Top + e.AmbientTheme.Margin.Height / 2);
System.Workflow.ComponentModel (86)
AuthoringOM\Design\ActivityDesigner.cs (15)
540textRectangle.X = bounds.Left + ambientTheme.Margin.Width; 541textRectangle.X += (Image != null) ? designerTheme.ImageSize.Width + ambientTheme.Margin.Width : 0; 564imageRectangle.X = bounds.Left + WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Width; 1060Bitmap designerImage = new Bitmap(Size.Width + (4 * ambientTheme.Margin.Width), Size.Height + (4 * ambientTheme.Margin.Height), PixelFormat.Format32bppArgb); 1068graphics.TranslateTransform(-Location.X + 2 * ambientTheme.Margin.Width, -Location.Y + 2 * ambientTheme.Margin.Height); 1717this.textSize.Width = MinimumSize.Width - 2 * e.AmbientTheme.Margin.Width; 1719this.textSize.Width -= e.DesignerTheme.ImageSize.Width + e.AmbientTheme.Margin.Width; 1736size.Width = 2 * e.AmbientTheme.Margin.Width + ((Image != null) ? (e.DesignerTheme.ImageSize.Width + e.AmbientTheme.Margin.Width) : 0) + this.textSize.Width; 1737size.Height = e.AmbientTheme.Margin.Height + Math.Max(e.DesignerTheme.ImageSize.Height, this.textSize.Height) + e.AmbientTheme.Margin.Height; 3040Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin; 3092Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
AuthoringOM\Design\ActivityPreviewDesigner.cs (22)
172PreviewedDesigner.Location = new Point(Location.X + (Size.Width - PreviewedDesigner.Size.Width) / 2, Location.Y + headerHeight + 2 * WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Height); 301int headerHeight = ambientTheme.Margin.Height; 303headerHeight += ambientTheme.Margin.Height; 572this.previewStrip.Location = new Point(bounds.Left + bounds.Width / 2 - this.previewStrip.Size.Width / 2, Location.Y + TitleHeight + e.AmbientTheme.Margin.Height); 581this.previewWindow.Location = new Point(bounds.Left + bounds.Width / 2 - this.previewWindow.Size.Width / 2, previewStripRectangle.Bottom + 3 * e.AmbientTheme.Margin.Height); 583this.separatorLine[0].X = bounds.Left + e.AmbientTheme.Margin.Width; 585this.separatorLine[0].Y += e.AmbientTheme.Margin.Height + e.AmbientTheme.Margin.Height / 2; 587this.separatorLine[1].X = bounds.Right - e.AmbientTheme.Margin.Width; 589this.separatorLine[1].Y += e.AmbientTheme.Margin.Height + e.AmbientTheme.Margin.Height / 2; 595PreviewedDesigner.Location = new Point(Location.X + (Size.Width - PreviewedDesigner.Size.Width) / 2, Location.Y + headerHeight + 2 * e.AmbientTheme.Margin.Height); 615containerSize.Height += e.AmbientTheme.Margin.Height; 623containerSize.Width += 2 * e.AmbientTheme.Margin.Width; 625containerSize.Height += 4 * e.AmbientTheme.Margin.Height; 627containerSize.Height += e.AmbientTheme.Margin.Height; 632containerSize.Width += 3 * e.AmbientTheme.Margin.Width; 646containerSize.Height -= 2 * e.AmbientTheme.Margin.Height; 650Size margins = new Size(2 * e.AmbientTheme.Margin.Width + 2 * e.AmbientTheme.SelectionSize.Width, 2 * e.AmbientTheme.Margin.Height + 2 * e.AmbientTheme.SelectionSize.Height); 998rectangle.Inflate(ambientTheme.Margin.Width / 2, ambientTheme.Margin.Height / 2);
AuthoringOM\Design\CompositeActivityDesigner.cs (5)
245expandButtonRectangle.Y += 2 * WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Height; 259Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin; 300Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin; 332Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin; 1297containerSize.Height = TitleHeight + WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Height;
AuthoringOM\Design\Connector.cs (6)
185Size defaultSize = WorkflowTheme.CurrentTheme.AmbientTheme.Margin; 1530Point[] routedPoints = ConnectorRouter.Route(sourcePoint, targetPoint, new Size(2 * ambientTheme.Margin.Width, 2 * ambientTheme.Margin.Height), rootDesigner.Bounds, rectanglesToExclude.ToArray(), linesToExclude.ToArray(), pointsToExclude.ToArray()); 1537routedPoints = ConnectorRouter.Route(sourcePoint, targetPoint, ambientTheme.Margin, rootDesigner.Bounds, new Rectangle[] { }, linesToExclude.ToArray(), new Point[] { }); 1609rectangleToExclude.Inflate(ambientTheme.Margin); 1696Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
AuthoringOM\Design\DesignerHelpers.cs (1)
514Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
AuthoringOM\Design\DesignerWidgets.cs (5)
2659this.bounds.Width = 2 * WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Width; 2830Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin; 3238Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin; 3371Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin; 3407Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
AuthoringOM\Design\Glyphs\CommentGlyph.cs (1)
36bounds.Inflate(WorkflowTheme.CurrentTheme.AmbientTheme.Margin);
AuthoringOM\Design\Glyphs\ConfigErrorGlyph.cs (5)
51Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin; 59bounds.Inflate(ambientTheme.Margin.Width / 2, ambientTheme.Margin.Height / 2); 86activatedBounds.X += bounds.Width + ambientTheme.Margin.Width; 87activatedBounds.Width -= (bounds.Width + 2 * ambientTheme.Margin.Width);
AuthoringOM\Design\Glyphs\LockedActivityGlyph.cs (2)
40bounds.Inflate(WorkflowTheme.CurrentTheme.AmbientTheme.Margin); 55bounds.Inflate(WorkflowTheme.CurrentTheme.AmbientTheme.Margin);
AuthoringOM\Design\Glyphs\ReadOnlyActivityGlyph.cs (2)
24bounds.Inflate(WorkflowTheme.CurrentTheme.AmbientTheme.Margin); 39bounds.Inflate(WorkflowTheme.CurrentTheme.AmbientTheme.Margin);
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (3)
143indicatorSize.Width += 2 * ambientTheme.Margin.Width; 144indicatorSize.Height += 2 * ambientTheme.Margin.Height; 154Size indicatorMargins = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (4)
170ActivityDesignerPaint.DrawImage(eventArgs.Graphics, this.draggedDesignerImages[i], new Rectangle(new Point(locations[i].X - 2 * ambientTheme.Margin.Width, locations[i].Y - 2 * ambientTheme.Margin.Height), imageSize), new Rectangle(Point.Empty, imageSize), DesignerContentAlignment.Fill, 0.4f, false); 233rectangle.Inflate(2 * ambientTheme.Margin.Width, 2 * ambientTheme.Margin.Height);
AuthoringOM\Design\SequentialActivityDesigner.cs (1)
499containerSize.Width += 3 * e.AmbientTheme.Margin.Width;
AuthoringOM\Design\SequentialWorkflowHeaderFooter.cs (3)
105Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin; 137Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin; 159Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (8)
280size.Height += footer.ImageRectangle.Height + 2 * e.AmbientTheme.Margin.Height + footer.FooterBarRectangle.Size.Height; 304bounds.Inflate(-e.AmbientTheme.Margin.Width, -e.AmbientTheme.Margin.Height); 370imageRectangle.Y = HeaderBarRectangle.Bottom + WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Height; 402headerBarRectangle.Height = Math.Max(2 * WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Height + base.textSize.Height, MinHeaderBarHeight); 411return 2 * WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Height; 437minHeight += (minHeight > 0) ? 2 * WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Height : 0; 457imageRectangle.Y += WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Height;
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (2)
568containerSize.Width += 3 * e.AmbientTheme.Margin.Width; 569containerSize.Height += e.AmbientTheme.Margin.Height;
AuthoringOM\Design\WorkflowLayouts.cs (1)
722Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;