示例#1
0
        public DrawableControl(IControlDelegate controlDelegate)
        {
            ControlDelegate = controlDelegate;
            controlDelegate.VirtualDrawableControl = this;

            if (controlDelegate is AbstractControlDelegate abstractControlDelegate)
            {
                AddBindings(abstractControlDelegate.Bindings);
            }
        }
 public static Comet.View ToView(this IControlDelegate controlDelegate)
 {
     return(new DrawableControl(controlDelegate));
 }
示例#3
0
 public DrawableControl(IControlDelegate controlDelegate)
 {
     ControlDelegate = controlDelegate;
     controlDelegate.VirtualDrawableControl = this;
 }