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