30 references to ZoomState
System.Workflow.ComponentModel (30)
AuthoringOM\Design\MessageFilters\ZoomingMessageFilter.cs (30)
20
private
ZoomState
initialState =
ZoomState
.In; //which tool to show by default
21
private
ZoomState
currentState =
ZoomState
.In; //current tool
29
this.currentState = this.initialState = (initiateZoomIn) ?
ZoomState
.In :
ZoomState
.Out;
82
this.currentState = ((Control.ModifierKeys & Keys.Shift) != 0) ? ((this.initialState ==
ZoomState
.In) ?
ZoomState
.Out :
ZoomState
.In) : this.initialState;
118
int zoom = parentView.Zoom + ((this.currentState ==
ZoomState
.In) ? ZoomingMessageFilter.ZoomIncrement : (-1 * ZoomingMessageFilter.ZoomIncrement));
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);
134
this.currentState = ((eventArgs.Modifiers & Keys.Shift) != 0) ? ((this.initialState ==
ZoomState
.In) ?
ZoomState
.Out :
ZoomState
.In) : this.initialState;
142
this.currentState = ((eventArgs.Modifiers & Keys.Shift) != 0) ? ((this.initialState ==
ZoomState
.In) ?
ZoomState
.Out :
ZoomState
.In) : this.initialState;
159
return (this.initialState ==
ZoomState
.In);
165
Debug.Assert(this.currentState ==
ZoomState
.In && CanContinueZooming && this.fastZoomingMessageFilter != null);
166
if (CanContinueZooming && this.currentState ==
ZoomState
.In && this.fastZoomingMessageFilter != null && !this.fastZoomingMessageFilter.DragRectangle.IsEmpty)
190
this.currentState = ((Control.ModifierKeys & Keys.Shift) != 0) ? ((this.initialState ==
ZoomState
.In) ?
ZoomState
.Out :
ZoomState
.In) : this.initialState;
199
return ((this.currentState ==
ZoomState
.Out && parentView.Zoom > AmbientTheme.MinZoom) || (this.currentState ==
ZoomState
.In && parentView.Zoom < AmbientTheme.MaxZoom));
244
else if (this.currentState ==
ZoomState
.In)
250
if (this.fastZoomingMessageFilter == null && CanContinueZooming && this.currentState ==
ZoomState
.In)
256
else if (this.fastZoomingMessageFilter != null && (!CanContinueZooming || this.currentState !=
ZoomState
.In))
271
menuCommand.Checked = (menuCommand.CommandID == ((this.initialState ==
ZoomState
.In) ? WorkflowMenuCommands.ZoomIn : WorkflowMenuCommands.ZoomOut));