55 references to DefaultMetadata
System.Workflow.ComponentModel (53)
AuthoringOM\Activity.cs (2)
1574this.SetValueCommon(ActivityExecutionContext.CurrentExceptionProperty, e, ActivityExecutionContext.CurrentExceptionProperty.DefaultMetadata, false); 1673this.SetValueCommon(ActivityExecutionContext.CurrentExceptionProperty, e, ActivityExecutionContext.CurrentExceptionProperty.DefaultMetadata, false);
AuthoringOM\ActivityExecutionContext.cs (2)
324this.currentActivity.SetValueCommon(CurrentExceptionProperty, e, CurrentExceptionProperty.DefaultMetadata, false); 698d.SetValueCommon(CurrentExceptionProperty, null, CurrentExceptionProperty.DefaultMetadata, false);
AuthoringOM\Compiler\Validation\DependencyObjectValidator.cs (7)
50object[] validationVisibilityAtrributes = prop.DefaultMetadata.GetAttributes(typeof(ValidationOptionAttribute)); 63Attribute[] validationVisibilityAtrributes = dependencyProperty.DefaultMetadata.GetAttributes(typeof(ValidationOptionAttribute)); 75if (dependencyProperty.DefaultMetadata.DefaultValue != null) 82else if (!dependencyProperty.PropertyType.IsAssignableFrom(dependencyProperty.DefaultMetadata.DefaultValue.GetType())) 84errors.Add(new ValidationError(SR.GetString(SR.Error_PropertyDefaultTypeMismatch, dependencyProperty.Name, dependencyProperty.PropertyType.FullName, dependencyProperty.DefaultMetadata.DefaultValue.GetType().FullName), ErrorNumbers.Error_PropertyDefaultTypeMismatch)); 95if (propValue == null || propValue == dependencyProperty.DefaultMetadata.DefaultValue) 122(dependencyProperty.DefaultMetadata.IsMetaProperty) &&
AuthoringOM\DependencyObject.cs (21)
114if (dependencyProperty.DefaultMetadata != null && dependencyProperty.DefaultMetadata.IsReadOnly) 126if (dependencyProperty.DefaultMetadata != null && dependencyProperty.DefaultMetadata.IsMetaProperty && !typeof(ActivityBind).IsAssignableFrom(dependencyProperty.PropertyType)) 163PropertyMetadata metadata = dependencyProperty.DefaultMetadata; 178return dependencyProperty.DefaultMetadata.DefaultValue; 186return dependencyProperty.DefaultMetadata.DefaultValue; 200return this.GetValueCommon(dependencyProperty, dependencyProperty.DefaultMetadata); 208if (!dependencyProperty.DefaultMetadata.IsReadOnly) 215if (dependencyProperty.DefaultMetadata.IsMetaProperty) 232PropertyMetadata metadata = dependencyProperty.DefaultMetadata; 242PropertyMetadata metadata = dependencyProperty.DefaultMetadata; 248if (dependencyProperty.DefaultMetadata.IsReadOnly) 260if (!this.DesignMode && (dependencyProperty.DefaultMetadata.IsMetaProperty && dependencyProperty != Design.ConditionTypeConverter.DeclarativeConditionDynamicProp)) 276if (dependencyProperty.DefaultMetadata.IsMetaProperty) 308if (dependencyProperty.DefaultMetadata != null && dependencyProperty.DefaultMetadata.IsMetaProperty) 334if (dependencyEvent.DefaultMetadata != null && dependencyEvent.DefaultMetadata.IsMetaProperty) 380if (dependencyEvent.DefaultMetadata != null && dependencyEvent.DefaultMetadata.IsMetaProperty)
AuthoringOM\Design\ComponentSerializationService.cs (1)
652if (dependencyProperty != null && !dependencyProperty.DefaultMetadata.IsMetaProperty)
AuthoringOM\Design\PropertyDescriptors.cs (1)
690if (typeof(DependencyObject).IsAssignableFrom(propertyDescriptor.ComponentType) && dependencyProperty != null && !dependencyProperty.DefaultMetadata.IsMetaProperty)
AuthoringOM\Design\WorkflowInlining.cs (1)
394if (dependencyProperty.Name == parameterProperty.Name && dependencyProperty.DefaultMetadata.IsMetaProperty)
AuthoringOM\Filters\TransactionFilter.cs (1)
115context.Activity.SetValueCommon(ActivityExecutionContext.CurrentExceptionProperty, args.Exception, ActivityExecutionContext.CurrentExceptionProperty.DefaultMetadata, false);
AuthoringOM\Serializer\ActivitySurrogate.cs (1)
53if (kvp.Key != null && !kvp.Key.DefaultMetadata.IsNonSerialized)
AuthoringOM\Serializer\DependencyObjectCodeDomSerializer.cs (3)
92(dependencyProperty.IsAttached || (!dependencyProperty.DefaultMetadata.IsMetaProperty && value is ActivityBind))) 94object[] attributes = dependencyProperty.DefaultMetadata.GetAttributes(typeof(DesignerSerializationVisibilityAttribute)); 174object[] attributes = dependencyProperty.DefaultMetadata.GetAttributes(typeof(DesignerSerializationVisibilityAttribute));
AuthoringOM\Serializer\DependencyStoreSurrogate.cs (1)
27if (!kvp.Key.DefaultMetadata.IsNonSerialized)
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (12)
744if (dependencyProperty.IsAttached || !dependencyProperty.DefaultMetadata.IsMetaProperty) 977isReadOnly = ((dependencyProperty.DefaultMetadata.Options & DependencyPropertyOptions.ReadOnly) == DependencyPropertyOptions.ReadOnly); 1469Attribute[] visibilityAttrs = dependencyProperty.DefaultMetadata.GetAttributes(typeof(DesignerSerializationVisibilityAttribute)); 1475if ((dependencyProperty.DefaultMetadata.Options & DependencyPropertyOptions.ReadOnly) == DependencyPropertyOptions.ReadOnly) 1477object[] serializationVisibilityAttribute = dependencyProperty.DefaultMetadata.GetAttributes(typeof(DesignerSerializationVisibilityAttribute)); 1487if (!dependencyProperty.IsAttached && !dependencyProperty.DefaultMetadata.IsMetaProperty) 1507if (!dependencyProperty.IsAttached && !dependencyProperty.DefaultMetadata.IsMetaProperty) 1524Attribute[] visibilityAttrs = dependencyProperty.DefaultMetadata.GetAttributes(typeof(DesignerSerializationVisibilityAttribute)); 1528if (!dependencyProperty.DefaultMetadata.IsMetaProperty && dependencyProperty.IsAttached && VerifyAttachedPropertyConditions(dependencyProperty)) 1802isReadOnly = ((dependencyProperty.DefaultMetadata.Options & DependencyPropertyOptions.ReadOnly) == DependencyPropertyOptions.ReadOnly); 1918isReadOnly = ((dependencyProperty.DefaultMetadata.Options & DependencyPropertyOptions.ReadOnly) == DependencyPropertyOptions.ReadOnly); 2088object[] attributes = dependencyProperty.DefaultMetadata.GetAttributes(typeof(DesignerSerializationVisibilityAttribute));
System.Workflow.Runtime (2)
System\Activities\Statements\InteropEnvironment.cs (1)
377if (dependencyProperty != null && dependencyProperty.DefaultMetadata.IsMetaProperty)
WorkflowDefinitionDispenser.cs (1)
350if (dependencyProperty.Name == property.Name && dependencyProperty.DefaultMetadata.IsMetaProperty)