cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (36)
113if (this.ModelItem != null && this.Context != null)
115this.ViewStateService.StoreViewState(this.ModelItem, ExpandViewStateKey, newValue);
121if (this.ModelItem != null && this.Context != null)
123this.ViewStateService.StoreViewState(this.ModelItem, WorkflowViewElement.PinnedViewStateKey, newValue);
156if (this.ModelItem != null)
158((IModelTreeItem)this.ModelItem).SetCurrentView(this);
162if (this.ModelItem != null)
164object expandCollapseViewState = this.ViewStateService.RetrieveViewState(this.ModelItem, ExpandViewStateKey);
165object pinViewState = this.ViewStateService.RetrieveViewState(this.ModelItem, WorkflowViewElement.PinnedViewStateKey);
298return ViewUtilities.DoesParentAlwaysExpandChildren(this.ModelItem, this.Context);
303return ViewUtilities.DoesParentAlwaysCollapseChildren(this.ModelItem, this.Context);
515if (!e.Handled && this.ModelItem != null && !designerView.IsMultipleSelectionMode)
531if (item == this.ModelItem)
542Selection.SelectOnly(this.Context, this.ModelItem);
576designerView.MakeRootDesigner(this.ModelItem);
591if (this.ModelItem == null)
655bool isSelected = this.Context.Items.GetValue<Selection>().SelectedObjects.Contains<ModelItem>(this.ModelItem);
661Selection.Toggle(this.Context, this.ModelItem);
679if (item == this.ModelItem)
687Selection.SelectOnly(this.Context, this.ModelItem);
694Selection.SelectOnly(this.Context, this.ModelItem);
740if (this.ModelItem != null && this.ModelItem != this.ModelItem.Root && this.ModelItem.Parent == null)
751this.ModelItem != null &&
764if (!selection.SelectedObjects.Contains(this.ModelItem))
768Selection.Toggle(this.Context, this.ModelItem);
772Selection.SelectOnly(this.Context, this.ModelItem);
827Selection.Toggle(this.Context, this.ModelItem);
831Selection.SelectOnly(this.Context, this.ModelItem);
919using (ModelEditingScope editingScope = this.ModelItem.BeginEdit(SR.MoveEditingScopeDescription, true))
968containerMovedModelItemList[compView].Add(view.ModelItem);
1085ModelItem modelItem = this.owner.ModelItem;
1104if (this.owner.ModelItem != null)
1106itemType = this.owner.ModelItem.ItemType;