1 write to modelItemToUIElement
System.Activities.Core.Presentation (1)
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (1)
189this.modelItemToUIElement = new Dictionary<ModelItem, UIElement>();
31 references to modelItemToUIElement
System.Activities.Core.Presentation (31)
System\Activities\Core\Presentation\StateContainerEditor.CompositeView.cs (3)
43Fx.Assert(this.modelItemToUIElement.ContainsKey(modelItem), "Moved item does not exist."); 199if (!this.modelItemToUIElement.ContainsKey(sourceStateItem)) 253foreach (ModelItem item in this.modelItemToUIElement.Keys)
System\Activities\Core\Presentation\StateContainerEditor.ModelChangeReactions.cs (5)
43if (this.modelItemToUIElement.ContainsKey(deleted)) 45this.RemoveStateVisual(this.modelItemToUIElement[deleted]); 159&& this.modelItemToUIElement.ContainsKey(propertyChange.NewValue)) 276if (this.modelItemToUIElement.ContainsKey(modelItem)) 280FreeFormPanel.SetLocation(this.modelItemToUIElement[modelItem], (Point)e.NewValue);
System\Activities\Core\Presentation\StateContainerEditor.Utilities.cs (1)
290return ((StateMachineDesigner)parent.View).StateContainerEditor.modelItemToUIElement[stateModelItem];
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (22)
408this.modelItemToUIElement.Clear(); 422foreach (UIElement element in this.modelItemToUIElement.Values) 428this.modelItemToUIElement.Clear(); 474this.modelItemToUIElement.Add(this.initialModelItem, initialNode); 554if (!this.modelItemToUIElement.TryGetValue(model, out element)) 576this.modelItemToUIElement.Add(model, element); 607if (!this.modelItemToUIElement.ContainsKey(modelItem)) 611else if (!this.panel.Children.Contains(this.modelItemToUIElement[modelItem])) 613viewsAdded.Add(this.modelItemToUIElement[modelItem]); 680this.modelItemToUIElement.Remove(modelItem); 712UIElement sourceDesigner = this.modelItemToUIElement[sourceState]; 713UIElement destinationDesigner = this.modelItemToUIElement[destinationState]; 793if (modelItemToUIElement.TryGetValue(item, out element) && element is VirtualizedContainerService.VirtualizingContainer) 1914PerformInternalMove(this.modelItemToUIElement[droppedModelItem], e.GetPosition(this.panel), anchorPoint, autoConnectDirection, connectorToSplit); 1952if (this.modelItemToUIElement.ContainsKey(droppedModelItem)) 1954view = this.modelItemToUIElement[droppedModelItem]; 2103UIElement shapeToMove = this.modelItemToUIElement[selectedModelItem]; 2144&& currentSelection.SelectedObjects.All<ModelItem>((p) => { return this.modelItemToUIElement.ContainsKey(p); })) 2534UIElement srcElement = editor.modelItemToUIElement[this.SrcModelItem]; 2535UIElement desElement = editor.modelItemToUIElement[this.DstModelItem]; 2590if (draggedModelItem != null && this.modelItemToUIElement.ContainsKey(draggedModelItem)) 2592if (StateContainerEditor.GetAttachedConnectors(this.modelItemToUIElement[draggedModelItem]).Count > 0)