44 references to StateMachineDesigner
System.Activities.Core.Presentation (44)
System\Activities\Core\Presentation\DesignerMetadata.cs (1)
101StateMachineDesigner.RegisterMetadata(builder);
System\Activities\Core\Presentation\StateContainerEditor.CompositeView.cs (6)
374this.ModelItem.Properties[StateMachineDesigner.StatesPropertyName].Collection.Add(state) : 375GetStateMachineModelItem(this.ModelItem).Properties[StateMachineDesigner.StatesPropertyName].Collection.Add(state); 427DragDropHelper.ValidateItemsAreOnView(selectedItems, this.ModelItem.Properties[StateMachineDesigner.StatesPropertyName].Collection); 438DragDropHelper.ValidateItemsAreOnView(movedItems, this.ModelItem.Properties[StateMachineDesigner.StatesPropertyName].Collection); 548StateMachineDesigner designer = stateMachineModelItem.View as StateMachineDesigner;
System\Activities\Core\Presentation\StateContainerEditor.ModelChangeReactions.cs (2)
109if (e.PropertyName == StateMachineDesigner.InitialStatePropertyName) 230ModelItem initialStateModelItem = this.ModelItem.Properties[StateMachineDesigner.InitialStatePropertyName].Value;
System\Activities\Core\Presentation\StateContainerEditor.ModelChanges.cs (6)
56connectorModelItem.Properties[StateMachineDesigner.InitialStatePropertyName].SetValue(null); 71this.ModelItem.Properties[StateMachineDesigner.StatesPropertyName].Collection.Remove(stateModelItem); 74stateModelItem == this.ModelItem.Properties[StateMachineDesigner.InitialStatePropertyName].Value) 76this.ModelItem.Properties[StateMachineDesigner.InitialStatePropertyName].SetValue(null); 190this.StateMachineModelItem.Properties[StateMachineDesigner.InitialStatePropertyName].SetValue(stateModelItem); 297droppedModelItem = this.ModelItem.Properties[StateMachineDesigner.StatesPropertyName].Collection.Add(droppedObject);
System\Activities\Core\Presentation\StateContainerEditor.Utilities.cs (3)
288if (parent.View is StateMachineDesigner) 290return ((StateMachineDesigner)parent.View).StateContainerEditor.modelItemToUIElement[stateModelItem]; 525foreach (ModelItem stateModelItem in stateMachineModelItem.Properties[StateMachineDesigner.StatesPropertyName].Collection)
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (11)
375this.ModelItem.Properties[StateMachineDesigner.StatesPropertyName].Collection.CollectionChanged += new NotifyCollectionChangedEventHandler(OnStateCollectionChanged); 380foreach (ModelItem modelItem in this.ModelItem.Properties[StateMachineDesigner.StatesPropertyName].Collection) 414this.AddStateVisuals(this.ModelItem.Properties[StateMachineDesigner.StatesPropertyName].Collection); 438this.ModelItem.Properties[StateMachineDesigner.StatesPropertyName].Collection.CollectionChanged -= new NotifyCollectionChangedEventHandler(OnStateCollectionChanged); 443foreach (ModelItem modelItem in this.ModelItem.Properties[StateMachineDesigner.StatesPropertyName].Collection) 635if (stateMachineModelItem.Properties[StateMachineDesigner.InitialStatePropertyName].Value == stateModelItem) 2163foreach (ModelItem stateModelItem in this.ModelItem.Properties[StateMachineDesigner.StatesPropertyName].Collection) 2398this.ModelItem.Properties[StateMachineDesigner.InitialStatePropertyName].SetValue(droppedModelItem); 2430if (this.ModelItem.Properties[StateMachineDesigner.InitialStatePropertyName].Value != null) 2526StateMachineDesigner designer = this.StateMachine.View as StateMachineDesigner;
System\Activities\Core\Presentation\StateContainerResizeGrip.cs (4)
115StateMachineDesigner stateMachineDesigner = VisualTreeUtils.FindVisualAncestor<StateMachineDesigner>(this.ParentStateContainerEditor); 152StateMachineDesigner stateMachineDesigner = VisualTreeUtils.FindVisualAncestor<StateMachineDesigner>(this.ParentStateContainerEditor);
System\Activities\Core\Presentation\StateDesigner.xaml.cs (3)
135e.CanExecute = (!this.IsReadOnly && stateMachineModelItem != null && this.ModelItem != stateMachineModelItem.Properties[StateMachineDesigner.InitialStatePropertyName].Value && 148stateMachineModelItem.Properties[StateMachineDesigner.InitialStatePropertyName].SetValue(this.ModelItem.GetCurrentValue()); 180else if (parent is StateMachineDesigner)
System\Activities\Core\Presentation\StateMachineDesigner.xaml.cs (6)
52builder.AddCustomAttributes(stateMachineType, new DesignerAttribute(typeof(StateMachineDesigner))); 53builder.AddCustomAttributes(stateMachineType, stateMachineType.GetProperty(StateMachineDesigner.StatesPropertyName), BrowsableAttribute.No); 54builder.AddCustomAttributes(stateMachineType, stateMachineType.GetProperty(StateMachineDesigner.VariablesPropertyName), BrowsableAttribute.No); 55builder.AddCustomAttributes(stateMachineType, stateMachineType.GetProperty(StateMachineDesigner.InitialStatePropertyName), BrowsableAttribute.No); 56builder.AddCustomAttributes(stateMachineType, stateMachineType.GetProperty(StateMachineDesigner.InitialStatePropertyName), new ShowPropertyInOutlineViewAttribute() { DuplicatedChildNodesVisible = true }); 57builder.AddCustomAttributes(stateMachineType, stateMachineType.GetProperty(StateMachineDesigner.StatesPropertyName), new ShowPropertyInOutlineViewAttribute());
System\Activities\Core\Presentation\TransitionDesigner.xaml.cs (2)
433foreach (ModelItem stateModelItem in stateMachineModelItem.Properties[StateMachineDesigner.StatesPropertyName].Collection) 495foreach (ModelItem stateModelItem in stateMachineModelItem.Properties[StateMachineDesigner.StatesPropertyName].Collection)