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