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; }
/// <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; }
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) { }
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)); }