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