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