1 write to ReflectedObject
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (1)
89this.ReflectedObject = reflectedObject;
88 references to ReflectedObject
System.Activities.Presentation (88)
System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (3)
92this.ReflectedObject.PropertyChanged += OnReflectedObjectPropertyChanged; 359if (null != this.ReflectedObject && !this.isDisposed) 362this.ReflectedObject.PropertyChanged -= this.OnReflectedObjectPropertyChanged;
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (1)
406if (designTimeArgument.ReflectedObject == argument)
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (44)
221if (object.ReferenceEquals(((DesignTimeArgument)item).ReflectedObject, argument)) 364.FirstOrDefault(p => (ModelItem.Equals(p.ReflectedObject, argument))); 377var wrapper = this.argumentWrapperCollection.FirstOrDefault(p => ModelItem.Equals(p.ReflectedObject, argument)); 395this.ClearCaseInsensitiveDuplicates(arg.GetArgumentName(), (string)arg.ReflectedObject.Properties["Name"].ComputedValue); 398ModelItemCollection collection = (ModelItemCollection)arg.ReflectedObject.Parent; 399collection.Remove(arg.ReflectedObject); 407this.CheckCaseInsensitiveDuplicates(arg.GetArgumentName(), (string)arg.ReflectedObject.Properties["Name"].ComputedValue); 472Func<DesignTimeArgument, bool> checkForDuplicates = new Func<DesignTimeArgument, bool>(p => string.Equals((string)p.ReflectedObject.Properties["Name"].ComputedValue, newName, StringComparison.OrdinalIgnoreCase) && !object.Equals(p.GetArgumentName(), identifierName)); 491Func<DesignTimeArgument, bool> checkForOldNameDuplicates = new Func<DesignTimeArgument, bool>(p => string.Equals((string)p.ReflectedObject.Properties["Name"].ComputedValue, oldName, StringComparison.OrdinalIgnoreCase) && !object.Equals(p.GetArgumentName(), identifier)); 539ModelItem argument = argumentWrapper.ReflectedObject; 622list.Add(designTimeArgument.ReflectedObject); 630if (designTimeArgument.ReflectedObject == modelItem) 776this.ReflectedObject.Properties["Attributes"].Collection.CollectionChanged += new NotifyCollectionChangedEventHandler(OnAttributesChanged); 790this.ReflectedObject.Properties["Attributes"].Collection.CollectionChanged -= new NotifyCollectionChangedEventHandler(OnAttributesChanged); 919return (string)this.ReflectedObject.Properties[ArgumentNameProperty].ComputedValue; 935ModelProperty property = this.ReflectedObject.Properties.Find(Annotation.AnnotationTextPropertyName); 949ModelProperty property = this.ReflectedObject.Properties.Find(Annotation.AnnotationTextPropertyName); 959using (ModelEditingScope scope = this.ReflectedObject.BeginEdit((string)this.Editor.FindResource("changeArgumentNameDescription"))) 963this.Editor.UpdateArgumentName(this, name, (string)this.ReflectedObject.Properties[ArgumentNameProperty].ComputedValue); 971Type result = (Type)this.ReflectedObject.Properties["Type"].ComputedValue; 981using (ModelEditingScope scope = this.ReflectedObject.BeginEdit((string)this.Editor.FindResource("changeArgumentTypeDescription"))) 985this.ReflectedObject.Properties["Type"].SetValue(propertyType); 995Type argumentType = (Type)this.ReflectedObject.Properties["Type"].ComputedValue; 1013using (ModelEditingScope scope = this.ReflectedObject.BeginEdit((string)this.Editor.FindResource("changeArgumentDirectionDescription"))) 1017this.ReflectedObject.Properties["Type"].SetValue(propertyType); 1104this.ReflectedObject.Properties[DesignTimeArgument.ArgumentDefaultValueProperty].SetValue(value); 1109ModelItem value = this.ReflectedObject.Properties[DesignTimeArgument.ArgumentDefaultValueProperty].Value; 1154ModelItemCollection attributes = this.ReflectedObject.Properties["Attributes"].Collection; 1160ModelItemCollection attributes = this.ReflectedObject.Properties["Attributes"].Collection; 1161using (ModelEditingScope scope = this.ReflectedObject.BeginEdit((string)this.Editor.FindResource("changeArgumentIsRequiredDescription"))) 1170ModelItemCollection attributes = this.ReflectedObject.Properties["Attributes"].Collection; 1171using (ModelEditingScope scope = this.ReflectedObject.BeginEdit((string)this.Editor.FindResource("changeArgumentIsRequiredDescription"))) 1203return this.ReflectedObject.Parent.Parent; 1299ModelItemCollection argumentCollection = (ModelItemCollection)this.ReflectedObject.Parent; 1302argumentCollection.Any<ModelItem>(p => string.Equals(p.Properties["Name"].ComputedValue, name) && !ModelItem.Equals(p, this.ReflectedObject)); 1361if (this.ReflectedObject.TryGetPropertyValue(out expression, ArgumentDefaultValueProperty, "Expression") && null != expression) 1391this.ReflectedObject.Properties[ArgumentDefaultValueProperty].SetValue(value); 1396this.ReflectedObject.Properties[ArgumentDefaultValueProperty].ClearValue(); 1401this.ReflectedObject.Properties[ArgumentDefaultValueProperty].ClearValue(); 1406this.ReflectedObject.Properties[ArgumentDefaultValueProperty].ClearValue(); 1411Argument currentArgument = this.ReflectedObject.Properties[ArgumentDefaultValueProperty].ComputedValue as Argument; 1436this.ReflectedObject.Properties[ArgumentDefaultValueProperty].SetValue(newArgument); 1441this.ReflectedObject.Properties[ArgumentDefaultValueProperty].ClearValue(); 1446this.ReflectedObject.Properties[ArgumentDefaultValueProperty].ClearValue();
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
1031return designObjectWrapper.ReflectedObject;
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (39)
141ModelItemCollection container = VariableHelper.GetVariableCollection(oldVariableWrapper.ReflectedObject.Parent.Parent); 142index = container.IndexOf(oldVariableWrapper.ReflectedObject); 151this.variableToSelect = null != variable ? variable.ReflectedObject : null; 160Func<DesignTimeVariable, bool> checkForDuplicates = new Func<DesignTimeVariable, bool>(p => string.Equals((string)p.ReflectedObject.Properties["Name"].ComputedValue, newName, StringComparison.OrdinalIgnoreCase) && !object.Equals(p.GetVariableName(), identifierName)); 179Func<DesignTimeVariable, bool> checkForOldNameDuplicates = new Func<DesignTimeVariable, bool>(p => string.Equals((string)p.ReflectedObject.Properties["Name"].ComputedValue, oldName, StringComparison.OrdinalIgnoreCase) && !object.Equals(p.GetVariableName(), identifier)); 290if (object.ReferenceEquals(((DesignTimeVariable)item).ReflectedObject, variable)) 420.FirstOrDefault<DesignTimeVariable>(p => (ModelItem.Equals(p.ReflectedObject, variable))); 451DesignTimeVariable wrapper = this.variableWrapperCollection.FirstOrDefault(p => ModelItem.Equals(p.ReflectedObject, variable)); 476this.ClearCaseInsensitiveDuplicates(arg.GetVariableName(), (string)arg.ReflectedObject.Properties["Name"].ComputedValue); 477ModelItemCollection collection = (ModelItemCollection)arg.ReflectedObject.Parent; 478collection.Remove(arg.ReflectedObject); 486this.CheckCaseInsensitiveDuplicates(var.GetVariableName(), (string)var.ReflectedObject.Properties["Name"].ComputedValue); 632list.Add(designTimeVariable.ReflectedObject); 640if (designTimeVariable.ReflectedObject == modelItem) 1133using (ModelEditingScope change = this.ReflectedObject.BeginEdit((string)this.Editor.FindResource("changeVariableNameDescription"))) 1137this.Editor.NotifyVariableNameChanged(this.identifierName, name, (string)this.ReflectedObject.Properties[VariableNameProperty].ComputedValue); 1138this.ReflectedObject.Properties[VariableNameProperty].SetValue(name); 1151return (string)this.ReflectedObject.Properties[VariableNameProperty].ComputedValue; 1180this.ReflectedObject.Properties[VariableModifiersProperty].SetValue( 1186return this.ReflectedObject.Properties[VariableModifiersProperty].ComputedValue; 1192ModelItem parent = this.ReflectedObject.Parent; 1216using (ModelEditingScope change = this.ReflectedObject.BeginEdit((string)this.Editor.FindResource("changeVariableTypeDescription"))) 1219ModelItemCollection variableContainer = (ModelItemCollection)this.ReflectedObject.Parent; 1231ModelItem expressionModelItem = this.ReflectedObject.Properties[VariableDefaultProperty].Value; 1257return (Type)this.ReflectedObject.Properties[VariableTypeProperty].ComputedValue; 1262using (ModelEditingScope change = this.ReflectedObject.BeginEdit((string)this.Editor.FindResource("changeVariableScopeDescription"))) 1266ModelItemCollection currentScopeContainer = this.ReflectedObject.Parent.Parent.Properties["Variables"].Collection; 1267currentScopeContainer.Remove(this.ReflectedObject.GetCurrentValue()); 1270newScopeContainer.Add(this.ReflectedObject.GetCurrentValue()); 1279return this.ReflectedObject.Parent.Parent; 1285this.ReflectedObject.Properties[VariableDefaultProperty].SetValue(expression); 1290return this.ReflectedObject.Properties[VariableDefaultProperty].ComputedValue; 1295ModelItem s = this.ReflectedObject.Parent.Parent; 1302ModelProperty property = this.ReflectedObject.Properties.Find(Annotation.AnnotationTextPropertyName); 1316ModelProperty property = this.ReflectedObject.Properties.Find(Annotation.AnnotationTextPropertyName); 1398if (!base.IsUndoRedoInProgress && null != this.ReflectedObject.Parent) 1412new Func<ModelItem, bool>(p => string.Equals(p.Properties[VariableNameProperty].ComputedValue, newName) && !object.Equals(p, this.ReflectedObject)); 1414bool duplicates = this.ReflectedObject.Parent.Parent.Properties["Variables"].Collection.Any(checkForDuplicates); 1437new Func<ModelItem, bool>(p => string.Equals(p.Properties[VariableNameProperty].ComputedValue, currentName) && !object.Equals(p, this.ReflectedObject));