43 references to ViewPortSize
System.Workflow.Activities (2)
Designers\StateMachineWorkflowDesigner.cs (2)
85
minimumSize.Width = Math.Max(minimumSize.Width, ParentView.
ViewPortSize
.Width - StateDesigner.Separator.Width * 2);
86
minimumSize.Height = Math.Max(minimumSize.Height, ParentView.
ViewPortSize
.Height - StateDesigner.Separator.Height * 2);
System.Workflow.ComponentModel (39)
AuthoringOM\Design\CommandSet.cs (2)
289
int newZoom = (int)(100.0f / this.workflowView.ActiveLayout.Scaling * Math.Min((float)this.workflowView.
ViewPortSize
.Width / (float)this.workflowView.ActiveLayout.Extent.Width, (float)this.workflowView.
ViewPortSize
.Height / (float)this.workflowView.ActiveLayout.Extent.Height));
AuthoringOM\Design\FreeFormDesigner.cs (2)
253
minimumSize.Width = Math.Max(minimumSize.Width, workflowView.
ViewPortSize
.Width - 2 * WorkflowRootLayout.Separator.Width);
254
minimumSize.Height = Math.Max(minimumSize.Height, workflowView.
ViewPortSize
.Height - 2 * WorkflowRootLayout.Separator.Height);
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (4)
112
Rectangle clientRectangle = new Rectangle(Point.Empty, ParentView.
ViewPortSize
);
141
Size viewPortSize = ParentView.
ViewPortSize
;
153
Rectangle clientRectangle = new Rectangle(Point.Empty, ParentView.
ViewPortSize
);
208
Size viewPortSize = parentView.
ViewPortSize
;
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (1)
321
Rectangle bounds = new Rectangle(Point.Empty, ParentView.
ViewPortSize
);
AuthoringOM\Design\MessageFilters\GlyphManager.cs (1)
338
ActivityDesigner[] containedDesigners = GetActivityDesigners(parentView.ClientRectangleToLogical(new Rectangle(Point.Empty, parentView.
ViewPortSize
)));
AuthoringOM\Design\MessageFilters\ZoomingMessageFilter.cs (4)
119
Point center = new Point((this.currentState == ZoomState.In) ? eventArgs.X : parentView.
ViewPortSize
.Width / 2, (this.currentState == ZoomState.In) ? eventArgs.Y : parentView.
ViewPortSize
.Height / 2);
171
int zoom = (int)(Math.Min((float)parentView.
ViewPortSize
.Width / (float)dragRectangle.Width, (float)parentView.
ViewPortSize
.Height / (float)dragRectangle.Height) * 100.0f);
AuthoringOM\Design\SequentialActivityDesigner.cs (1)
518
Rectangle logicalViewPort = parentView.ClientRectangleToLogical(new Rectangle(Point.Empty, parentView.
ViewPortSize
));
AuthoringOM\Design\SequentialWorkflowRootDesigner.cs (2)
98
minimumSize.Width = Math.Max(minimumSize.Width, ParentView.
ViewPortSize
.Width - 2 * WorkflowRootLayout.Separator.Width);
99
minimumSize.Height = Math.Max(minimumSize.Height, ParentView.
ViewPortSize
.Height - 2 * WorkflowRootLayout.Separator.Height);
AuthoringOM\Design\WorkflowLayouts.cs (3)
87
Size clientSize = this.parentView.
ViewPortSize
;
218
Size clientSize = this.parentView.
ViewPortSize
;
320
Size totalSize = this.parentView.ClientSizeToLogical(this.parentView.
ViewPortSize
);
AuthoringOM\Design\WorkflowView.cs (19)
437
return new Rectangle(ScrollPosition,
ViewPortSize
);
943
if (HScrollBar.Maximum >
ViewPortSize
.Width || VScrollBar.Maximum >
ViewPortSize
.Height)
945
int newZoom = (int)(100.0f / ActiveLayout.Scaling * Math.Min((float)
ViewPortSize
.Width / (float)ActiveLayout.Extent.Width, (float)
ViewPortSize
.Height / (float)ActiveLayout.Extent.Height));
1029
bool takeWorkflowSnapShot = (this.viewPortBitmap == null || this.viewPortBitmap.Size !=
ViewPortSize
);
1034
this.viewPortBitmap = new Bitmap(Math.Max(1,
ViewPortSize
.Width), Math.Max(1,
ViewPortSize
.Height), e.Graphics);
1039
viewPortData.LogicalViewPort = ClientRectangleToLogical(new Rectangle(Point.Empty,
ViewPortSize
));
1044
viewPortData.ViewPortSize =
ViewPortSize
;
1737
Rectangle clientRectangle = ClientRectangleToLogical(new Rectangle(Point.Empty,
ViewPortSize
));
1793
if (
ViewPortSize
.Width < 0 ||
ViewPortSize
.Height < 0)
1796
Size currentSize =
ViewPortSize
;
1863
if (HScrollBar.Maximum >
ViewPortSize
.Width || VScrollBar.Maximum >
ViewPortSize
.Height)
1891
if (HScrollBar.Maximum >
ViewPortSize
.Width || VScrollBar.Maximum >
ViewPortSize
.Height)
2263
return new Rectangle(this.workflowView.PointToScreen(Point.Empty), this.workflowView.
ViewPortSize
);
System.WorkflowServices (2)
System\Workflow\ComponentModel\Design\ActivityDesignerHighlighter.cs (2)
100
Size viewSize = workflowView.ClientSizeToLogical(workflowView.
ViewPortSize
);
122
Size viewSize = workflowView.ClientSizeToLogical(workflowView.
ViewPortSize
);