| | |
| | | /// </summary> |
| | | public bool UseClickStatu = true;
|
| | | /// <summary>
|
| | | /// 能否点击
|
| | | /// </summary>
|
| | | public bool CanClick = true;
|
| | | /// <summary>
|
| | | /// 原来的背景色
|
| | | /// </summary> |
| | | private uint oldBackColor = 0; |
| | |
| | | /// 子控件Y轴偏移量(共通定义而已)
|
| | | /// </summary>
|
| | | public int chidrenYaxis = 0;
|
| | |
|
| | | /// <summary>
|
| | | /// 圆角度(安卓和IOS或许需要预编译)
|
| | | /// </summary>
|
| | | public uint RadiusEx
|
| | | {
|
| | | set
|
| | | {
|
| | | this.Radius = value;
|
| | | }
|
| | | }
|
| | |
|
| | | #endregion |
| | |
|
| | |
| | |
|
| | | this.MouseUpEventHandler += ChildrenUpEvent;
|
| | | this.MouseDownEventHandler += ChildrenDownEvent; |
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 做成一个普通的FrameLayout控件
|
| | | /// </summary>
|
| | | /// <param name="flage">没啥用的东西</param> |
| | | public FrameLayoutControl(bool flage) |
| | | { |
| | | }
|
| | |
|
| | | #endregion |
| | |
| | | /// <param name="e">E.</param> |
| | | private void ChildrenDownEvent(object sender, MouseEventArgs e) |
| | | {
|
| | | if (this.UseClickStatu == false)
|
| | | if (this.UseClickStatu == false|| this.CanClick == false)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
| | | /// <param name="e">E.</param> |
| | | private void ChildrenUpEvent(object sender, MouseEventArgs e) |
| | | {
|
| | | if (this.CanClick == false)
|
| | | {
|
| | | //不允许点击
|
| | | return;
|
| | | }
|
| | | if (sender is FrameLayoutControl)
|
| | | {
|
| | | //LOG出力
|