3 writes to CurrentTheme
System.Workflow.ComponentModel (3)
AuthoringOM\Design\CommandSet.cs (1)
687WorkflowTheme.CurrentTheme = themeToApply;
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (2)
1243WorkflowTheme.CurrentTheme = themeToApply; 1252WorkflowTheme.CurrentTheme = this.oldTheme;
119 references to CurrentTheme
System.Workflow.Activities (7)
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 (2)
981Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin; 1040Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
Designers\StateDesignerConnector.cs (2)
146using (Pen lineEditPen = new Pen(WorkflowTheme.CurrentTheme.AmbientTheme.SelectionForeColor, 1)) 177using (Pen lineSelectionPen = new Pen(WorkflowTheme.CurrentTheme.AmbientTheme.SelectionForeColor, 1))
System.Workflow.ComponentModel (112)
AuthoringOM\Design\ActivityDesigner.cs (12)
310return WorkflowTheme.CurrentTheme.GetDesignerTheme(this); 504if (WorkflowTheme.CurrentTheme.AmbientTheme.ShowConfigErrors && 535AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 559AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 564imageRectangle.X = bounds.Left + WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Width; 1059AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 3037Size glyphSize = WorkflowTheme.CurrentTheme.AmbientTheme.GlyphSize; 3040Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin; 3080graphics.FillRectangle(WorkflowTheme.CurrentTheme.AmbientTheme.BackgroundBrush, activatedBounds); 3081using (Brush transparentSelectionBrush = new SolidBrush(Color.FromArgb(50, WorkflowTheme.CurrentTheme.AmbientTheme.SelectionForeColor))) 3089Size glyphSize = WorkflowTheme.CurrentTheme.AmbientTheme.GlyphSize; 3092Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
AuthoringOM\Design\ActivityPreviewDesigner.cs (4)
172PreviewedDesigner.Location = new Point(Location.X + (Size.Width - PreviewedDesigner.Size.Width) / 2, Location.Y + headerHeight + 2 * WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Height); 299AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 987Size configErrorSize = WorkflowTheme.CurrentTheme.AmbientTheme.GlyphSize; 997AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme;
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; 330Size selectionSize = WorkflowTheme.CurrentTheme.AmbientTheme.SelectionSize; 455using (Pen lineSelectionPen = new Pen(WorkflowTheme.CurrentTheme.AmbientTheme.SelectionForeColor, 1)) 1526AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 1553AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 1696Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin;
AuthoringOM\Design\DesignerHelpers.cs (8)
245graphics.DrawRectangle(WorkflowTheme.CurrentTheme.AmbientTheme.SelectionPatternPen, selectionRect); 263graphics.DrawRectangle(WorkflowTheme.CurrentTheme.AmbientTheme.SelectionForegroundPen, grabHandle); 267Pen patternPen = WorkflowTheme.CurrentTheme.AmbientTheme.SelectionPatternPen; 328AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 514Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin; 520if (WorkflowTheme.CurrentTheme.AmbientTheme.ShowDesignerBorder) 1185AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 1188Size snapSize = WorkflowTheme.CurrentTheme.AmbientTheme.GridSize;
AuthoringOM\Design\DesignerInterfaces.cs (2)
325return WorkflowTheme.CurrentTheme.AmbientTheme; 402return WorkflowTheme.CurrentTheme.AmbientTheme;
AuthoringOM\Design\DesignerWidgets.cs (9)
2659this.bounds.Width = 2 * WorkflowTheme.CurrentTheme.AmbientTheme.Margin.Width; 2671AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 2766ActivityDesignerPaint.DrawText(graphics, designerTheme.Font, this.helpText, stripRectangle, StringAlignment.Center, WorkflowTheme.CurrentTheme.AmbientTheme.TextQuality, textBrush); 2830Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin; 3238Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin; 3371Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin; 3407Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin; 3410ActivityDesignerPaint.DrawText(graphics, designerTheme.Font, PreviewModeDescription, this.previewModeDescRectangle, StringAlignment.Center, WorkflowTheme.CurrentTheme.AmbientTheme.TextQuality, designerTheme.ForegroundBrush); 3446ActivityDesignerPaint.DrawText(graphics, designerTheme.Font, previewDescription, descriptionRectangle, StringAlignment.Center, WorkflowTheme.CurrentTheme.AmbientTheme.TextQuality, designerTheme.ForegroundBrush);
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (5)
1228base.OnThemeChange(WorkflowTheme.CurrentTheme, EventArgs.Empty); 1239if (themeToApply != null && WorkflowTheme.CurrentTheme != themeToApply) 1242this.oldTheme = WorkflowTheme.CurrentTheme; 1249if (this.oldTheme != null && WorkflowTheme.CurrentTheme != this.oldTheme) 1251WorkflowTheme.CurrentTheme.ReadOnly = false; //this was themeToApply passed into constructor, need to make it r/w again
AuthoringOM\Design\DocumentOutline.cs (1)
480this.ForeColor = (!activity.Enabled || ActivityDesigner.IsCommentedActivity(activity)) ? WorkflowTheme.CurrentTheme.AmbientTheme.CommentIndicatorColor : SystemColors.WindowText;
AuthoringOM\Design\FreeFormDesigner.cs (3)
173if (WorkflowTheme.CurrentTheme.AmbientTheme.ShowGrid) 175Size gridSize = WorkflowTheme.CurrentTheme.AmbientTheme.GridSize; 842if (WorkflowTheme.CurrentTheme.AmbientTheme.ShowGrid)
AuthoringOM\Design\Glyphs\CommentGlyph.cs (1)
36bounds.Inflate(WorkflowTheme.CurrentTheme.AmbientTheme.Margin);
AuthoringOM\Design\Glyphs\ConfigErrorGlyph.cs (3)
50Size configErrorSize = WorkflowTheme.CurrentTheme.AmbientTheme.GlyphSize; 51Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin; 58AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme;
AuthoringOM\Design\Glyphs\ConnectorDragDropGlyph.cs (2)
20AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 26return new Rectangle(this.glyphPoint, WorkflowTheme.CurrentTheme.AmbientTheme.DropIndicatorSize);
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\Glyphs\SelectionGlyph.cs (4)
21rectangle.Inflate(WorkflowTheme.CurrentTheme.AmbientTheme.SelectionSize.Width / 2, WorkflowTheme.CurrentTheme.AmbientTheme.SelectionSize.Height / 2); 27ActivityDesignerPaint.DrawSelection(graphics, GetBounds(designer, activated), IsPrimarySelection, WorkflowTheme.CurrentTheme.AmbientTheme.SelectionSize, GetGrabHandles(designer)); 42Size selectionSize = WorkflowTheme.CurrentTheme.AmbientTheme.SelectionSize;
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (3)
137AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 154Size indicatorMargins = WorkflowTheme.CurrentTheme.AmbientTheme.Margin; 155Size scrollIndicatorSize = WorkflowTheme.CurrentTheme.AmbientTheme.ScrollIndicatorSize;
AuthoringOM\Design\MessageFilters\DragDropManager.cs (1)
608ActivityDesignerPaint.DrawImage(e.Graphics, this.dragImage, new Rectangle(this.dragImagePointInClientCoOrd, this.dragImage.Size), new Rectangle(0, 0, this.dragImage.Width, this.dragImage.Height), DesignerContentAlignment.Center, (this.dragImageSnapped) ? 1.0f : 0.5f, WorkflowTheme.CurrentTheme.AmbientTheme.DrawGrayscale);
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (1)
226AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme;
AuthoringOM\Design\MessageFilters\GlyphManager.cs (2)
112OnPaint(graphics, true, WorkflowTheme.CurrentTheme.AmbientTheme, designer); 117OnPaint(graphics, false, WorkflowTheme.CurrentTheme.AmbientTheme, designer);
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (2)
193Size selectionSize = WorkflowTheme.CurrentTheme.AmbientTheme.SelectionSize; 278Size selectionSize = WorkflowTheme.CurrentTheme.AmbientTheme.SelectionSize;
AuthoringOM\Design\MessageFilters\WorkflowDesignerMessageFilter.cs (2)
488handled = OnPaint(eventArgs, viewPort, WorkflowTheme.CurrentTheme.AmbientTheme); 502handled = OnPaintWorkflowAdornments(eventArgs, viewPort, WorkflowTheme.CurrentTheme.AmbientTheme);
AuthoringOM\Design\SequentialActivityDesigner.cs (1)
519AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme;
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 (6)
227AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 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 (1)
625this.itemPalette.SetFont(WorkflowTheme.CurrentTheme.AmbientTheme.Font);
AuthoringOM\Design\Themes.cs (4)
218WorkflowTheme.CurrentTheme.AmbientTheme.UpdateFont(); 389themeKey.SetValue(WorkflowTheme.ThemeTypeKey, WorkflowTheme.CurrentTheme.themeType); 390if (WorkflowTheme.CurrentTheme.themeType == ThemeType.UserDefined) 391themeKey.SetValue(WorkflowTheme.ThemePathKey, WorkflowTheme.CurrentTheme.FilePath);
AuthoringOM\Design\WorkflowLayouts.cs (9)
174AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 196ActivityDesignerPaint.DrawImage(graphics, memoryBitmap, bitmapArea, bitmapArea, DesignerContentAlignment.Fill, 1.0f, WorkflowTheme.CurrentTheme.AmbientTheme.DrawGrayscale); 262graphics.FillRectangle(WorkflowTheme.CurrentTheme.AmbientTheme.BackgroundBrush, rootBounds); 386Size selectionSize = WorkflowTheme.CurrentTheme.AmbientTheme.SelectionSize; 516AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 590AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 681ActivityDesignerPaint.DrawImage(graphics, memoryBitmap, new Rectangle(bitmapDrawingPoint, viewPortBitmapArea.Size), viewPortBitmapArea, DesignerContentAlignment.Fill, 1.0f, WorkflowTheme.CurrentTheme.AmbientTheme.DrawGrayscale); 722Size margin = WorkflowTheme.CurrentTheme.AmbientTheme.Margin; 728Size selectionSize = WorkflowTheme.CurrentTheme.AmbientTheme.SelectionSize;
AuthoringOM\Design\WorkflowPrinting.cs (3)
110AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 303graphics.DrawString(headerFooter, headerFooterPrintData.Font, WorkflowTheme.CurrentTheme.AmbientTheme.ForegroundBrush, layoutRectangle, stringFormat); 310Size selectionSize = WorkflowTheme.CurrentTheme.AmbientTheme.SelectionSize;
AuthoringOM\Design\WorkflowView.cs (5)
97private int shadowDepth = WorkflowTheme.CurrentTheme.AmbientTheme.ShadowDepth; 1603AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 1678ShadowDepth = WorkflowTheme.CurrentTheme.AmbientTheme.ShadowDepth; 1720rectangleToMakeVisible.Inflate(WorkflowTheme.CurrentTheme.AmbientTheme.SelectionSize); 1721rectangleToMakeVisible.Inflate(WorkflowTheme.CurrentTheme.AmbientTheme.SelectionSize);