153 references to AmbientTheme
System.Workflow.Activities (30)
Designers\StateDesigner.CommentLayoutGlyph.cs (1)
53protected override void OnPaint(Graphics graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer)
Designers\StateDesigner.cs (3)
1376AmbientTheme ambientTheme = e.AmbientTheme; 1539AmbientTheme ambientTheme = e.AmbientTheme; 1564AmbientTheme ambientTheme = e.AmbientTheme;
Designers\StateDesigner.Layouts.cs (26)
232public virtual void OnLayoutSize(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme, Size containerSize) 236public virtual void OnLayoutPosition(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme) 240public virtual void OnPaint(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme) 441public override void OnLayoutSize(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme, Size containerSize) 458public override void OnLayoutPosition(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme) 469public override void OnPaint(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme) 603public override void OnPaint(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme) 658public override void OnLayoutSize(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme, Size containerSize) 683public override void OnLayoutPosition(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme) 699public override void OnPaint(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme) 756public override void OnLayoutSize(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme, Size containerSize) 781public override void OnLayoutPosition(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme) 792public override void OnPaint(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme) 843public override void OnLayoutSize(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme, Size containerSize) 858public override void OnPaint(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme) 888public override void OnLayoutSize(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme, Size containerSize) 902public override void OnPaint(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme) 961public override void OnLayoutSize(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme, Size containerSize) 979public override void OnLayoutPosition(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme) 991public override void OnPaint(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme) 1121public override void OnLayoutSize(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme, Size containerSize) 1177public override void OnLayoutPosition(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme) 1189public override void OnPaint(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme) 1312public override void OnLayoutSize(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme, Size containerSize) 1356public override void OnLayoutPosition(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme) 1390public override void OnPaint(Graphics graphics, ActivityDesignerTheme designerTheme, AmbientTheme ambientTheme)
System.Workflow.ComponentModel (122)
AuthoringOM\Design\ActivityDesigner.cs (5)
466DesignerAction designerAction = new DesignerAction(this, i, error.ErrorText, AmbientTheme.ConfigErrorImage); 535AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 559AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 1059AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 3059protected override void OnPaint(Graphics graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer)
AuthoringOM\Design\ActivityPreviewDesigner.cs (2)
299AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 997AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme;
AuthoringOM\Design\CommandSet.cs (2)
290this.workflowView.Zoom = Math.Min(Math.Max(newZoom, AmbientTheme.MinZoom), AmbientTheme.MaxZoom);
AuthoringOM\Design\Connector.cs (2)
1526AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 1553AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme;
AuthoringOM\Design\DesignerHelpers.cs (7)
328AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 454excludePath.AddPath(GetRoundedRectanglePath(shadowSourceRectangle, AmbientTheme.ArcDiameter), true); 475shadowPath.AddPath(GetRoundedRectanglePath(shadowRectangle, AmbientTheme.ArcDiameter), true); 516DrawImage(graphics, compositeDesignerTheme.WatermarkImage, bounds, new Rectangle(Point.Empty, compositeDesignerTheme.WatermarkImage.Size), compositeDesignerTheme.WatermarkAlignment, AmbientTheme.WatermarkTransparency, false); 571designerPath.AddPath(GetRoundedRectanglePath(bounds, AmbientTheme.ArcDiameter), true); 1185AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 1511image.MakeTransparent(AmbientTheme.TransparentColor);
AuthoringOM\Design\DesignerInterfaces.cs (2)
321public AmbientTheme AmbientTheme 398public AmbientTheme AmbientTheme
AuthoringOM\Design\DesignerResources.cs (1)
251bitmap.MakeTransparent(AmbientTheme.TransparentColor);
AuthoringOM\Design\DesignerWidgets.cs (3)
1050private static readonly int DropShadowWidth = AmbientTheme.DropShadowWidth; 1423ActivityDesignerPaint.DrawDropShadow(e.Graphics, rectangle, Color.Black, AmbientTheme.DropShadowWidth, LightSourcePosition.Left | LightSourcePosition.Top, 0.2f, false); 2671AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme;
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (1)
80this.memberTypes.TransparentColor = AmbientTheme.TransparentColor;
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (2)
738treeView.ImageList.Images.Add(standardImage, AmbientTheme.TransparentColor); 744int imageIndex = (image != null) ? treeView.ImageList.Images.Add(image, AmbientTheme.TransparentColor) : 0;
AuthoringOM\Design\FreeFormDesigner.cs (1)
1270protected override void OnPaint(Graphics graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer)
AuthoringOM\Design\Glyphs\CommentGlyph.cs (2)
48protected override void OnPaint(Graphics graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer) 51graphics.FillRectangle(AmbientTheme.FadeBrush, bounds);
AuthoringOM\Design\Glyphs\ConfigErrorGlyph.cs (3)
58AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 65protected override void OnPaint(Graphics graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer) 96ActivityDesignerPaint.DrawImage(graphics, AmbientTheme.ConfigErrorImage, bounds, DesignerContentAlignment.Fill);
AuthoringOM\Design\Glyphs\ConnectionPointGlyph.cs (1)
20protected override void OnPaint(Graphics graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer)
AuthoringOM\Design\Glyphs\ConnectorDragDropGlyph.cs (3)
20AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 29protected override void OnPaint(Graphics graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer) 31ActivityDesignerPaint.DrawImage(graphics, AmbientTheme.DropIndicatorImage, GetBounds(designer, activated), DesignerContentAlignment.Fill);
AuthoringOM\Design\Glyphs\LockedActivityGlyph.cs (2)
52protected override void OnPaint(Graphics graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer) 56ActivityDesignerPaint.DrawImage(graphics, AmbientTheme.LockImage, bounds, DesignerContentAlignment.TopLeft);
AuthoringOM\Design\Glyphs\ReadOnlyActivityGlyph.cs (2)
36protected override void OnPaint(Graphics graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer) 40ActivityDesignerPaint.DrawImage(graphics, AmbientTheme.ReadOnlyImage, bounds, DesignerContentAlignment.TopLeft);
AuthoringOM\Design\Glyphs\SelectionGlyph.cs (1)
25protected override void OnPaint(Graphics graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer)
AuthoringOM\Design\Glyphs\ShadowGlyph.cs (4)
32bounds.Inflate(AmbientTheme.DropShadowWidth + 1, AmbientTheme.DropShadowWidth + 1); 36protected override void OnPaint(Graphics graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer) 42ActivityDesignerPaint.DrawDropShadow(graphics, designer.Bounds, designer.DesignerTheme.BorderPen.Color, AmbientTheme.DropShadowWidth, LightSourcePosition.Left | LightSourcePosition.Top, 0.5f, drawRounded);
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (12)
64protected override bool OnPaintWorkflowAdornments(PaintEventArgs e, Rectangle viewPort, AmbientTheme ambientTheme) 137AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 189scrollPosition.X = scrollPosition.X - AmbientTheme.ScrollUnit; 191scrollPosition.X = scrollPosition.X + AmbientTheme.ScrollUnit; 194scrollPosition.Y = scrollPosition.Y - AmbientTheme.ScrollUnit; 196scrollPosition.Y = scrollPosition.Y + AmbientTheme.ScrollUnit; 203Image indicator = AmbientTheme.ScrollIndicatorImage; 214ActivityDesignerPaint.DrawImage(graphics, AmbientTheme.ScrollIndicatorImage, scrollIndicatorRectangles[0], AmbientTheme.ScrollIndicatorTransparency); 219ActivityDesignerPaint.DrawImage(graphics, indicator, scrollIndicatorRectangles[1], AmbientTheme.ScrollIndicatorTransparency); 227ActivityDesignerPaint.DrawImage(graphics, indicator, scrollIndicatorRectangles[2], AmbientTheme.ScrollIndicatorTransparency); 234ActivityDesignerPaint.DrawImage(graphics, indicator, scrollIndicatorRectangles[3], AmbientTheme.ScrollIndicatorTransparency);
AuthoringOM\Design\MessageFilters\ConnectionManager.cs (1)
228protected override bool OnPaint(PaintEventArgs e, Rectangle viewPort, AmbientTheme ambientTheme)
AuthoringOM\Design\MessageFilters\DragDropManager.cs (5)
305Size dragImageIconSize = parentView.LogicalSizeToClient(AmbientTheme.DragImageIconSize); 382Size dragImageIconSize = parentView.LogicalSizeToClient(AmbientTheme.DragImageIconSize); 605protected override bool OnPaintWorkflowAdornments(PaintEventArgs e, Rectangle viewPort, AmbientTheme ambientTheme) 674Rectangle descriptionRectangle = (description.Length > 0) ? new Rectangle(Point.Empty, new Size(AmbientTheme.DragImageTextSize.Width, parentView.Font.Height + 2)) : Rectangle.Empty; 676descriptionRectangle.Offset(imageRectangle.Width + AmbientTheme.DragImageMargins.Width, 0);
AuthoringOM\Design\MessageFilters\DragSelectionMessageFilter.cs (1)
114protected override bool OnPaint(PaintEventArgs e, Rectangle viewPort, AmbientTheme ambientTheme)
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (2)
297protected override bool OnPaintWorkflowAdornments(PaintEventArgs e, Rectangle viewPort, AmbientTheme ambientTheme) 634bitmap.MakeTransparent(AmbientTheme.TransparentColor);
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (3)
145protected override bool OnPaintWorkflowAdornments(PaintEventArgs eventArgs, Rectangle viewPort, AmbientTheme ambientTheme) 153protected override bool OnPaint(PaintEventArgs eventArgs, Rectangle viewPort, AmbientTheme ambientTheme) 226AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme;
AuthoringOM\Design\MessageFilters\GlyphManager.cs (1)
104protected abstract void OnPaint(Graphics graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer);
AuthoringOM\Design\MessageFilters\WindowManager.cs (2)
425newZoom = Math.Max(newZoom, AmbientTheme.MinZoom); 426newZoom = Math.Min(newZoom, AmbientTheme.MaxZoom);
AuthoringOM\Design\MessageFilters\WorkflowDesignerMessageFilter.cs (2)
139protected virtual bool OnPaint(PaintEventArgs eventArgs, Rectangle viewPort, AmbientTheme ambientTheme) 144protected virtual bool OnPaintWorkflowAdornments(PaintEventArgs eventArgs, Rectangle viewPort, AmbientTheme ambientTheme)
AuthoringOM\Design\MessageFilters\ZoomingMessageFilter.cs (4)
185parentView.Zoom = Math.Min(Math.Max(zoomLevel, AmbientTheme.MinZoom), AmbientTheme.MaxZoom); 199return ((this.currentState == ZoomState.Out && parentView.Zoom > AmbientTheme.MinZoom) || (this.currentState == ZoomState.In && parentView.Zoom < AmbientTheme.MaxZoom));
AuthoringOM\Design\SequentialActivityDesigner.cs (2)
519AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 563protected override void OnPaint(Graphics graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer)
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (1)
227AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme;
AuthoringOM\Design\Themes.cs (15)
670public AmbientTheme AmbientTheme 674return GetTheme(typeof(WorkflowView)) as AmbientTheme; 2764return AmbientTheme.MarginSizes[(int)this.designerStyle]; 2774return AmbientTheme.SelectionSizes[(int)this.designerStyle]; 2784return AmbientTheme.GlyphSizes[(int)this.designerStyle]; 2794return AmbientTheme.ScrollIndicatorSizes[(int)this.designerStyle]; 2804return AmbientTheme.DropIndicatorSizes[(int)this.designerStyle]; 2814return AmbientTheme.MagnifierSizes[(int)this.designerStyle]; 2824return ((this.drawShadow) ? AmbientTheme.DefaultShadowDepth : 0); 2834return AmbientTheme.GridSizes[(int)this.designerStyle]; 2844return AmbientTheme.BorderWidths[(int)ContainingTheme.AmbientTheme.DesignerSize]; 3069ArrayList supportedFonts = new ArrayList(AmbientTheme.SupportedFonts); 3092ArrayList supportedFonts = new ArrayList(AmbientTheme.SupportedFonts); 3114return AmbientTheme.FontSizes[(int)this.DesignerSize]; 3280return new TypeConverter.StandardValuesCollection(AmbientTheme.SupportedFonts);
AuthoringOM\Design\WorkflowLayouts.cs (11)
143graphics.FillRectangle(AmbientTheme.WorkspaceBackgroundBrush, workspaceRectangle); 174AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 178ActivityDesignerPaint.DrawImage(graphics, ambientTheme.WorkflowWatermarkImage, this.parentView.RootDesigner.Bounds, new Rectangle(Point.Empty, ambientTheme.WorkflowWatermarkImage.Size), ambientTheme.WatermarkAlignment, AmbientTheme.WatermarkTransparency, false); 260ActivityDesignerPaint.DrawDropShadow(graphics, rootBounds, AmbientTheme.WorkflowBorderPen.Color, AmbientTheme.DropShadowWidth, LightSourcePosition.Left | LightSourcePosition.Top, 0.2f, false); 263graphics.DrawRectangle(AmbientTheme.WorkflowBorderPen, rootBounds); 516AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 575ActivityDesignerPaint.DrawImage(graphics, ambientTheme.WorkflowWatermarkImage, viewPortBitmapArea, new Rectangle(Point.Empty, ambientTheme.WorkflowWatermarkImage.Size), ambientTheme.WatermarkAlignment, AmbientTheme.WatermarkTransparency, false); 590AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 597graphics.FillRectangle(AmbientTheme.WorkspaceBackgroundBrush, workspaceRectangle); 648ActivityDesignerPaint.DrawDropShadow(graphics, pageLayoutData.PageBounds, Color.Black, AmbientTheme.DropShadowWidth, LightSourcePosition.Left | LightSourcePosition.Top, 0.2f, false);
AuthoringOM\Design\WorkflowPrinting.cs (2)
110AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme; 138ActivityDesignerPaint.DrawImage(graphics, ambientTheme.WorkflowWatermarkImage, boundingRectangle, new Rectangle(Point.Empty, ambientTheme.WorkflowWatermarkImage.Size), ambientTheme.WatermarkAlignment, AmbientTheme.WatermarkTransparency, false);
AuthoringOM\Design\WorkflowView.cs (12)
62[ActivityDesignerTheme(typeof(AmbientTheme), Xml = WorkflowView.ThemeXml)] 341if (value < AmbientTheme.MinZoom || value > AmbientTheme.MaxZoom) 342throw new NotSupportedException(DR.GetString(DR.ZoomLevelException2, AmbientTheme.MinZoom, AmbientTheme.MaxZoom)); 422if (value < AmbientTheme.MinShadowDepth || value > AmbientTheme.MaxShadowDepth) 423throw new NotSupportedException(DR.GetString(DR.ShadowDepthException, AmbientTheme.MinShadowDepth, AmbientTheme.MaxShadowDepth)); 946Zoom = Math.Min(Math.Max(newZoom, AmbientTheme.MinZoom), AmbientTheme.MaxZoom); 1603AmbientTheme ambientTheme = WorkflowTheme.CurrentTheme.AmbientTheme;
System.WorkflowServices (1)
System\Workflow\ComponentModel\Design\HighlightOverlayGlyph.cs (1)
42protected override void OnPaint(Graphics graphics, bool activated, AmbientTheme ambientTheme, ActivityDesigner designer)