46 references to StateDesigner
System.Activities.Core.Presentation (46)
System\Activities\Core\Presentation\DesignerMetadata.cs (1)
102StateDesigner.RegisterMetadata(builder);
System\Activities\Core\Presentation\StateContainerEditor.CompositeView.cs (2)
154StateContainerEditor.GetParentStateModelItemForTransition(connectorModelItem).Properties[StateDesigner.TransitionsPropertyName].Collection.Add(connectorModelItem); 322sourceState.Properties[StateDesigner.TransitionsPropertyName].Collection.Add(transitionModelItem);
System\Activities\Core\Presentation\StateContainerEditor.ModelChangeReactions.cs (2)
35ModelItemCollection transitions = deleted.Properties[StateDesigner.TransitionsPropertyName].Collection; 60ModelItemCollection transitions = added.Properties[StateDesigner.TransitionsPropertyName].Collection;
System\Activities\Core\Presentation\StateContainerEditor.ModelChanges.cs (3)
46ModelItemCollection transitions = StateContainerEditor.GetParentStateModelItemForTransition(connectorModelItem).Properties[StateDesigner.TransitionsPropertyName].Collection; 118srcModelItem.Properties[StateDesigner.TransitionsPropertyName].Collection.Add(transitionModelItem); 133transitionModelItem = srcModelItem.Properties[StateDesigner.TransitionsPropertyName].Collection.Add(newTransition);
System\Activities\Core\Presentation\StateContainerEditor.Utilities.cs (4)
434if (stateModelItem.Properties[StateDesigner.TransitionsPropertyName].Collection.Contains(transitionModelItem)) 477transitionModelItems.AddRange(stateModelItem.Properties[StateDesigner.TransitionsPropertyName].Collection); 485return modelItem.ItemType == typeof(State) && (bool)modelItem.Properties[StateDesigner.IsFinalPropertyName].Value.GetCurrentValue(); 527foreach (ModelItem transitionModelItem in stateModelItem.Properties[StateDesigner.TransitionsPropertyName].Collection)
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (10)
384ModelItemCollection transitions = modelItem.Properties[StateDesigner.TransitionsPropertyName].Collection; 447ModelItemCollection transitions = modelItem.Properties[StateDesigner.TransitionsPropertyName].Collection; 732transitions.AddRange(stateModelItem.Properties[StateDesigner.TransitionsPropertyName].Collection); 1596if (!(newViewElement is StateDesigner && StateContainerEditor.IsConnectorFromInitialNode(movedConnector))) 1740if (destElement != null && destElement.IsPopulated && destElement.Child is StateDesigner) 2188StateDesigner designer = VisualTreeUtils.FindVisualAncestor<StateDesigner>(this); 2386trasitionModelItem = sourceModelItem.Properties[StateDesigner.TransitionsPropertyName].Collection.Insert(insertIndex, transition); 2390trasitionModelItem = sourceModelItem.Properties[StateDesigner.TransitionsPropertyName].Collection.Add(transition); 2632droppedModelItem.Properties[StateDesigner.TransitionsPropertyName].Collection.Add(new Transition()
System\Activities\Core\Presentation\StateDesigner.xaml.cs (11)
42public static readonly RoutedCommand SetAsInitialCommand = new RoutedCommand("SetAsInitial", typeof(StateDesigner)); 61builder.AddCustomAttributes(stateType, new DesignerAttribute(typeof(StateDesigner))); 62builder.AddCustomAttributes(stateType, stateType.GetProperty(StateDesigner.EntryPropertyName), BrowsableAttribute.No); 63builder.AddCustomAttributes(stateType, stateType.GetProperty(StateDesigner.ExitPropertyName), BrowsableAttribute.No); 64builder.AddCustomAttributes(stateType, stateType.GetProperty(StateDesigner.TransitionsPropertyName), BrowsableAttribute.No); 65builder.AddCustomAttributes(stateType, stateType.GetProperty(StateDesigner.IsFinalPropertyName), BrowsableAttribute.No); 66builder.AddCustomAttributes(stateType, stateType.GetProperty(StateDesigner.VariablesPropertyName), BrowsableAttribute.No); 70builder.AddCustomAttributes(stateType, stateType.GetProperty(StateDesigner.TransitionsPropertyName), new ShowPropertyInOutlineViewAttribute() { CurrentPropertyVisible = false }); 171StateDesigner current = this; 175if (parent is StateDesigner) 177current = (StateDesigner)parent;
System\Activities\Core\Presentation\StateMachineConnetionPointsAdorner.cs (2)
75if (target is StateDesigner) 77target = ((StateDesigner)target).stateContentPresenter;
System\Activities\Core\Presentation\TransitionDesigner.xaml.cs (11)
61this.parentStateModelItem.Properties[StateDesigner.TransitionsPropertyName].Collection.CollectionChanged += OnTransitionsModelItemCollectionChanged; 78this.parentStateModelItem.Properties[StateDesigner.TransitionsPropertyName].Collection.CollectionChanged -= OnTransitionsModelItemCollectionChanged; 135foreach (ModelItem transitionModelItem in this.parentStateModelItem.Properties[StateDesigner.TransitionsPropertyName].Collection) 167foreach (ModelItem transitionModelItem in this.parentStateModelItem.Properties[StateDesigner.TransitionsPropertyName].Collection) 258ModelItemCollection transitionsCollection = this.parentStateModelItem.Properties[StateDesigner.TransitionsPropertyName].Collection; 398modelItem => (modelItem.Properties[StateDesigner.DisplayNamePropertyName].ComputedValue as string)).Where( 435if (string.Equals(stateName, stateModelItem.Properties[StateDesigner.DisplayNamePropertyName].ComputedValue as string, StringComparison.Ordinal)) 453ModelItem newTransitionItem = this.parentStateModelItem.Properties[StateDesigner.TransitionsPropertyName].Collection.Add(new Transition() 503foreach (ModelItem transitionModelItem in stateModelItem.Properties[StateDesigner.TransitionsPropertyName].Collection) 531return availableStates.OrderBy(modelItem => modelItem.Properties[StateDesigner.DisplayNamePropertyName].Value == null ? 533modelItem.Properties[StateDesigner.DisplayNamePropertyName].Value.GetCurrentValue());