예제 #1
0
        protected virtual void Start()
        {
            ManagedProperty property = PropertiesManager.GetProperty(this.sourceTargetName);

            this.getter = ((property != null) ? property.getter : null);
            PropertiesManager.AddValueChangeListener(this.sourceTargetName, this.OnValueChanged);
            if (this.getter != null)
            {
                this.getter.UpdateValue();
                this.OnValueChanged();
            }
        }
 public override void Initialize(Component owner)
 {
     base.Initialize(owner);
     if (base.isSetter)
     {
         base.RegisterBind(this.valSetterSource.databind);
     }
     else
     {
         base.RegisterBindWithCallbacks(this.valSetterSource.databind);
     }
     if (!base.isSetter)
     {
         this.p = PropertiesManager.GetProperty(this.propertyName);
         ManagedProperty obj = this.p;
         if (obj != null)
         {
             obj.AddValueChangeListener(this.OnPropertyValueChange);
         }
     }
 }