public ControlPropertyMetadata(ControlPropertyChangedCallback propertyChangedCallback, Object defaultValue = null, IControlPropertyApplier propertyApplier = null, bool readOnly = false)
 {
     this.PropertyChangedCallback = propertyChangedCallback;
     this.DefaultValue = defaultValue;
     this.Applier = propertyApplier;
     this.ReadOnly = readOnly;
 }
Example #2
0
        /// <summary>
        /// Altera o aplicador de uma propriedade para a instancia do controle.
        /// Apenas a instancia atual é afetada.
        /// </summary>
        /// <param name="property">Propriedade que terá seu aplicador alterado.</param>
        /// <param name="applier">Aplicador customizado.</param>
        void IControlInstanceAdapter.SetCustomApplier(ControlProperty property, IControlPropertyApplier applier)
        {
            var slot = GetSlot(property, true);

            slot.CustomApplier = applier;
        }
Example #3
0
 public static ControlProperty Register(String propertyName, Type propertyType, Type ownerType, IControlPropertyApplier applier,
                                        Object defaultValue = null, ControlPropertyChangedCallback propertyChangedCallback = null)
 {
     return(Register(propertyName, propertyType, ownerType, new ControlPropertyMetadata(propertyChangedCallback, defaultValue, applier)));
 }
 public ControlPropertyMetadata(IControlPropertyApplier applier, ControlPropertyChangedCallback propertyChangedCallback = null)
     : this(propertyChangedCallback, null, applier)
 {
 }
 public ControlPropertyMetadata(Object defaultValue, IControlPropertyApplier applier = null)
     : this(null, defaultValue, applier)
 {
 }
Example #6
0
 public ControlPropertyMetadata(ControlPropertyChangedCallback propertyChangedCallback, Object defaultValue = null, IControlPropertyApplier propertyApplier = null, bool readOnly = false)
 {
     this.PropertyChangedCallback = propertyChangedCallback;
     this.DefaultValue            = defaultValue;
     this.Applier  = propertyApplier;
     this.ReadOnly = readOnly;
 }
Example #7
0
 public ControlPropertyMetadata(IControlPropertyApplier applier, ControlPropertyChangedCallback propertyChangedCallback = null) : this(propertyChangedCallback, null, applier)
 {
 }
Example #8
0
 public ControlPropertyMetadata(Object defaultValue, IControlPropertyApplier applier = null) : this(null, defaultValue, applier)
 {
 }
Example #9
0
 public static ControlProperty Register(String propertyName, Type propertyType, Type ownerType, IControlPropertyApplier applier,
     Object defaultValue = null, ControlPropertyChangedCallback propertyChangedCallback = null)
 {
     return Register(propertyName, propertyType, ownerType, new ControlPropertyMetadata(propertyChangedCallback, defaultValue, applier));
 }