26 references to AmbientTheme
System.Workflow.Activities (10)
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 (1)
177e.AmbientTheme.TextQuality,
Designers\StateDesigner.cs (1)
1564AmbientTheme ambientTheme = e.AmbientTheme;
Designers\StateDesignerConnector.cs (2)
240e.Graphics.DrawPath(e.AmbientTheme.SelectionForegroundPen, path); 246e.Graphics.FillEllipse(e.AmbientTheme.SelectionForegroundBrush, bounds);
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 (16)
AuthoringOM\Design\ActivityDesigner.cs (1)
1677ActivityDesignerPaint.DrawText(e.Graphics, font, Text, TextRectangle, StringAlignment.Near, e.AmbientTheme.TextQuality, e.DesignerTheme.ForegroundBrush);
AuthoringOM\Design\Connector.cs (6)
175e.Graphics.DrawEllipse(e.AmbientTheme.SelectionForegroundPen, bounds); 178e.Graphics.FillEllipse(e.AmbientTheme.SelectionForegroundBrush, bounds); 482using (Pen editableConnectorPen = new Pen(e.AmbientTheme.SelectionForegroundPen.Color, e.AmbientTheme.SelectionForegroundPen.Width)) 529e.Graphics.DrawPath(e.AmbientTheme.SelectionForegroundPen, path); 535e.Graphics.FillEllipse(e.AmbientTheme.SelectionForegroundBrush, bounds);
AuthoringOM\Design\ParallelActivityDesigner.cs (5)
424DrawConnectors(e.Graphics, e.AmbientTheme.DropIndicatorPen, new Point[] { new Point(dropTargetRectangle.Left + dropTargetRectangle.Width / 2, dropTargetRectangle.Top + 2), new Point(dropTargetRectangle.Left + dropTargetRectangle.Width / 2, dropTargetRectangle.Bottom - 2) }, compositeDesignerTheme.ConnectorStartCap, compositeDesignerTheme.ConnectorEndCap); 438DrawConnectors(e.Graphics, e.AmbientTheme.DropIndicatorPen, connectorPoints, LineAnchor.None, LineAnchor.None); 442DrawConnectors(e.Graphics, e.AmbientTheme.DropIndicatorPen, connectorPoints, LineAnchor.None, LineAnchor.None); 454DrawConnectors(e.Graphics, e.AmbientTheme.DropIndicatorPen, connectorPoints, LineAnchor.None, LineAnchor.None); 458DrawConnectors(e.Graphics, e.AmbientTheme.DropIndicatorPen, connectorPoints, LineAnchor.None, LineAnchor.None);
AuthoringOM\Design\SequentialActivityDesigner.cs (2)
415ActivityDesignerPaint.DrawText(e.Graphics, compositeDesignerTheme.Font, this.HelpText, helpTextRectangle, StringAlignment.Center, e.AmbientTheme.TextQuality, compositeDesignerTheme.ForegroundBrush); 422Pen pen = (i == CurrentDropTarget) ? e.AmbientTheme.DropIndicatorPen : compositeDesignerTheme.ForegroundPen;
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (2)
304bounds.Inflate(-e.AmbientTheme.Margin.Width, -e.AmbientTheme.Margin.Height);