158 references to StateContainerEditor
System.Activities.Core.Presentation (158)
System\Activities\Core\Presentation\Factories\StateMachineWithInitialStateFactory.cs (1)
27DisplayName = StateContainerEditor.DefaultStateDisplayName + "1"
System\Activities\Core\Presentation\StateContainerEditor.CompositeView.cs (13)
28DependencyProperty.Register("DroppingTypeResolvingOptions", typeof(TypeResolvingOptions), typeof(StateContainerEditor)); 78StateContainerEditor parentDesigner = VisualTreeUtils.FindVisualAncestor<StateContainerEditor>(GetStateView(modelItem)); 125List<Connector> incomingConnectors = StateContainerEditor.GetIncomingConnectors(GetStateView(modelItem)); 128ModelItem transitionModelItem = StateContainerEditor.GetConnectorModelItem(connector); 130if (!StateContainerEditor.IsTransitionModelItemContainedByStateModelItems(transitionModelItem, selectedStateModelItems)) 141ModelItem connectorModelItem = StateContainerEditor.GetConnectorModelItem(connector); 151ModelItem connectorModelItem = StateContainerEditor.GetConnectorModelItem(connector); 154StateContainerEditor.GetParentStateModelItemForTransition(connectorModelItem).Properties[StateDesigner.TransitionsPropertyName].Collection.Add(connectorModelItem); 272StateContainerEditor container = (StateContainerEditor)DragDropHelper.GetCompositeView(view); 458void UpdateLocationViewStatesByMetaData(List<ModelItem> itemsPasted, List<object> metaData, StateContainerEditor container) 547ModelItem stateMachineModelItem = StateContainerEditor.GetStateMachineModelItem(this.ModelItem);
System\Activities\Core\Presentation\StateContainerEditor.ModelChanges.cs (8)
23ModelItem connectorModelItem = StateContainerEditor.GetConnectorModelItem(connector); 46ModelItemCollection transitions = StateContainerEditor.GetParentStateModelItemForTransition(connectorModelItem).Properties[StateDesigner.TransitionsPropertyName].Collection; 124Transition newTransition = new Transition() { DisplayName = StateContainerEditor.GenerateTransitionName(stateMachineModelItem) }; 130Transition existingTransition = StateContainerEditor.GetConnectorModelItem(connector).GetCurrentValue() as Transition; 139int srcConnectionPointIndex = StateContainerEditor.GetConnectionPoints(sourceConnPoint.ParentDesigner).IndexOf(sourceConnPoint); 140int destConnectionPointIndex = StateContainerEditor.GetConnectionPoints(destConnPoint.ParentDesigner).IndexOf(destConnPoint); 161refTransitionModelItem = StateContainerEditor.GetConnectorModelItem(referenceConnector); 284this.StoreConnectorLocationViewState(StateContainerEditor.GetConnectorModelItem(connector), connector.Points, isUndoableViewState);
System\Activities\Core\Presentation\StateContainerEditor.Utilities.cs (12)
27return (ModelItem)obj.GetValue(StateContainerEditor.ConnectorModelItemProperty); 32obj.SetValue(StateContainerEditor.ConnectorModelItemProperty, modelItem); 39return (List<ConnectionPoint>)obj.GetValue(StateContainerEditor.ConnectionPointsProperty); 45return (List<ConnectionPoint>)obj.GetValue(StateContainerEditor.ConnectionPointsProperty); 50obj.SetValue(StateContainerEditor.ConnectionPointsProperty, connectionPoints); 243List<ConnectionPoint> connectionPoints = StateContainerEditor.GetConnectionPoints(element); 249List<ConnectionPoint> connectionPoints = StateContainerEditor.GetConnectionPoints(element); 380List<ConnectionPoint> connectionPoints = StateContainerEditor.GetConnectionPoints(designer); 395srcConnectionPoint = GetClosestConnectionPointNotOfType(destConnectionPoint, StateContainerEditor.GetConnectionPoints(src), ConnectionPointKind.Incoming); 406destConnectionPoint = GetClosestConnectionPointNotOfType(sourceConnectionPoint, StateContainerEditor.GetConnectionPoints(dest), ConnectionPointKind.Outgoing); 414List<Connector> connectors = StateContainerEditor.GetOutgoingConnectors(sourceDesigner); 417ModelItem modelItem = StateContainerEditor.GetConnectorModelItem(connector);
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (93)
81StateContainerEditor stateMachineContainerEditor = null; 137typeof(StateContainerEditor), 143typeof(StateContainerEditor), 149typeof(StateContainerEditor), 155typeof(StateContainerEditor), 161typeof(StateContainerEditor), 167typeof(StateContainerEditor), 173typeof(StateContainerEditor), 178typeof(bool), typeof(StateContainerEditor), 183typeof(bool), typeof(StateContainerEditor), 207this.StateMachineModelItem = StateContainerEditor.GetStateMachineModelItem(this.ModelItem); 298get { return (double)this.GetValue(StateContainerEditor.StateContainerWidthProperty); } 299set { this.SetValue(StateContainerEditor.StateContainerWidthProperty, value); } 304get { return (double)this.GetValue(StateContainerEditor.StateContainerHeightProperty); } 305set { this.SetValue(StateContainerEditor.StateContainerHeightProperty, value); } 310get { return (double)this.GetValue(StateContainerEditor.PanelMinWidthProperty); } 311set { this.SetValue(StateContainerEditor.PanelMinWidthProperty, value); } 316get { return (double)this.GetValue(StateContainerEditor.PanelMinHeightProperty); } 317set { this.SetValue(StateContainerEditor.PanelMinHeightProperty, value); } 484object locationOfShape = this.ViewStateService.RetrieveViewState(this.ModelItem, StateContainerEditor.ShapeLocationViewStateKey); 506List<Connector> attachedConnectors = StateContainerEditor.GetAttachedConnectors(this.initialNode); 509ConnectionPoint sourceConnectionPoint = StateContainerEditor.GetConnectionPointClosestToEdgeMidPoint( 511StateContainerEditor.GetEmptyConnectionPoints(this.initialNode), 534ConnectionPoint destinationConnectionPoint = StateContainerEditor.GetConnectionPointClosestToEdgeMidPoint( 536StateContainerEditor.GetEmptyConnectionPoints(initialStateView), 629ModelItem stateModelItem = StateContainerEditor.GetModelItemFromView(view); 633stateMachineModelItem = StateContainerEditor.GetStateMachineModelItem(stateModelItem); 652StateContainerEditor stateMachineEditor = this.GetStateMachineContainerEditor(); 697object locationOfShape = this.ViewStateService.RetrieveViewState(modelItem, StateContainerEditor.ShapeLocationViewStateKey); 710ModelItem sourceState = StateContainerEditor.GetParentStateModelItemForTransition(transitionModelItem); 770StateContainerEditor.SetConnectorModelItem(connector, connectorModelItem); 777int srcConnectionPointIndex = StateContainerEditor.GetConnectionPoints(srcConnPoint.ParentDesigner).IndexOf(srcConnPoint); 778int destConnectionPointIndex = StateContainerEditor.GetConnectionPoints(destConnPoint.ParentDesigner).IndexOf(destConnPoint); 848srcConnPoint = StateContainerEditor.GetSrcConnectionPointForSharedTrigger(source, connectorModelItem); 875StateContainerEditor.GetEmptySrcDestConnectionPoints(source, dest, out srcConnPoint, out destConnPoint); 883srcConnPoint = StateContainerEditor.GetClosestConnectionPointNotOfType(destConnPoint, srcConnectionPoints, ConnectionPointKind.Incoming); 892destConnPoint = StateContainerEditor.GetClosestConnectionPointNotOfType(srcConnPoint, destConnectionPoints, ConnectionPointKind.Outgoing); 925destinationConnectionPoint = StateContainerEditor.GetConnectionPointClosestToEdgeMidPoint(destinationDesigner, StateContainerEditor.GetEmptyConnectionPoints(destinationDesigner), this.entryEdgeForAutoSplit); 936sourceConnectionPoint = StateContainerEditor.GetSrcConnectionPointForSharedTrigger(sourceDesigner, connectorModelItem); 944sourceConnectionPoint = StateContainerEditor.GetConnectionPointClosestToEdgeMidPoint(sourceDesigner, StateContainerEditor.GetEmptyConnectionPoints(sourceDesigner), this.exitEdgeForAutoSplit); 949destinationConnectionPoint = StateContainerEditor.GetClosestDestConnectionPoint(sourceConnectionPoint, destinationDesigner); 953sourceConnectionPoint = StateContainerEditor.GetClosestSrcConnectionPoint(sourceDesigner, destinationConnectionPoint); 957StateContainerEditor.GetEmptySrcDestConnectionPoints(sourceDesigner, destinationDesigner, out sourceConnectionPoint, out destinationConnectionPoint); 1007StateContainerEditor stateMachineContainer = this.GetStateMachineContainerEditor(); 1087StateContainerEditor.SetConnectionPoints(view, connectionPoints); 1102if ((StateContainerEditor.GetOutgoingConnectors(element).Count > 0) && !this.IsMovingStartOfConnectorFromInitialNode()) 1123List<ConnectionPoint> connectionPoints = StateContainerEditor.GetConnectionPoints(element); 1160List<ConnectionPoint> connectionPoints = new List<ConnectionPoint>(StateContainerEditor.GetConnectionPoints(designer)); 1277StateContainerEditor stateMachineContainer = this.GetStateMachineContainerEditor(); 1298StateContainerEditor parentContainer = VisualTreeUtils.FindVisualAncestor<StateContainerEditor>(stateDesigner); 1357if (object.Equals(primarySelection, StateContainerEditor.GetConnectorModelItem(sender as DependencyObject))) 1393ModelItem connectorModelItem = StateContainerEditor.GetConnectorModelItem(connector); 1408ModelItem sourceState = StateContainerEditor.GetParentStateModelItemForTransition(connectorModelItem); 1433this.DesignerView.MakeRootDesigner(StateContainerEditor.GetConnectorModelItem(sender as DependencyObject)); 1442ModelItem connectorModelItem = StateContainerEditor.GetConnectorModelItem(sender as DependencyObject); 1495StateContainerEditor.ReportConnectorCreationError(result); 1523ModelItem connectorModelItem = StateContainerEditor.GetConnectorModelItem(movedConnector); 1558newConnectionPoint = StateContainerEditor.ConnectionPointHitTest(this.lastConnectionPointMouseUpElement, newPoint); 1596if (!(newViewElement is StateDesigner && StateContainerEditor.IsConnectorFromInitialNode(movedConnector))) 1615StateContainerEditor.ReportConnectorCreationError(result); 1669StateContainerEditor.StateContainerWidthViewStateKey, 1676StateContainerEditor.StateContainerHeightViewStateKey, 1747StateContainerEditor.ReportConnectorCreationError(result); 1779this.StoreConnectorLocationViewState(StateContainerEditor.GetConnectorModelItem(connector), points, true); 1800List<Connector> connectors = StateContainerEditor.GetIncomingConnectors(view); 1805connectors = StateContainerEditor.GetOutgoingConnectors(view); 1818containedTransitions.Add(StateContainerEditor.GetConnectorModelItem(connector)); 1850nonSelfTransitions.Add(StateContainerEditor.GetConnectorModelItem(connector)); 1855nonSelfTransitions.Add(StateContainerEditor.GetConnectorModelItem(connector)); 1907StateContainerEditor srcContainer = droppedModelItem != null 1908? DragDropHelper.GetCompositeView(droppedModelItem.View as WorkflowViewElement) as StateContainerEditor 1977shapeLocation = StateContainerEditor.SnapVisualToGrid(view, e.GetPosition(this.panel), anchorPoint, isAnchorPointValid); 2073else if (modelItem.ItemType == typeof(State) && this.IsStateMachineContainer && StateContainerEditor.AreInSameStateMachine(modelItem, this.ModelItem)) 2134ModelItem connectorModelItem = StateContainerEditor.GetConnectorModelItem(this.selectedConnector); 2179internal StateContainerEditor GetStateMachineContainerEditor() 2190return VisualTreeUtils.FindVisualAncestor<StateContainerEditor>(panel); 2196StateContainerEditor stateMachineContainer = this.GetStateMachineContainerEditor(); 2202if (StateContainerEditor.GetConnectorModelItem(connector) == connectorModelItem) 2213StateContainerEditor stateMachineContainer = this.GetStateMachineContainerEditor(); 2219StateContainerEditor stateMachineContainer = this.GetStateMachineContainerEditor(); 2228StateContainerEditor stateMachineContainer = this.GetStateMachineContainerEditor(); 2236StateContainerEditor stateMachineContainer = this.GetStateMachineContainerEditor(); 2373DisplayName = StateContainerEditor.GenerateTransitionName(stateMachineModelItem), 2412if (StateContainerEditor.GetEmptyConnectionPoints(targetElement).Count < 1) 2437if ((draggedModelItems.Count<ModelItem>() == 1 && StateContainerEditor.IsFinalState(draggedModelItems.First<ModelItem>())) 2528StateContainerEditor editor = designer.StateContainerEditor; 2592if (StateContainerEditor.GetAttachedConnectors(this.modelItemToUIElement[draggedModelItem]).Count > 0) 2597if (StateContainerEditor.IsFinalState(draggedModelItem)) 2624ModelItem oldConnectorModelItem = StateContainerEditor.GetConnectorModelItem(connector); 2634DisplayName = StateContainerEditor.GenerateTransitionName(stateMachineModelItem),
System\Activities\Core\Presentation\StateContainerResizeGrip.cs (6)
26DependencyProperty.Register("ParentStateContainerEditor", typeof(StateContainerEditor), typeof(StateContainerResizeGrip)); 44public StateContainerEditor ParentStateContainerEditor 46get { return (StateContainerEditor)GetValue(ParentStateContainerEditorProperty); } 130StateContainerEditor stateContainerEditor = this.ParentStateContainerEditor; 148viewStateService.StoreViewStateWithUndo(stateContainerModelItem, StateContainerEditor.StateContainerWidthViewStateKey, this.ParentStateContainerEditor.StateContainerWidth); 149viewStateService.StoreViewStateWithUndo(stateContainerModelItem, StateContainerEditor.StateContainerHeightViewStateKey, this.ParentStateContainerEditor.StateContainerHeight);
System\Activities\Core\Presentation\StateDesigner.xaml.cs (12)
81if (StateContainerEditor.IsFinalState(modelItem) && icons.Contains("FinalStateIcon")) 134ModelItem stateMachineModelItem = StateContainerEditor.GetStateMachineModelItem(this.ModelItem); 137!this.IsRootDesigner && StateContainerEditor.GetEmptyConnectionPoints(this).Count > 0); 143ModelItem stateMachineModelItem = StateContainerEditor.GetStateMachineModelItem(this.ModelItem); 147this.ViewStateService.RemoveViewState(stateMachineModelItem, StateContainerEditor.ConnectorLocationViewStateKey); 166return StateContainerEditor.IsFinalState(this.ModelItem); 225StateContainerEditor stateContainerEditor = (StateContainerEditor)sender; 227if (StateContainerEditor.CopiedTransitionDestinationState != null) 232StateContainerEditor container = (StateContainerEditor)DragDropHelper.GetCompositeView(view); 234if (container != null && container.CanPasteTransition(StateContainerEditor.CopiedTransitionDestinationState, out errorMessage, view.ModelItem))
System\Activities\Core\Presentation\StateMachineDesigner.xaml.cs (3)
25StateContainerEditor stateContainerEditor = null; 34internal StateContainerEditor StateContainerEditor 41this.stateContainerEditor = sender as StateContainerEditor;
System\Activities\Core\Presentation\TransitionDesigner.xaml.cs (10)
39const int TotalFreeConnectionPointNum = StateContainerEditor.ConnectionPointNum * 4; 60this.parentStateModelItem = StateContainerEditor.GetParentStateModelItemForTransition(this.ModelItem); 164PointCollection thisPointCollection = this.ViewStateService.RetrieveViewState(this.ModelItem, StateContainerEditor.ConnectorLocationViewStateKey) as PointCollection; 171PointCollection pointCollection = this.ViewStateService.RetrieveViewState(transitionModelItem, StateContainerEditor.ConnectorLocationViewStateKey) as PointCollection; 294ModelItem sourceState = StateContainerEditor.GetParentStateModelItemForTransition(this.ModelItem); 430ModelItem stateMachineModelItem = StateContainerEditor.GetStateMachineModelItem(this.parentStateModelItem); 456DisplayName = StateContainerEditor.GenerateTransitionName(stateMachineModelItem), 464PointCollection thisPointCollection = this.ViewStateService.RetrieveViewState(this.ModelItem, StateContainerEditor.ConnectorLocationViewStateKey) as PointCollection; 478this.ViewStateService.StoreViewState(newTransitionItem, StateContainerEditor.ConnectorLocationViewStateKey, newTransitionViewState); 491ModelItem stateMachineModelItem = StateContainerEditor.GetStateMachineModelItem(this.parentStateModelItem);