黄学彪
2019-12-09 163777d8a2cb7cfa469f54a7042528870ebc10a3
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameLayoutControl.cs
@@ -24,6 +24,10 @@
        /// </summary>
        public bool UseClickStatu = true;
        /// <summary>
        /// 能否点击
        /// </summary>
        public bool CanClick = true;
        /// <summary>
        /// 原来的背景色
        /// </summary>
        private uint oldBackColor = 0;
@@ -35,16 +39,12 @@
        /// 子控件Y轴偏移量(共通定义而已)
        /// </summary>
        public int chidrenYaxis = 0;
        /// <summary>
        /// 圆角度(安卓和IOS或许需要预编译)
        /// 圆角度
        /// </summary>
        public uint RadiusEx
        public int RadiusEx
        {
            set
            {
                this.Radius = value;
            }
            set { this.Radius = (uint)Application.GetRealHeight(value); }
        }
        #endregion
@@ -61,14 +61,6 @@
            this.MouseUpEventHandler += ChildrenUpEvent;
            this.MouseDownEventHandler += ChildrenDownEvent;
        }
        /// <summary>
        /// 做成一个普通的FrameLayout控件
        /// </summary>
        /// <param name="flage">没啥用的东西</param>
        public FrameLayoutControl(bool flage)
        {
        }
        #endregion
@@ -202,7 +194,6 @@
            //绑定子控件事件
            this.BindChidrenEvent(view, chidrenBindMode);
        }
        #endregion
@@ -216,7 +207,7 @@
        /// <param name="e">E.</param>
        private void ChildrenDownEvent(object sender, MouseEventArgs e)
        {
            if (this.UseClickStatu == false)
            if (this.UseClickStatu == false|| this.CanClick == false)
            {
                return;
            }
@@ -230,6 +221,11 @@
        /// <param name="e">E.</param>
        private void ChildrenUpEvent(object sender, MouseEventArgs e)
        {
            if (this.CanClick == false)
            {
                //不允许点击
                return;
            }
            if (sender is FrameLayoutControl)
            {
                //LOG出力