158 references to StateContainerEditor
System.Activities.Core.Presentation (158)
System\Activities\Core\Presentation\Factories\StateMachineWithInitialStateFactory.cs (1)
27
DisplayName =
StateContainerEditor
.DefaultStateDisplayName + "1"
System\Activities\Core\Presentation\StateContainerEditor.CompositeView.cs (13)
28
DependencyProperty.Register("DroppingTypeResolvingOptions", typeof(TypeResolvingOptions), typeof(
StateContainerEditor
));
78
StateContainerEditor
parentDesigner = VisualTreeUtils.FindVisualAncestor<
StateContainerEditor
>(GetStateView(modelItem));
125
List<Connector> incomingConnectors =
StateContainerEditor
.GetIncomingConnectors(GetStateView(modelItem));
128
ModelItem transitionModelItem =
StateContainerEditor
.GetConnectorModelItem(connector);
130
if (!
StateContainerEditor
.IsTransitionModelItemContainedByStateModelItems(transitionModelItem, selectedStateModelItems))
141
ModelItem connectorModelItem =
StateContainerEditor
.GetConnectorModelItem(connector);
151
ModelItem connectorModelItem =
StateContainerEditor
.GetConnectorModelItem(connector);
154
StateContainerEditor
.GetParentStateModelItemForTransition(connectorModelItem).Properties[StateDesigner.TransitionsPropertyName].Collection.Add(connectorModelItem);
272
StateContainerEditor
container = (
StateContainerEditor
)DragDropHelper.GetCompositeView(view);
458
void UpdateLocationViewStatesByMetaData(List<ModelItem> itemsPasted, List<object> metaData,
StateContainerEditor
container)
547
ModelItem stateMachineModelItem =
StateContainerEditor
.GetStateMachineModelItem(this.ModelItem);
System\Activities\Core\Presentation\StateContainerEditor.ModelChanges.cs (8)
23
ModelItem connectorModelItem =
StateContainerEditor
.GetConnectorModelItem(connector);
46
ModelItemCollection transitions =
StateContainerEditor
.GetParentStateModelItemForTransition(connectorModelItem).Properties[StateDesigner.TransitionsPropertyName].Collection;
124
Transition newTransition = new Transition() { DisplayName =
StateContainerEditor
.GenerateTransitionName(stateMachineModelItem) };
130
Transition existingTransition =
StateContainerEditor
.GetConnectorModelItem(connector).GetCurrentValue() as Transition;
139
int srcConnectionPointIndex =
StateContainerEditor
.GetConnectionPoints(sourceConnPoint.ParentDesigner).IndexOf(sourceConnPoint);
140
int destConnectionPointIndex =
StateContainerEditor
.GetConnectionPoints(destConnPoint.ParentDesigner).IndexOf(destConnPoint);
161
refTransitionModelItem =
StateContainerEditor
.GetConnectorModelItem(referenceConnector);
284
this.StoreConnectorLocationViewState(
StateContainerEditor
.GetConnectorModelItem(connector), connector.Points, isUndoableViewState);
System\Activities\Core\Presentation\StateContainerEditor.Utilities.cs (12)
27
return (ModelItem)obj.GetValue(
StateContainerEditor
.ConnectorModelItemProperty);
32
obj.SetValue(
StateContainerEditor
.ConnectorModelItemProperty, modelItem);
39
return (List<ConnectionPoint>)obj.GetValue(
StateContainerEditor
.ConnectionPointsProperty);
45
return (List<ConnectionPoint>)obj.GetValue(
StateContainerEditor
.ConnectionPointsProperty);
50
obj.SetValue(
StateContainerEditor
.ConnectionPointsProperty, connectionPoints);
243
List<ConnectionPoint> connectionPoints =
StateContainerEditor
.GetConnectionPoints(element);
249
List<ConnectionPoint> connectionPoints =
StateContainerEditor
.GetConnectionPoints(element);
380
List<ConnectionPoint> connectionPoints =
StateContainerEditor
.GetConnectionPoints(designer);
395
srcConnectionPoint = GetClosestConnectionPointNotOfType(destConnectionPoint,
StateContainerEditor
.GetConnectionPoints(src), ConnectionPointKind.Incoming);
406
destConnectionPoint = GetClosestConnectionPointNotOfType(sourceConnectionPoint,
StateContainerEditor
.GetConnectionPoints(dest), ConnectionPointKind.Outgoing);
414
List<Connector> connectors =
StateContainerEditor
.GetOutgoingConnectors(sourceDesigner);
417
ModelItem modelItem =
StateContainerEditor
.GetConnectorModelItem(connector);
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (93)
81
StateContainerEditor
stateMachineContainerEditor = null;
137
typeof(
StateContainerEditor
),
143
typeof(
StateContainerEditor
),
149
typeof(
StateContainerEditor
),
155
typeof(
StateContainerEditor
),
161
typeof(
StateContainerEditor
),
167
typeof(
StateContainerEditor
),
173
typeof(
StateContainerEditor
),
178
typeof(bool), typeof(
StateContainerEditor
),
183
typeof(bool), typeof(
StateContainerEditor
),
207
this.StateMachineModelItem =
StateContainerEditor
.GetStateMachineModelItem(this.ModelItem);
298
get { return (double)this.GetValue(
StateContainerEditor
.StateContainerWidthProperty); }
299
set { this.SetValue(
StateContainerEditor
.StateContainerWidthProperty, value); }
304
get { return (double)this.GetValue(
StateContainerEditor
.StateContainerHeightProperty); }
305
set { this.SetValue(
StateContainerEditor
.StateContainerHeightProperty, value); }
310
get { return (double)this.GetValue(
StateContainerEditor
.PanelMinWidthProperty); }
311
set { this.SetValue(
StateContainerEditor
.PanelMinWidthProperty, value); }
316
get { return (double)this.GetValue(
StateContainerEditor
.PanelMinHeightProperty); }
317
set { this.SetValue(
StateContainerEditor
.PanelMinHeightProperty, value); }
484
object locationOfShape = this.ViewStateService.RetrieveViewState(this.ModelItem,
StateContainerEditor
.ShapeLocationViewStateKey);
506
List<Connector> attachedConnectors =
StateContainerEditor
.GetAttachedConnectors(this.initialNode);
509
ConnectionPoint sourceConnectionPoint =
StateContainerEditor
.GetConnectionPointClosestToEdgeMidPoint(
511
StateContainerEditor
.GetEmptyConnectionPoints(this.initialNode),
534
ConnectionPoint destinationConnectionPoint =
StateContainerEditor
.GetConnectionPointClosestToEdgeMidPoint(
536
StateContainerEditor
.GetEmptyConnectionPoints(initialStateView),
629
ModelItem stateModelItem =
StateContainerEditor
.GetModelItemFromView(view);
633
stateMachineModelItem =
StateContainerEditor
.GetStateMachineModelItem(stateModelItem);
652
StateContainerEditor
stateMachineEditor = this.GetStateMachineContainerEditor();
697
object locationOfShape = this.ViewStateService.RetrieveViewState(modelItem,
StateContainerEditor
.ShapeLocationViewStateKey);
710
ModelItem sourceState =
StateContainerEditor
.GetParentStateModelItemForTransition(transitionModelItem);
770
StateContainerEditor
.SetConnectorModelItem(connector, connectorModelItem);
777
int srcConnectionPointIndex =
StateContainerEditor
.GetConnectionPoints(srcConnPoint.ParentDesigner).IndexOf(srcConnPoint);
778
int destConnectionPointIndex =
StateContainerEditor
.GetConnectionPoints(destConnPoint.ParentDesigner).IndexOf(destConnPoint);
848
srcConnPoint =
StateContainerEditor
.GetSrcConnectionPointForSharedTrigger(source, connectorModelItem);
875
StateContainerEditor
.GetEmptySrcDestConnectionPoints(source, dest, out srcConnPoint, out destConnPoint);
883
srcConnPoint =
StateContainerEditor
.GetClosestConnectionPointNotOfType(destConnPoint, srcConnectionPoints, ConnectionPointKind.Incoming);
892
destConnPoint =
StateContainerEditor
.GetClosestConnectionPointNotOfType(srcConnPoint, destConnectionPoints, ConnectionPointKind.Outgoing);
925
destinationConnectionPoint =
StateContainerEditor
.GetConnectionPointClosestToEdgeMidPoint(destinationDesigner,
StateContainerEditor
.GetEmptyConnectionPoints(destinationDesigner), this.entryEdgeForAutoSplit);
936
sourceConnectionPoint =
StateContainerEditor
.GetSrcConnectionPointForSharedTrigger(sourceDesigner, connectorModelItem);
944
sourceConnectionPoint =
StateContainerEditor
.GetConnectionPointClosestToEdgeMidPoint(sourceDesigner,
StateContainerEditor
.GetEmptyConnectionPoints(sourceDesigner), this.exitEdgeForAutoSplit);
949
destinationConnectionPoint =
StateContainerEditor
.GetClosestDestConnectionPoint(sourceConnectionPoint, destinationDesigner);
953
sourceConnectionPoint =
StateContainerEditor
.GetClosestSrcConnectionPoint(sourceDesigner, destinationConnectionPoint);
957
StateContainerEditor
.GetEmptySrcDestConnectionPoints(sourceDesigner, destinationDesigner, out sourceConnectionPoint, out destinationConnectionPoint);
1007
StateContainerEditor
stateMachineContainer = this.GetStateMachineContainerEditor();
1087
StateContainerEditor
.SetConnectionPoints(view, connectionPoints);
1102
if ((
StateContainerEditor
.GetOutgoingConnectors(element).Count > 0) && !this.IsMovingStartOfConnectorFromInitialNode())
1123
List<ConnectionPoint> connectionPoints =
StateContainerEditor
.GetConnectionPoints(element);
1160
List<ConnectionPoint> connectionPoints = new List<ConnectionPoint>(
StateContainerEditor
.GetConnectionPoints(designer));
1277
StateContainerEditor
stateMachineContainer = this.GetStateMachineContainerEditor();
1298
StateContainerEditor
parentContainer = VisualTreeUtils.FindVisualAncestor<
StateContainerEditor
>(stateDesigner);
1357
if (object.Equals(primarySelection,
StateContainerEditor
.GetConnectorModelItem(sender as DependencyObject)))
1393
ModelItem connectorModelItem =
StateContainerEditor
.GetConnectorModelItem(connector);
1408
ModelItem sourceState =
StateContainerEditor
.GetParentStateModelItemForTransition(connectorModelItem);
1433
this.DesignerView.MakeRootDesigner(
StateContainerEditor
.GetConnectorModelItem(sender as DependencyObject));
1442
ModelItem connectorModelItem =
StateContainerEditor
.GetConnectorModelItem(sender as DependencyObject);
1495
StateContainerEditor
.ReportConnectorCreationError(result);
1523
ModelItem connectorModelItem =
StateContainerEditor
.GetConnectorModelItem(movedConnector);
1558
newConnectionPoint =
StateContainerEditor
.ConnectionPointHitTest(this.lastConnectionPointMouseUpElement, newPoint);
1596
if (!(newViewElement is StateDesigner &&
StateContainerEditor
.IsConnectorFromInitialNode(movedConnector)))
1615
StateContainerEditor
.ReportConnectorCreationError(result);
1669
StateContainerEditor
.StateContainerWidthViewStateKey,
1676
StateContainerEditor
.StateContainerHeightViewStateKey,
1747
StateContainerEditor
.ReportConnectorCreationError(result);
1779
this.StoreConnectorLocationViewState(
StateContainerEditor
.GetConnectorModelItem(connector), points, true);
1800
List<Connector> connectors =
StateContainerEditor
.GetIncomingConnectors(view);
1805
connectors =
StateContainerEditor
.GetOutgoingConnectors(view);
1818
containedTransitions.Add(
StateContainerEditor
.GetConnectorModelItem(connector));
1850
nonSelfTransitions.Add(
StateContainerEditor
.GetConnectorModelItem(connector));
1855
nonSelfTransitions.Add(
StateContainerEditor
.GetConnectorModelItem(connector));
1907
StateContainerEditor
srcContainer = droppedModelItem != null
1908
? DragDropHelper.GetCompositeView(droppedModelItem.View as WorkflowViewElement) as
StateContainerEditor
1977
shapeLocation =
StateContainerEditor
.SnapVisualToGrid(view, e.GetPosition(this.panel), anchorPoint, isAnchorPointValid);
2073
else if (modelItem.ItemType == typeof(State) && this.IsStateMachineContainer &&
StateContainerEditor
.AreInSameStateMachine(modelItem, this.ModelItem))
2134
ModelItem connectorModelItem =
StateContainerEditor
.GetConnectorModelItem(this.selectedConnector);
2179
internal
StateContainerEditor
GetStateMachineContainerEditor()
2190
return VisualTreeUtils.FindVisualAncestor<
StateContainerEditor
>(panel);
2196
StateContainerEditor
stateMachineContainer = this.GetStateMachineContainerEditor();
2202
if (
StateContainerEditor
.GetConnectorModelItem(connector) == connectorModelItem)
2213
StateContainerEditor
stateMachineContainer = this.GetStateMachineContainerEditor();
2219
StateContainerEditor
stateMachineContainer = this.GetStateMachineContainerEditor();
2228
StateContainerEditor
stateMachineContainer = this.GetStateMachineContainerEditor();
2236
StateContainerEditor
stateMachineContainer = this.GetStateMachineContainerEditor();
2373
DisplayName =
StateContainerEditor
.GenerateTransitionName(stateMachineModelItem),
2412
if (
StateContainerEditor
.GetEmptyConnectionPoints(targetElement).Count < 1)
2437
if ((draggedModelItems.Count<ModelItem>() == 1 &&
StateContainerEditor
.IsFinalState(draggedModelItems.First<ModelItem>()))
2528
StateContainerEditor
editor = designer.StateContainerEditor;
2592
if (
StateContainerEditor
.GetAttachedConnectors(this.modelItemToUIElement[draggedModelItem]).Count > 0)
2597
if (
StateContainerEditor
.IsFinalState(draggedModelItem))
2624
ModelItem oldConnectorModelItem =
StateContainerEditor
.GetConnectorModelItem(connector);
2634
DisplayName =
StateContainerEditor
.GenerateTransitionName(stateMachineModelItem),
System\Activities\Core\Presentation\StateContainerResizeGrip.cs (6)
26
DependencyProperty.Register("ParentStateContainerEditor", typeof(
StateContainerEditor
), typeof(StateContainerResizeGrip));
44
public
StateContainerEditor
ParentStateContainerEditor
46
get { return (
StateContainerEditor
)GetValue(ParentStateContainerEditorProperty); }
130
StateContainerEditor
stateContainerEditor = this.ParentStateContainerEditor;
148
viewStateService.StoreViewStateWithUndo(stateContainerModelItem,
StateContainerEditor
.StateContainerWidthViewStateKey, this.ParentStateContainerEditor.StateContainerWidth);
149
viewStateService.StoreViewStateWithUndo(stateContainerModelItem,
StateContainerEditor
.StateContainerHeightViewStateKey, this.ParentStateContainerEditor.StateContainerHeight);
System\Activities\Core\Presentation\StateDesigner.xaml.cs (12)
81
if (
StateContainerEditor
.IsFinalState(modelItem) && icons.Contains("FinalStateIcon"))
134
ModelItem stateMachineModelItem =
StateContainerEditor
.GetStateMachineModelItem(this.ModelItem);
137
!this.IsRootDesigner &&
StateContainerEditor
.GetEmptyConnectionPoints(this).Count > 0);
143
ModelItem stateMachineModelItem =
StateContainerEditor
.GetStateMachineModelItem(this.ModelItem);
147
this.ViewStateService.RemoveViewState(stateMachineModelItem,
StateContainerEditor
.ConnectorLocationViewStateKey);
166
return
StateContainerEditor
.IsFinalState(this.ModelItem);
225
StateContainerEditor
stateContainerEditor = (
StateContainerEditor
)sender;
227
if (
StateContainerEditor
.CopiedTransitionDestinationState != null)
232
StateContainerEditor
container = (
StateContainerEditor
)DragDropHelper.GetCompositeView(view);
234
if (container != null && container.CanPasteTransition(
StateContainerEditor
.CopiedTransitionDestinationState, out errorMessage, view.ModelItem))
System\Activities\Core\Presentation\StateMachineDesigner.xaml.cs (3)
25
StateContainerEditor
stateContainerEditor = null;
34
internal
StateContainerEditor
StateContainerEditor
41
this.stateContainerEditor = sender as
StateContainerEditor
;
System\Activities\Core\Presentation\TransitionDesigner.xaml.cs (10)
39
const int TotalFreeConnectionPointNum =
StateContainerEditor
.ConnectionPointNum * 4;
60
this.parentStateModelItem =
StateContainerEditor
.GetParentStateModelItemForTransition(this.ModelItem);
164
PointCollection thisPointCollection = this.ViewStateService.RetrieveViewState(this.ModelItem,
StateContainerEditor
.ConnectorLocationViewStateKey) as PointCollection;
171
PointCollection pointCollection = this.ViewStateService.RetrieveViewState(transitionModelItem,
StateContainerEditor
.ConnectorLocationViewStateKey) as PointCollection;
294
ModelItem sourceState =
StateContainerEditor
.GetParentStateModelItemForTransition(this.ModelItem);
430
ModelItem stateMachineModelItem =
StateContainerEditor
.GetStateMachineModelItem(this.parentStateModelItem);
456
DisplayName =
StateContainerEditor
.GenerateTransitionName(stateMachineModelItem),
464
PointCollection thisPointCollection = this.ViewStateService.RetrieveViewState(this.ModelItem,
StateContainerEditor
.ConnectorLocationViewStateKey) as PointCollection;
478
this.ViewStateService.StoreViewState(newTransitionItem,
StateContainerEditor
.ConnectorLocationViewStateKey, newTransitionViewState);
491
ModelItem stateMachineModelItem =
StateContainerEditor
.GetStateMachineModelItem(this.parentStateModelItem);