Esempio n. 1
0
        /// <summary>
        /// 设定最大值最小值依赖属性回调函数
        /// </summary>
        /// <param name="d"></param>
        /// <param name="e"></param>
        private static void CheckProperty(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            NumTextBox ntb = d as NumTextBox;

            if (ntb.MaxValue < ntb.MinValue)
            {
                ntb.MaxValue = ntb.MinValue;
            }
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.UserControl = ((WxTools.Theme.Control.NumericUpDown)(target));
                return;

            case 2:
                this.ValueGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.ValueText = ((WxTools.Theme.Control.NumTextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mb = ((WxTools.Theme.Control.InputBoxX)(target));
                return;

            case 2:
                this.InputTextBox = ((WxTools.Theme.Control.NumTextBox)(target));
                return;

            case 3:
                this.btnOK = ((WxTools.Theme.Control.FButton)(target));
                return;

            case 4:
                this.btnCancel = ((WxTools.Theme.Control.FButton)(target));
                return;
            }
            this._contentLoaded = true;
        }