Esempio n. 1
0
 public BindableProperty(Type propertyType, PropertyGetterHandler getter, PropertySetterHandler?setter)
 {
     Getter       = getter;
     Setter       = setter;
     PropertyType = propertyType;
 }
Esempio n. 2
0
 public void AddProperty <T>(string name, PropertyGetterHandler getter, PropertySetterHandler?setter = null)
 {
     _properties[name] = new BindableProperty(typeof(T), getter, setter);
 }
Esempio n. 3
0
 public void AddProperty(string name, Type propertyType, PropertyGetterHandler getter, PropertySetterHandler?setter = null)
 {
     _properties[name] = new BindableProperty(propertyType, getter, setter);
 }
Esempio n. 4
0
 /// <summary>
 /// Creates property with specified getter and setter.
 /// </summary>
 /// <param name="getter">The getter of the property.</param>
 /// <param name="setter">The setter of the property.</param>
 public Property(PropertyGetterHandler <TValue> getter = null, PropertySetterHandler <TValue> setter = null)
 {
     m_getter = getter;
     m_setter = setter;
 }