From 5868b389a3544cf14ff65e87b554c07349badd28 Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期一, 16 十月 2023 15:30:46 +0800
Subject: [PATCH] 2023年10月16日15:30:28
---
HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/TypeSingleFramLayout.cs | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/TypeSingleFramLayout.cs b/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/TypeSingleFramLayout.cs
index ee5e6ac..ae48e6f 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/TypeSingleFramLayout.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/TypeSingleFramLayout.cs
@@ -6,7 +6,19 @@
{
public class TypeSingleFramLayout
{
+ /// <summary>
+ /// 鏄惁鍙互鐐瑰嚮
+ /// </summary>
+ private bool mIsClick = true;
+ /// <summary>
+ /// 璁剧疆鎺у埗鐐瑰嚮浜嬩欢
+ /// </summary>
+ /// <param name="isClick">false鐐瑰嚮鏃犳晥</param>
+ public void setClick(bool isClick)
+ {
+ this.mIsClick = isClick;
+ }
private uint UpBackgroundColor = MusicColor.ViewColor;
private uint DownBackgroundColor = AksCommonMethod.seleBackgroundColor;
/// <summary>
@@ -15,7 +27,7 @@
public FrameLayout singleFramLayout = new FrameLayout
{
BackgroundColor = MusicColor.ViewColor,
- Gravity = Gravity.CenterHorizontal,
+ //Gravity = Gravity.CenterHorizontal,
Width = Application.GetRealWidth(101),
Height = Application.GetRealHeight(40),
Radius = (uint)Application.GetRealHeight(20),
@@ -88,8 +100,9 @@
{
EventHandler<MouseEventArgs> UpClick = (sender, e) =>
{
+ action?.Invoke(singleFramLayout);
//singleFramLayout.BackgroundColor = this.UpBackgroundColor;
-
+
//寮硅捣鏉ヨ繕鍘熻儗鏅鑹�
};
singleFramLayout.MouseUpEventHandler += UpClick;
@@ -101,7 +114,7 @@
{
//鎸変笅鍘绘敼鍙樿儗鏅鑹�
//singleFramLayout.BackgroundColor = this.DownBackgroundColor;
- action?.Invoke(singleFramLayout);
+
};
singleFramLayout.MouseDownEventHandler += DownClick;
btnLeftImage.MouseDownEventHandler += DownClick;
--
Gitblit v1.8.0