1 write to modelElement
System.Activities.Core.Presentation (1)
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (1)
103
this.
modelElement
= new Dictionary<ModelItem, UIElement>();
61 references to modelElement
System.Activities.Core.Presentation (61)
System\Activities\Core\Presentation\FlowchartDesigner.Container.cs (5)
37
Fx.Assert(this.
modelElement
.ContainsKey(modelItem), "Moved item does not exist.");
76
DragDropHelper.ValidateItemsAreOnView(selectedItems, this.
modelElement
.Keys);
87
DragDropHelper.ValidateItemsAreOnView(movedItems, this.
modelElement
.Keys);
328
if (pastePointReference.ModelItem != null && this.
modelElement
.ContainsKey(pastePointReference.ModelItem))
517
UIElement deleteElement = (UIElement)(this.
modelElement
[shapeModelItem]);
System\Activities\Core\Presentation\FlowchartDesigner.Helpers.cs (3)
326
modelItems.ForEach(p => { Fx.Assert(this.
modelElement
.ContainsKey(p), "View should be in the flowchart"); });
332
CreateLinkGesture(this.
modelElement
[modelItemsArray[i]], this.
modelElement
[modelItemsArray[i + 1]], out error, null);
System\Activities\Core\Presentation\FlowchartDesigner.ModelChangeReactions.cs (34)
38
modelElement
.Add(flowStart, start);
107
if (this.
modelElement
.ContainsKey(itemOnCanvas))
113
FreeFormPanel.SetLocation(this.
modelElement
[itemOnCanvas], (Point)e.NewValue);
385
if (!this.
modelElement
.ContainsKey(itemOnCanvas))
390
else if (!this.panel.Children.Contains(this.
modelElement
[itemOnCanvas]))
393
viewsAdded.Add(this.
modelElement
[itemOnCanvas]);
418
if (!
modelElement
.ContainsKey(dest))
423
elem2elemConnections.Add(Tuple.Create(
modelElement
[src],
modelElement
[dest], currentMI));
432
ConnectionPoint srcConnectionPoint = FlowchartDesigner.GetTrueConnectionPoint(
modelElement
[currentMI]);
434
if (!
modelElement
.ContainsKey(trueDestOnCanvas))
439
point2elemConnections.Add(Tuple.Create(srcConnectionPoint,
modelElement
[trueDestOnCanvas], currentMI));
443
ConnectionPoint srcConnectionPoint = FlowchartDesigner.GetFalseConnectionPoint(
modelElement
[currentMI]);
445
if (!
modelElement
.ContainsKey(falseDestOnCanvas))
450
point2elemConnections.Add(Tuple.Create(srcConnectionPoint,
modelElement
[falseDestOnCanvas], currentMI));
461
if (!
modelElement
.ContainsKey(defaultCaseOnCanvas))
470
elem2elemConnections.Add(Tuple.Create(
modelElement
[currentMI],
modelElement
[defaultCaseOnCanvas], linkModelItem));
481
if (!
modelElement
.ContainsKey(destModelItem))
487
elem2elemConnections.Add(Tuple.Create(
modelElement
[currentMI],
modelElement
[destModelItem], linkModelItem));
533
connectorList.Add(CreateLink(this.StartSymbol,
modelElement
[dest], this.ModelItem));
586
this.
modelElement
.Remove(shapeModelItem);
619
newConnector = CreateLink(
modelElement
[src],
modelElement
[dest], srcModelItem);
628
srcConnPoint = FlowchartDesigner.GetTrueConnectionPoint(
modelElement
[srcModelItem]);
632
srcConnPoint = FlowchartDesigner.GetFalseConnectionPoint(
modelElement
[srcModelItem]);
634
newConnector = CreateLink(srcConnPoint,
modelElement
[dest], srcModelItem);
652
newConnector = CreateLink(
modelElement
[srcModelItem],
modelElement
[dest], linkModelItem);
657
newConnector = CreateLink(this.StartSymbol,
modelElement
[dest], this.ModelItem);
671
outGoingConnectors = GetOutGoingConnectors(this.
modelElement
[shapeModelItem]);
717
ConnectionPoint trueConnPoint = FlowchartDesigner.GetTrueConnectionPoint(this.
modelElement
[shapeModelItem]);
718
ConnectionPoint falseConnPoint = FlowchartDesigner.GetFalseConnectionPoint(this.
modelElement
[shapeModelItem]);
System\Activities\Core\Presentation\FlowchartDesigner.ModelChanges.cs (2)
171
if (sourceConnPoint.Equals(FlowchartDesigner.GetTrueConnectionPoint(this.
modelElement
[linkSource])))
183
else if (sourceConnPoint.Equals(FlowchartDesigner.GetFalseConnectionPoint(this.
modelElement
[linkSource])))
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (17)
219
Fx.Assert(this.
modelElement
.ContainsKey(selection), "Selection is not contained in this container");
245
if (selection.SelectionCount == 1 && this.
modelElement
.ContainsKey(selection.PrimarySelection))
284
foreach (UIElement element in this.
modelElement
.Values)
338
this.
modelElement
.Clear();
407
Fx.Assert(this.
modelElement
.ContainsKey(shapeModelItem), "The ModelItem does not exist.");
408
UIElement element = this.
modelElement
[shapeModelItem];
984
if (sourceConnectionPoint.Equals(FlowchartDesigner.GetTrueConnectionPoint(this.
modelElement
[linkModelItem])))
1216
if (!this.
modelElement
.TryGetValue(model, out container))
1231
this.
modelElement
.Add(model, container);
1403
if (srcConnPoint.Equals(FlowchartDesigner.GetTrueConnectionPoint(this.
modelElement
[linkModelItem])))
1582
PerformInternalMove(
modelElement
[droppedModelItem], e.GetPosition(this.panel), anchorPoint, autoConnectDirection, connectorToSplit);
1980
&& currentSelection.SelectedObjects.All<ModelItem>((p) => { return this.
modelElement
.ContainsKey(p); }))
2008
UIElement shapeToMove = this.
modelElement
[selectedModelItem];
2075
if (!this.
modelElement
.ContainsKey(item))
2393
if (draggedModelItem != null && this.
modelElement
.ContainsKey(draggedModelItem))
2395
if (this.GetAttachedConnectors(this.
modelElement
[draggedModelItem]).Count > 0)
2425
return this.
modelElement
[item];