cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (43)
151Fx.Assert(this.ActivitySchema.Properties[Members] != null, "Members collection not found!");
152return this.ActivitySchema.Properties[Members].Collection;
161return argumentCollection.GetUniqueName(ArgumentDesigner.DefaultArgumentName, (arg) => ((string)arg.Properties["Name"].ComputedValue));
275if (null != newSchemaItem && null != newSchemaItem.Properties[Members])
395this.ClearCaseInsensitiveDuplicates(arg.GetArgumentName(), (string)arg.ReflectedObject.Properties["Name"].ComputedValue);
407this.CheckCaseInsensitiveDuplicates(arg.GetArgumentName(), (string)arg.ReflectedObject.Properties["Name"].ComputedValue);
461return argument.Content.Properties[DesignTimeArgument.ArgumentDefaultValueProperty];
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));
517if (null != oldItem && null != oldItem.Properties[Members])
519oldItem.Properties[Members].Collection.CollectionChanged -= designer.OnArgumentCollectionChanged;
521if (null != newItem && null != newItem.Properties[Members])
523newItem.Properties[Members].Collection.CollectionChanged += designer.OnArgumentCollectionChanged;
541argument.Properties[ArgumentNamePropertyName].SetValue(newName);
677variable.Content.Properties[DesignTimeArgument.AnnotationTextProperty].SetValue(annotationText);
704dialog.AnnotationText = variable.Content.Properties[DesignTimeArgument.AnnotationTextProperty].ComputedValue as string;
717variable.Content.Properties[DesignTimeArgument.AnnotationTextProperty].SetValue(annotationText);
737variable.Content.Properties[DesignTimeArgument.AnnotationTextProperty].ClearValue();
776this.ReflectedObject.Properties["Attributes"].Collection.CollectionChanged += new NotifyCollectionChangedEventHandler(OnAttributesChanged);
779IdentifierName = (string)argument.Properties[ArgumentNameProperty].ComputedValue
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);
963this.Editor.UpdateArgumentName(this, name, (string)this.ReflectedObject.Properties[ArgumentNameProperty].ComputedValue);
971Type result = (Type)this.ReflectedObject.Properties["Type"].ComputedValue;
985this.ReflectedObject.Properties["Type"].SetValue(propertyType);
995Type argumentType = (Type)this.ReflectedObject.Properties["Type"].ComputedValue;
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;
1170ModelItemCollection attributes = this.ReflectedObject.Properties["Attributes"].Collection;
1302argumentCollection.Any<ModelItem>(p => string.Equals(p.Properties["Name"].ComputedValue, name) && !ModelItem.Equals(p, this.ReflectedObject));
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();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (37)
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));
246p.Properties["Variables"].Collection.CollectionChanged -= OnVariableCollectionChanged;
266p.Properties["Variables"].Collection.CollectionChanged += OnVariableCollectionChanged;
476this.ClearCaseInsensitiveDuplicates(arg.GetVariableName(), (string)arg.ReflectedObject.Properties["Name"].ComputedValue);
486this.CheckCaseInsensitiveDuplicates(var.GetVariableName(), (string)var.ReflectedObject.Properties["Name"].ComputedValue);
542return variable.Content.Properties[DesignTimeVariable.VariableDefaultProperty];
687variable.Content.Properties[DesignTimeVariable.AnnotationTextProperty].SetValue(annotationText);
714dialog.AnnotationText = variable.Content.Properties[DesignTimeVariable.AnnotationTextProperty].ComputedValue as string;
727variable.Content.Properties[DesignTimeVariable.AnnotationTextProperty].SetValue(annotationText);
747variable.Content.Properties[DesignTimeVariable.AnnotationTextProperty].ClearValue();
770ModelProperty variablesProperty = element.Properties["Variables"];
830delegateArguments.AddRange(element.Properties
908return variableContainer.Any(p => string.Equals(p.Properties[DesignTimeVariable.VariableNameProperty].ComputedValue, variableName));
932if (!variables.Any(p => string.Equals(p.Properties[DesignTimeVariable.VariableNameProperty].ComputedValue, name)))
1122IdentifierName = (string)modelItem.Properties[VariableNameProperty].ComputedValue
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;
1231ModelItem expressionModelItem = this.ReflectedObject.Properties[VariableDefaultProperty].Value;
1257return (Type)this.ReflectedObject.Properties[VariableTypeProperty].ComputedValue;
1266ModelItemCollection currentScopeContainer = this.ReflectedObject.Parent.Parent.Properties["Variables"].Collection;
1269ModelItemCollection newScopeContainer = scope.Properties["Variables"].Collection;
1285this.ReflectedObject.Properties[VariableDefaultProperty].SetValue(expression);
1290return this.ReflectedObject.Properties[VariableDefaultProperty].ComputedValue;
1302ModelProperty property = this.ReflectedObject.Properties.Find(Annotation.AnnotationTextPropertyName);
1316ModelProperty property = this.ReflectedObject.Properties.Find(Annotation.AnnotationTextPropertyName);
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));
1439bool duplicates = scope.Properties["Variables"].Collection.Any(checkForDuplicates);
1494if (null != currentEntry.Properties["Variables"])
1503if (null != entry.Properties["Variables"])
1511var input = new object[] { entry, null != entry.Properties["DisplayName"] ? entry.Properties["DisplayName"].Value : null, (double)short.MaxValue };