4 instantiations of ActivityBind
System.Workflow.ComponentModel (4)
AuthoringOM\Design\ActivityDesigner.cs (1)
2149promotedProperties.Add(propertyDescriptor, new ActivityBind(ActivityBind.GetRelativePathExpression(Helpers.GetRootActivity(Activity), Activity), newCustomProperty.Name));
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (2)
272ActivityBind bind = new ActivityBind(activity.QualifiedName, propertyPath); 346ActivityBind newBind = new ActivityBind(ActivityBind.GetRelativePathExpression(Helpers.GetRootActivity(activity), activity), newMemberName);
AuthoringOM\Design\TypeConverters.cs (1)
200object convertedValue = (splitParts.Length == 2) ? new ActivityBind(splitParts[0], splitParts[1]) : null;
140 references to ActivityBind
System.Workflow.Activities (8)
CodeExpressionRuleDeclaration.cs (1)
42protected override object GetBoundValue(ActivityBind bind, Type targetType)
Common\BasePropertyDescriptor.cs (3)
446propertyType = typeof(ActivityBind); 516if (value is ActivityBind) 517binding.SetBinding(WorkflowParameterBinding.ValueProperty, value as ActivityBind);
ConstrainedGroup.cs (2)
170ActivityBind activityBind = codeCondition.GetBinding(CodeCondition.ConditionEvent) as ActivityBind;
Executors\InboundActivityHelper.cs (2)
114ActivityBind rolesBind = activity.GetBinding(dependencyProperty) as ActivityBind;
System.Workflow.ComponentModel (130)
AuthoringOM\Bind.cs (31)
648MemberInfo memberInfo = ActivityBind.GetMemberInfo(referencedActivity.GetType(), Path, targetType); 651runtimeValue = ActivityBind.GetMemberValue(referencedActivity, memberInfo, Path, targetType); 652if (runtimeValue is ActivityBind && BindHelpers.GetMemberType(memberInfo) != typeof(ActivityBind)) 653runtimeValue = ((ActivityBind)runtimeValue).GetRuntimeValue(referencedActivity, targetType); 675MemberInfo memberInfo = ActivityBind.GetMemberInfo(referencedActivity.GetType(), Path, null); 678ActivityBind bind = ActivityBind.GetMemberValue(referencedActivity, memberInfo, Path, null) as ActivityBind; 700ActivityBind activityBind = ActivityBind.GetContextBind(this, activity, out dataSourceActivity); 706MemberInfo memberInfo = ActivityBind.GetMemberInfo(companionType, activityBind.Path, null); 828private static ActivityBind GetContextBind(ActivityBind activityBind, Activity activity, out Activity contextActivity) 836ActivityBind contextBind = activityBind; 846MemberInfo memberInfo = ActivityBind.GetMemberInfo(dataSourceObject.GetType(), contextBind.Path, null); 857else if (memberInfo is PropertyInfo && (memberInfo as PropertyInfo).PropertyType == typeof(ActivityBind) && dataSourceObject != null) 860if (value is ActivityBind) 867contextBind = value as ActivityBind; 940public bool Contains(Activity activity, ActivityBind bind) 949List<ActivityBind> binds = this.activityBinds[activity] as List<ActivityBind>; 950foreach (ActivityBind prevBind in binds) 959public void Add(Activity activity, ActivityBind bind) 966this.activityBinds[activity] = new List<ActivityBind>(); 968((List<ActivityBind>)this.activityBinds[activity]).Add(bind); 1139if (value is ActivityBind && !eventArgs.LastMemberInThePath && GetMemberType(eventArgs.MemberInfo) != typeof(ActivityBind)) 1141while (value is ActivityBind) 1143ActivityBind activityBind = value as ActivityBind;
AuthoringOM\Compiler\CodeGeneration\ActivityCodeGenerator.cs (2)
30ActivityBind bindBase = args.CurrentValue as ActivityBind;
AuthoringOM\Compiler\Validation\BindValidator.cs (11)
584ActivityBind bind = obj as ActivityBind; 586throw new ArgumentException(SR.GetString(SR.Error_UnexpectedArgumentType, typeof(ActivityBind).FullName), "obj"); 720if (validator == this && actualBind is ActivityBind) 753ActivityBind bind = obj as ActivityBind; 794private ValidationErrorCollection ValidateActivity(ValidationManager manager, ActivityBind bind, BindValidationContext validationContext) 898if (!TypeProvider.IsAssignable(typeof(ActivityBind), memberType) && !DoesTargetTypeMatch(validationContext.TargetType, memberType, validationContext.Access)) 914else if (value is ActivityBind && refActivity.Parent != null) 916ActivityBind referencedBind = value as ActivityBind;
AuthoringOM\DependencyObject.cs (20)
109public void SetBinding(DependencyProperty dependencyProperty, ActivityBind bind) 126if (dependencyProperty.DefaultMetadata != null && dependencyProperty.DefaultMetadata.IsMetaProperty && !typeof(ActivityBind).IsAssignableFrom(dependencyProperty.PropertyType)) 145public ActivityBind GetBinding(DependencyProperty dependencyProperty) 151return (this.metaProperties.ContainsKey(dependencyProperty) ? this.metaProperties[dependencyProperty] as ActivityBind : null); 182if (this.metaProperties != null && !this.DesignMode && value is ActivityBind && !typeof(ActivityBind).IsAssignableFrom(dependencyProperty.PropertyType)) 183value = this.GetBoundValue((ActivityBind)value, dependencyProperty.PropertyType); 185if (value == null || value is ActivityBind) 250if (value is ActivityBind) 289if (!this.DesignMode && (oldMetaValue is ActivityBind)) 291this.SetBoundValue((ActivityBind)oldMetaValue, value); 331if (value is ActivityBind) 377if (value is ActivityBind) 436this.metaProperties[dependencyProperty] is ActivityBind); 508else if (propValue is ActivityBind) 512((ActivityBind)propValue).SetContext(activity); 575if (properties[dependencyEvent] is ActivityBind) 580delegateValue = (T)this.GetBoundValue((ActivityBind)properties[dependencyEvent], typeof(T)); 625protected virtual object GetBoundValue(ActivityBind bind, Type targetType) 640protected virtual void SetBoundValue(ActivityBind bind, object value)
AuthoringOM\Design\ActivityDesigner.cs (12)
1211if (!(value is ActivityBind)) 2133Dictionary<PropertyDescriptor, ActivityBind> promotedProperties = new Dictionary<PropertyDescriptor, ActivityBind>(); 2137ActivityBind bind = propertyDescriptor.GetValue(Activity) as ActivityBind; 2149promotedProperties.Add(propertyDescriptor, new ActivityBind(ActivityBind.GetRelativePathExpression(Helpers.GetRootActivity(Activity), Activity), newCustomProperty.Name)); 2197ActivityBind bind = propertyDescriptor.GetValue(Activity) as ActivityBind; 2237if (e.Component != null && (e.OldValue is ActivityBind && !(e.NewValue is ActivityBind)) || 2238(!(e.OldValue is ActivityBind) && e.NewValue is ActivityBind))
AuthoringOM\Design\CustomActivityDesigner.cs (3)
436if (propertyType == typeof(ActivityBind)) 439customProperty.Type = typeof(ActivityBind).FullName; 888if (TypeProvider.IsAssignable(typeof(ActivityBind), propertyDescriptor.PropertyType))
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (7)
30private ActivityBind binding = null; 112public ActivityBind Binding 189ActivityBind previousBinding = context.PropertyDescriptor.GetValue(context.Instance) as ActivityBind; 272ActivityBind bind = new ActivityBind(activity.QualifiedName, propertyPath); 346ActivityBind newBind = new ActivityBind(ActivityBind.GetRelativePathExpression(Helpers.GetRootActivity(activity), activity), newMemberName);
AuthoringOM\Design\PropertyDescriptors.cs (12)
301if (((uiTypeEditor == null && !propertiesSupported) || value is ActivityBind) && !IsReadOnly) 316if (value is ActivityBind || (editor == null && !propertiesSupported)) 336if (!(value is ActivityBind)) 346ActivityBind activityBind = value as ActivityBind; 401((oldValue is ActivityBind && !(value is ActivityBind)) || 402(!(oldValue is ActivityBind) && value is ActivityBind))) 523internal static bool CreateField(ITypeDescriptorContext context, ActivityBind activityBind, bool throwOnError) 667throw new InvalidOperationException(SR.GetString(SR.Error_PropertyTypeNotDefined, context.PropertyDescriptor.Name, typeof(ActivityBind).Name, typeof(IDynamicPropertyTypeProvider).Name)); 678if (propertyDescriptor.PropertyType == typeof(ActivityBind))
AuthoringOM\Design\TypeConverters.cs (10)
174ActivityBind activityBind = context.PropertyDescriptor.GetValue(context.Instance) as ActivityBind; 226ActivityBind activityBind = value as ActivityBind; 251ActivityBind activityBind = context.PropertyDescriptor.GetValue(context.Instance) as ActivityBind; 271ActivityBind activityBind = value as ActivityBind; 318if (!(existingPropertyValue is ActivityBind)) 337if (!(existingPropertyValue is ActivityBind))
AuthoringOM\ScheduleChanges.cs (2)
298ActivityBind activityBind = activity.GetBinding(dependencyProperty); 326ActivityBind activityBind = activity.GetBinding(dependencyProperty);
AuthoringOM\Serializer\ActivitySurrogateSelector.cs (5)
99else if (typeof(ActivityBind).IsAssignableFrom(type)) 124!(obj is ActivityBind) && 156!(typeof(ActivityBind).IsAssignableFrom(type)) && 172!(typeof(ActivityBind).IsAssignableFrom(type)) && 174!(this.returnedObject is ActivityBind) &&
AuthoringOM\Serializer\BindMarkupExtensionSerializer.cs (4)
18ActivityBind activityBind = value as ActivityBind; 20throw new ArgumentException(SR.GetString(SR.Error_UnexpectedArgumentType, typeof(ActivityBind).FullName), "value"); 21return new InstanceDescriptor(typeof(ActivityBind).GetConstructor(new Type[] { typeof(string) }),
AuthoringOM\Serializer\DependencyObjectCodeDomSerializer.cs (3)
92(dependencyProperty.IsAttached || (!dependencyProperty.DefaultMetadata.IsMetaProperty && value is ActivityBind))) 118if (value is ActivityBind) 119codeMethodInvokeExpr = new CodeMethodInvokeExpression(objectExpression, "SetBinding", new CodeExpression[] { param1, new CodeCastExpression(new CodeTypeReference(typeof(ActivityBind)), param2) });
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (4)
1575if (value is ActivityBind) 1576dependencyObject.SetBinding(dependencyProperty, value as ActivityBind); 1596if (value is ActivityBind) 1597dependencyObject.SetBinding(dependencyProperty, value as ActivityBind);
Shared\BasePropertyDescriptor.cs (3)
445propertyType = typeof(ActivityBind); 515if (value is ActivityBind) 516binding.SetBinding(WorkflowParameterBinding.ValueProperty, value as ActivityBind);
Shared\XomlSerializationHelpers.cs (1)
110System.Resources.ResourceManager resourceManager = new System.Resources.ResourceManager("System.Workflow.ComponentModel.StringResources", typeof(System.Workflow.ComponentModel.ActivityBind).Assembly);
System.Workflow.Runtime (2)
Tracking\PropertyHelper.cs (2)
153if (o is ActivityBind) 158tmp = ((ActivityBind)o).GetRuntimeValue(activity);