Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PropertyMetadata{T}"/> class.
 /// </summary>
 /// <param name="defaultValue">The dependency property's default value.</param>
 /// <param name="flags">A collection of <see cref="PropertyMetadataOptions"/> values specifying the dependency property's options.</param>
 /// <param name="propertyChangedCallback">A delegate which is invoked when the dependency property's value changes.</param>
 /// <param name="coerceValueCallback">A delegate which is invoked to coerce the dependency property's value.</param>
 public PropertyMetadata(Object defaultValue, PropertyMetadataOptions flags, PropertyChangedCallback <TValue> propertyChangedCallback, CoerceValueCallback <TValue> coerceValueCallback)
     : base(defaultValue, flags, propertyChangedCallback, coerceValueCallback)
 {
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PropertyMetadata{T}"/> class.
 /// </summary>
 /// <param name="defaultValue">The dependency property's default value.</param>
 /// <param name="flags">A collection of <see cref="PropertyMetadataOptions"/> values specifying the dependency property's options.</param>
 public PropertyMetadata(Object defaultValue, PropertyMetadataOptions flags)
     : base(defaultValue, flags)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PropertyMetadata"/> class.
 /// </summary>
 /// <param name="defaultValue">The dependency property's default value.</param>
 /// <param name="flags">A collection of <see cref="PropertyMetadataOptions"/> values specifying the dependency property's options.</param>
 public PropertyMetadata(Object defaultValue, PropertyMetadataOptions flags)
     : this(defaultValue, flags, null, null)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PropertyMetadata"/> class.
 /// </summary>
 /// <param name="flags">A collection of <see cref="PropertyMetadataOptions"/> values specifying the dependency property's options.</param>
 /// <param name="propertyChangedCallback">A delegate which is invoked when the dependency property's value changes.</param>
 /// <param name="coerceValueCallback">A delegate which is invoked to coerce the dependency property's value.</param>
 private PropertyMetadata(PropertyMetadataOptions flags, Delegate propertyChangedCallback, Delegate coerceValueCallback)
 {
     this.flags = flags;
     this.propertyChangedCallback = propertyChangedCallback;
     this.coerceValueCallback     = coerceValueCallback;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PropertyMetadata"/> class.
 /// </summary>
 /// <param name="defaultValue">The dependency property's default value.</param>
 /// <param name="flags">A collection of <see cref="PropertyMetadataOptions"/> values specifying the dependency property's options.</param>
 /// <param name="propertyChangedCallback">A delegate which is invoked when the dependency property's value changes.</param>
 /// <param name="coerceValueCallback">A delegate which is invoked to coerce the dependency property's value.</param>
 public PropertyMetadata(Object defaultValue, PropertyMetadataOptions flags, Delegate propertyChangedCallback, Delegate coerceValueCallback)
     : this(flags, propertyChangedCallback, coerceValueCallback)
 {
     DefaultValue = defaultValue;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PropertyMetadata"/> class.
 /// </summary>
 /// <param name="defaultValue">The dependency property's default value.</param>
 /// <param name="flags">A collection of <see cref="PropertyMetadataOptions"/> values specifying the dependency property's options.</param>
 /// <param name="propertyChangedCallback">A delegate which is invoked when the dependency property's value changes.</param>
 public PropertyMetadata(Object defaultValue, PropertyMetadataOptions flags, Delegate propertyChangedCallback)
     : this(defaultValue, flags, propertyChangedCallback, null)
 {
 }