1 instantiation of StateMachine
System.Activities.Core.Presentation (1)
System\Activities\Core\Presentation\Factories\StateMachineWithInitialStateFactory.cs (1)
29return new StateMachine()
31 references to StateMachine
System.Activities.Core.Presentation (31)
System\Activities\Core\Presentation\StateContainerEditor.CompositeView.cs (3)
373(this.ModelItem.ItemType == typeof(StateMachine)) ? 385Fx.Assert(this.ModelItem.ItemType == typeof(StateMachine), "Only StateMachine contain the StateContainerEditor."); 541if (this.ModelItem.ItemType == typeof(StateMachine))
System\Activities\Core\Presentation\StateContainerEditor.ModelChangeReactions.cs (4)
111Fx.Assert(this.ModelItem.ItemType == typeof(StateMachine), "Only StateMachine should have initial state"); 221Fx.Assert(this.ModelItem.ItemType == typeof(StateMachine), "Only StateMachine should have initial state"); 268if ((e.ParentModelItem.ItemType == typeof(State) || (e.ParentModelItem.ItemType == typeof(StateMachine) && e.ParentModelItem == this.ModelItem)) && 272if (modelItem.ItemType == typeof(StateMachine))
System\Activities\Core\Presentation\StateContainerEditor.ModelChanges.cs (5)
52else if (connectorModelItem.ItemType == typeof(StateMachine)) 69Fx.Assert(this.ModelItem.ItemType == typeof(StateMachine), "Should only delete states with StateMachine."); 73this.ModelItem.ItemType == typeof(StateMachine) && 293Fx.Assert(this.ModelItem.ItemType == typeof(StateMachine), "Should only drop state with StateMachine."); 318if (modelItem.ItemType == typeof(State) || modelItem.ItemType == typeof(StateMachine))
System\Activities\Core\Presentation\StateContainerEditor.Utilities.cs (3)
263while (currentModelItem != null && currentModelItem.ItemType != typeof(StateMachine)) 517return GetConnectorModelItem(connector).ItemType == typeof(StateMachine); 522Fx.Assert(stateMachineModelItem.ItemType == typeof(StateMachine), "ModelItem param should be a statemachine.");
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (9)
371if (this.ModelItem.ItemType == typeof(StateMachine)) 411if (this.ModelItem.ItemType == typeof(StateMachine)) 435if (this.ModelItem.ItemType == typeof(StateMachine)) 505Fx.Assert(this.ModelItem.ItemType == typeof(StateMachine), "Only StateMachine should have initial state."); 1921if (droppedModelItem.ItemType == typeof(State) && this.ModelItem.ItemType == typeof(StateMachine)) 2086else if (this.ModelItem.ItemType == typeof(StateMachine) && DragDropHelper.AllowDrop(e.Data, this.Context, typeof(State), typeof(FinalState), typeof(StartNode))) 2181if (this.ModelItem.ItemType == typeof(StateMachine)) 2308return parent != null && parent.ModelItem != null && (parent.ModelItem.ItemType == typeof(StateMachine) && parent.ShowExpanded || 2428if (targetElement is StartSymbol && this.ModelItem.ItemType == typeof(StateMachine))
System\Activities\Core\Presentation\StateContainerResizeGrip.cs (1)
66if (stateContainerModelItem.ItemType == typeof(StateMachine))
System\Activities\Core\Presentation\StateMachineDesigner.xaml.cs (1)
51Type stateMachineType = typeof(StateMachine);
System\Activities\Core\Presentation\StateMachineValidationErrorSourceLocator.cs (5)
22return FindRelativePath((StateMachine)errorSource, errorSourceDetail); 31StateMachine stateMachine = (StateMachine)parentActivity; 63private static List<object> FindRelativePath(StateMachine machine, object descendent) 70private static List<object> FindDescendentFromStateMachine(StateMachine machine, object descendent)