示例#1
0
 /// <summary>
 ///     Type meta construction
 /// </summary>
 /// <param name="defaultValue">Default value of property</param>
 /// <param name="propertyChangedCallback">Called when the property has been changed</param>
 /// <param name="coerceValueCallback">Called on update of value</param>
 public PropertyMetadata(object defaultValue, PropertyChangedCallback propertyChangedCallback, CoerceValueCallback coerceValueCallback)
 {
     this.CallPropertyChangedWhenLoadedIntoVisualTree = WhenToCallPropertyChangedEnum.IfPropertyIsSet;
     this.DefaultValue            = defaultValue;
     this.PropertyChangedCallback = propertyChangedCallback;
     this.CoerceValueCallback     = coerceValueCallback;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of Windows.UI.Xaml.PropertyMetadata.
 /// </summary>
 public PropertyMetadata()
 {
     CallPropertyChangedWhenLoadedIntoVisualTree = WhenToCallPropertyChangedEnum.IfPropertyIsSet;
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the PropertyMetadata class, using a callback reference.
 /// </summary>
 /// <param name="propertyChangedCallback">A reference to the callback to call for property changed behavior.</param>
 public PropertyMetadata(PropertyChangedCallback propertyChangedCallback)
 {
     CallPropertyChangedWhenLoadedIntoVisualTree = WhenToCallPropertyChangedEnum.IfPropertyIsSet;
     this.PropertyChangedCallback = propertyChangedCallback;
 }
示例#4
0
 /// <summary>
 /// Initializes a new instance of the PropertyMetadata class, using a property
 /// default value.
 /// </summary>
 /// <param name="defaultValue">A default value for the property where this PropertyMetadata is applied.</param>
 public PropertyMetadata(object defaultValue)
 {
     CallPropertyChangedWhenLoadedIntoVisualTree = WhenToCallPropertyChangedEnum.IfPropertyIsSet;
     this.DefaultValue = defaultValue;
 }