2 writes to panel
System.Activities.Core.Presentation (2)
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (2)
293
this.
panel
= null;
306
this.
panel
= (FreeFormPanel)sender;
88 references to panel
System.Activities.Core.Presentation (88)
System\Activities\Core\Presentation\FlowchartDesigner.Container.cs (5)
43
Fx.Assert(this.
panel
!= null, "This code shouldn't be hit if panel is null");
100
Fx.Assert(this.
panel
!= null, "This code shouldn't be hit if panel is null");
269
Fx.Assert(this.
panel
!= null, "This code shouldn't be hit if panel is null");
325
Point panelPoint = this.TranslatePoint(pastePoint, this.
panel
);
330
panelPoint = pastePointReference.TranslatePoint(pastePoint, this.
panel
);
System\Activities\Core\Presentation\FlowchartDesigner.Helpers.cs (1)
209
return FreeFormPanel.ConnectionPointHitTest(hitPoint, connectionPoints, this.
panel
);
System\Activities\Core\Presentation\FlowchartDesigner.ModelChangeReactions.cs (18)
59
Point startPoint = new Point(
panel
.MinWidth / 2, startSymbolTopMargin + startHeight / 2);
90
Fx.Assert(this.
panel
!= null, "This code should not be hit if panel is null");
114
this.
panel
.InvalidateMeasure();
175
this.
panel
.RemoveConnectorEditor();
176
this.
panel
.InvalidateMeasure();
208
Fx.Assert(this.
panel
!= null, "This code should not be hit if panel is null");
262
this.
panel
.Children.Add(connector);
306
this.
panel
.Children.Add(connector);
338
this.
panel
.Children.Add(link);
369
this.
panel
.Children.Add(newConnector);
390
else if (!this.
panel
.Children.Contains(this.modelElement[itemOnCanvas]))
498
panel
.Children.Add(this.StartSymbol);
503
panel
.Children.Add(view);
548
panel
.Children.Add(connector);
560
this.
panel
.Children.Remove(link);
572
Fx.Assert(this.
panel
.Children.Contains(connector), "Connector does not exist");
580
RemoveAdorner(this.
panel
, typeof(ConnectorCreationAdorner));
591
this.
panel
.Children.Remove(deleteShape);
System\Activities\Core\Presentation\FlowchartDesigner.ModelChanges.cs (2)
136
PointCollection connectorViewState = new PointCollection(ConnectorRouter.Route(this.
panel
, sourceConnPoint, destConnPoint));
278
Fx.Assert(this.
panel
!= null, "This code should not be hit if panel is null");
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (61)
281
this.
panel
.Children.Clear();
289
this.
panel
.LocationChanged -= new LocationChangedEventHandler(OnFreeFormPanelLocationChanged);
290
this.
panel
.ConnectorMoved -= new ConnectorMovedEventHandler(OnFreeFormPanelConnectorMoved);
291
this.
panel
.LayoutUpdated -= new EventHandler(OnFreeFormPanelLayoutUpdated);
292
this.
panel
.RequiredSizeChanged -= new RequiredSizeChangedEventHandler(OnFreeFormPanelRequiredSizeChanged);
302
if (this.
panel
!= null)
315
if (object.Equals(sender, this.
panel
))
324
Fx.Assert(this.
panel
!= null, "panel cannot be null");
325
this.
panel
.LocationChanged += new LocationChangedEventHandler(OnFreeFormPanelLocationChanged);
326
this.
panel
.ConnectorMoved += new ConnectorMovedEventHandler(OnFreeFormPanelConnectorMoved);
327
this.
panel
.LayoutUpdated += new EventHandler(OnFreeFormPanelLayoutUpdated);
328
this.
panel
.RequiredSizeChanged += new RequiredSizeChangedEventHandler(OnFreeFormPanelRequiredSizeChanged);
337
panel
.Children.Clear();
354
if (!this.
panel
.Children.Contains(this.selectedConnector))
453
RemoveAdorner(this.
panel
, typeof(ConnectorCreationAdorner));
463
Point[] points = ConnectorRouter.Route(this.
panel
, this.srcConnectionPoint, e);
471
RemoveAdorner(this.
panel
, typeof(ConnectorCreationAdorner));
475
ConnectorCreationAdorner newAdorner = new ConnectorCreationAdorner(this.
panel
, segments);
486
RemoveAdorner(this.
panel
, typeof(ConnectorCreationAdorner));
520
Fx.Assert(this.
panel
!= null, "This code should not be hit if panel is null");
550
if (this.srcConnectionPoint != null || (this.
panel
.connectorEditor != null && this.
panel
.connectorEditor.IsConnectorEndBeingMoved))
571
if (this.
panel
.connectorEditor != null && this.
panel
.connectorEditor.IsConnectorStartBeingMoved)
574
outGoingConnectors.Remove(this.
panel
.connectorEditor.Connector);
595
if (this.
panel
.connectorEditor != null && this.
panel
.connectorEditor.IsConnectorStartBeingMoved)
597
outGoingConnectors.Remove(this.
panel
.connectorEditor.Connector);
630
Fx.Assert(this.
panel
!= null, "This code should not be hit if panel is null");
645
Fx.Assert(this.
panel
!= null, "This code should not be hit if panel is null");
664
this.srcConnectionPoint = ConnectionPointHitTest(srcElement, e.GetPosition(this.
panel
));
670
Fx.Assert(this.
panel
!= null, "This code should not be hit if panel is null");
678
Fx.Assert(this.
panel
!= null, "This code should not be hit if panel is null");
683
ConnectionPoint destConnectionPoint = ConnectionPointHitTest(dest, e.GetPosition(this.
panel
));
693
RemoveAdorner(this.
panel
, typeof(ConnectorCreationAdorner));
732
Fx.Assert(this.
panel
!= null, "This code should not be hit if panel is null");
767
Fx.Assert(this.
panel
!= null, "This code should not be hit if panel is null");
768
HitTestResult hitTestResult = VisualTreeHelper.HitTest(this.
panel
, newPoint);
797
if (this.
panel
.Children.Contains(newViewElement))
850
Fx.Assert(this.
panel
!= null, "This code should not be hit if panel is null");
896
Fx.Assert(this.
panel
!= null, "This code should not be hit if panel is null");
978
Fx.Assert(this.
panel
!= null, "This code should not be hit if panel is null");
1072
if (this.
panel
.connectorEditor == null || !clickedLine.Equals(this.
panel
.connectorEditor.Connector))
1074
this.
panel
.RemoveConnectorEditor();
1075
this.
panel
.connectorEditor = new ConnectorEditor(this.
panel
, clickedLine);
1078
if (this.
panel
.Children.Contains(clickedLine))
1100
if (!this.updatingSelectedConnector && this.
panel
!= null && this.
panel
.connectorEditor != null)
1102
this.
panel
.RemoveConnectorEditor();
1214
Fx.Assert(this.
panel
!= null, "This code should not be hit if panel is null");
1516
PointCollection viewState = new PointCollection(ConnectorRouter.Route(this.
panel
, source, destination));
1582
PerformInternalMove(modelElement[droppedModelItem], e.GetPosition(this.
panel
), anchorPoint, autoConnectDirection, connectorToSplit);
1688
e.GetPosition(this.
panel
),
1758
return AutoConnectHelper.CalculateDropLocation(droppedSize, this.
panel
.CurrentAutoConnectTarget, autoConnectDirection, this.shapeLocations);
2043
if (destElement != null && this.
panel
.Children.Contains(destElement))
2053
RemoveAdorner(this.
panel
, typeof(ConnectorCreationAdorner));
2519
AutoSplitHelper.CalculateEntryExitEdges(e.GetPosition(this.
panel
),
2582
if (this.
panel
.Children.Contains(view))
2584
this.
panel
.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity));
System\Activities\Core\Presentation\FlowchartResizeGrip.cs (1)
83
FreeFormPanel panel = flowchartDesigner.
panel
;