Exemple #1
0
        internal Button(ILayout parent) : base(parent)
        {
            textProperty = new PropertyBinding <string, IButton>(
                this,
                value => this.text = value
                );

            tooltipProperty = new PropertyBinding <string, IButton>(
                this,
                value => this.tooltip = value
                );

            widthProperty = new PropertyBinding <int, IButton>(
                this,
                value => this.width = value
                );

            heightProperty = new PropertyBinding <int, IButton>(
                this,
                value => this.height = value
                );

            clickEvent = new EventBinding <IButton>(this);
        }
Exemple #2
0
 internal Button(ILayout parent) : base(parent)
 {
     mClickEvent = new EventBinding <IButton>(this);
 }