wjc
2023-08-04 36540bdc906f402f4c55cc7460b6facfd344a793
2023年08月04日14:55:04

备份一下
2个文件已添加
8个文件已修改
3 文件已重命名
1241 ■■■■■ 已修改文件
HDL_ON/HDL_ON.projitems 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/FuntionControlView/Aks/AksPage.cs 71 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/FuntionControlView/Aks/CollectPage.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/ButtonFramLayout.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/CornerFramLayout.cs 148 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/NumberFrameLayout.cs 111 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/FuntionControlView/Aks/GfPage.cs 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/FuntionControlView/Aks/JdhPage.cs 301 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/FuntionControlView/Aks/MusicPage.cs 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/FuntionControlView/Aks/TvPage.cs 213 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/FuntionControlView/Aks/TyyPage.cs 28 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/FuntionControlView/Aks/YkPage.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/FuntionControlView/Aks/YkqPage.cs 312 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/HDL_ON.projitems
@@ -567,7 +567,6 @@
    <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\FuntionControlView\Aks\AksPage.cs" />
    <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\FuntionControlView\Aks\CommonView\ButtonFramLayout.cs" />
    <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\FuntionControlView\Aks\CommonView\CornerFramLayout.cs" />
    <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\FuntionControlView\Aks\AksMusicPage.cs" />
    <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\FuntionControlView\Aks\CommonView\BaseFramLayout.cs" />
    <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\FuntionControlView\Aks\CommonView\MenuFramLayout.cs" />
    <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\FuntionControlView\Aks\CommonView\TypeSingleFramLayout.cs" />
@@ -579,10 +578,13 @@
    <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\FuntionControlView\Aks\CommonView\ImageFramlayout.cs" />
    <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\FuntionControlView\Aks\CollectPage.cs" />
    <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\FuntionControlView\Aks\DetailPage.cs" />
    <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\FuntionControlView\Aks\GFPage.cs" />
    <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\FuntionControlView\Aks\TYYPage.cs" />
    <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\FuntionControlView\Aks\TvPage.cs" />
    <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\FuntionControlView\Aks\CommonView\NumberFrameLayout.cs" />
    <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\FuntionControlView\Aks\JdhPage.cs" />
    <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\FuntionControlView\Aks\MusicPage.cs" />
    <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\FuntionControlView\Aks\GfPage.cs" />
    <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\FuntionControlView\Aks\TyyPage.cs" />
    <Compile Include="$(MSBuildThisFileDirectory)UI\UI2\FuntionControlView\Aks\YkqPage.cs" />
  </ItemGroup>
  <ItemGroup>
    <Folder Include="$(MSBuildThisFileDirectory)Entity\Device\" />
HDL_ON/UI/UI2/FuntionControlView/Aks/AksPage.cs
@@ -12,6 +12,9 @@
namespace HDL_ON.UI.UI2.FuntionControlView.Aks
{
    /// <summary>
    /// 埃克斯主界面
    /// </summary>
    public class AksPage : FrameLayout
    {
        #region ■ 变量声明___________________________
@@ -202,26 +205,29 @@
            {
                case IntType.Player:
                    {
                        AksMusicPage aksMusicPage = new AksMusicPage();
                        this.vv.AddChidren(aksMusicPage);
                        aksMusicPage.Show();
                        aksMusicPage.action += (type) =>
                        MusicPage musicPage = new MusicPage();
                        this.vv.AddChidren(musicPage);
                        musicPage.Show();
                        musicPage.action += (type) =>
                        {
                            SelectedType();
                        };
                    }
                    break;
                case IntType.HiFi: {
                        GFPage gFPage = new GFPage();
                        this.vv.AddChidren(gFPage);
                        gFPage.Show();
                        gFPage.action += (type) =>
                case IntType.HiFi:
                    {
                        GfPage gfPage = new GfPage();
                        this.vv.AddChidren(gfPage);
                        gfPage.Show();
                        gfPage.action += (type) =>
                        {
                            SelectedType();
                        };
                    } break;
                case IntType.TV: {
                    }
                    break;
                case IntType.TV:
                    {
                        TvPage tvPage = new TvPage();
                        this.vv.AddChidren(tvPage);
@@ -230,18 +236,41 @@
                        {
                            SelectedType();
                        };
                    } break;
                case IntType.STB: { } break;
                case IntType.Projector: {
                        TYYPage tYYPage = new TYYPage();
                        this.vv.AddChidren(tYYPage);
                        tYYPage.Show();
                        tYYPage.action += (type) =>
                    }
                    break;
                case IntType.STB:
                    {
                        JdhPage jdhPage = new JdhPage();
                        this.vv.AddChidren(jdhPage);
                        jdhPage.Show();
                        jdhPage.action += (type) =>
                        {
                            SelectedType();
                        };
                    } break;
                case IntType.Control: { } break;
                    }
                    break;
                case IntType.Projector:
                    {
                        TyyPage tyyPage = new TyyPage();
                        this.vv.AddChidren(tyyPage);
                        tyyPage.Show();
                        tyyPage.action += (type) =>
                        {
                            SelectedType();
                        };
                    }
                    break;
                case IntType.Control:
                    {
                        YkqPage ykqPage = new YkqPage();
                        this.vv.AddChidren(ykqPage);
                        ykqPage.Show();
                        ykqPage.action += (type) =>
                        {
                            SelectedType();
                        };
                    }
                    break;
            }
@@ -313,7 +342,7 @@
            return dic;
        }
        /// <summary>
        /// 获取设备
        /// 获取设备类型
        /// </summary>
        /// <param name="value">(1 = 播放器,2 = 功放,3 = 电视,4 = 机顶盒,5 = 投影仪,6 = 万能遥控器)</param>
        /// <returns></returns>
HDL_ON/UI/UI2/FuntionControlView/Aks/CollectPage.cs
@@ -73,7 +73,7 @@
                //关闭刷新View;
                vv.EndHeaderRefreshing();
            };
            CornerFramLayout imageFLayout = new CornerFramLayout(343, 20 * 168, 3, 0);
            CornerFramLayout imageFLayout = new CornerFramLayout(343, 20 * 168, 0);
            vv.AddChidren(imageFLayout);
            imageFLayout.X = Application.GetRealWidth(16);
            imageFLayout.SetList(imageFLayout.GetTestList(20));
HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/ButtonFramLayout.cs
@@ -19,7 +19,6 @@
            this.Width = Application.GetRealWidth(width);
            this.Height = Application.GetRealHeight(height);
            this.Radius = (uint)Application.GetRealHeight(cornerValue);
            this.BackgroundColor = 0XFF457625;
        }
        Button btnImage = new Button
HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/CornerFramLayout.cs
@@ -33,15 +33,13 @@
        /// </summary>
        /// <param name="width">容器宽度</param>
        /// <param name="height">容器高度</param>
        ///<param name="rowNumber">一行几个元素</param>
        ///<param name="rowNumber">圆角值</param>
        public CornerFramLayout(int width, int height, int rowNumber = 0, int radius = 0)
        public CornerFramLayout(int width, int height, int radius = 0)
        {
            this.BackgroundColor = MusicColor.WhiteColor;
            this.Width = Application.GetRealWidth(width);
            this.Height = Application.GetRealHeight(height);
            this.Radius = (uint)Application.GetRealHeight(radius);
            this.mRowNumber = rowNumber;
        }
@@ -95,14 +93,15 @@
        /// <summary>
        /// 动态加载按键界面
        /// (注意:mRowNumber!=0)
        /// </summary>
        public void LoadButtonPage()
        /// <param name="mRowNumber">一行多少个元素</param>
        public void LoadButtonPage(int mRowNumber)
        {
            if (this.mRowNumber == 0)
            if (mRowNumber == 0)
            {
                return;
            }
            this.mRowNumber = mRowNumber;
            int line = 0;
            int xCount = 0;
            for (int i = 1; i <= this.mList.Count; i++)
@@ -219,16 +218,117 @@
            }
        }
        /// <summary>
        ///动态加载数字按键界面
        /// </summary>
        public void LoadNumberButtonPage()
        {
            int currnetheightValue = 0;
            int currnetWidthValue = 0;
            int heightMaxValue = 84;
            int widthMaxValue = 78;
            //获取相对一个纬度值
            int heightDimensionValue = this.Height - Application.GetRealHeight(this.topMargin) - Application.GetRealHeight(this.bottomMargin) - Application.GetRealHeight(heightMaxValue / 2);
            int widthDimensionValue = this.Width - Application.GetRealWidth(this.leftMargin) - Application.GetRealWidth(this.rightMargin) - Application.GetRealHeight(widthMaxValue / 2);
            for (int i = 1; i <= this.GetNumberTextList().Count; i++)
            {
                var d = this.GetNumberTextList()[i - 1];
                Button button = new Button
                {
                    Y = Application.GetRealHeight(this.topMargin) + Application.GetRealHeight(currnetheightValue),
                    X = Application.GetRealWidth(this.leftMargin) + Application.GetRealWidth(currnetWidthValue),
                    Width = Application.GetRealWidth(widthMaxValue),
                    Height = Application.GetRealHeight(heightMaxValue),
                    Text = d,
                    TextSize = TextSize.Text20,
                    TextColor = MusicColor.TextColor,
                    TextAlignment = TextAlignment.Center,
                    IsBold = true,
                    Tag = d,
                    BackgroundColor = MusicColor.WhiteColor,
                    SelectedBackgroundColor = 0xff454635,
                };
                this.AddChidren(button);
                currnetWidthValue += widthMaxValue;
                if (widthDimensionValue < Application.GetRealWidth(currnetWidthValue))
                {
                    currnetheightValue += heightMaxValue;
                    currnetWidthValue = 0;
                }
                button.MouseDownEventHandler += (sen, e) =>
                {
                    if (button.Tag == null || string.IsNullOrEmpty(button.Tag.ToString()))
                    {
                        return;
                    }
                    button.IsSelected = true;
                    selectAction?.Invoke(button.Tag.ToString());
                };
                button.MouseUpEventHandler += (sen, e) =>
                {
                    button.IsSelected = false;
                };
                //if (CurrnetSelectIndex != -1 && CurrnetSelectIndex == i)
                //{
                //    selectAction?.Invoke((int)buttonFram.Tag);
                //}
            }
        }
        /// <summary>
        /// 动态加载图片界面
        /// </summary>
        public void LoadImagePage()
        {
            if (this.mRowNumber == 0)
            int currnetheightValue = 0;
            int currnetWidthValue = 0;
            int heightMaxValue = ImageFramlayout.heightFrameLayout;
            int widthMaxValue = ImageFramlayout.widthFrameLayout;
            //获取相对一个纬度值
            int heightDimensionValue = this.Height - Application.GetRealHeight(this.topMargin) - Application.GetRealHeight(this.bottomMargin) - Application.GetRealHeight(heightMaxValue / 2);
            int widthDimensionValue = this.Width - Application.GetRealWidth(this.leftMargin) - Application.GetRealWidth(this.rightMargin) - Application.GetRealHeight(widthMaxValue / 2);
            for (int i = 1; i <= this.mList.Count; i++)
            {
                var d = this.mList[i - 1];
                ImageFramlayout imageFram = new ImageFramlayout();
                imageFram.AddView(this);
                imageFram.Tag = d;
                imageFram.Y = Application.GetRealHeight(this.topMargin) + Application.GetRealHeight(currnetheightValue);
                imageFram.X = Application.GetRealWidth(currnetWidthValue);
                imageFram.btnName.Text = d;
                currnetWidthValue += (widthMaxValue + 8);//8是隔间值
                if (widthDimensionValue < Application.GetRealWidth(currnetWidthValue))
                {
                    currnetheightValue += (heightMaxValue + 20);//20是隔间值
                    currnetWidthValue = 0;
                }
                imageFram.SetClickListener((fl) =>
                {
                    if (imageFram.Tag != null)
                    {
                        selectAction?.Invoke(imageFram.Tag.ToString());
                    }
                });
                //if (CurrnetSelectIndex != -1 && CurrnetSelectIndex == i)
                //{
                //    selectAction?.Invoke((int)imageFram.Tag);
                //}
            }
        }
        /// <summary>
        /// 动态加载图片界面
        /// </summary>
        /// <param name="mRowNumber">一行多少个元素</param>
        public void LoadImagePage(int mRowNumber)
        {
            if (mRowNumber == 0)
            {
                return;
            }
            this.mRowNumber = mRowNumber;
            int line = 0;
            int xCount = 0;
            for (int i = 1; i <= this.mList.Count; i++)
@@ -281,6 +381,10 @@
        /// <returns></returns>
        private bool IsLastColumn(int index)
        {
            if (this.mRowNumber == 0 || this.mList == null || this.mList.Count == 0)
            {
                return false;
            }
            int lineCount = this.mList.Count / this.mRowNumber;//得出行数
            int number = this.mList.Count % this.mRowNumber;
            if (number != 0)
@@ -300,7 +404,6 @@
            }
            return false;
        }
        /// <summary>
        /// 最后右边那一个
@@ -309,6 +412,10 @@
        /// <returns></returns>
        private bool IsLastRight(int value)
        {
            if (this.mRowNumber == 0)
            {
                return false;
            }
            if (value % this.mRowNumber == 0)
            {
                return true;
@@ -352,5 +459,30 @@
            button.Width = width;
        }
        public List<string> GetNumberTextList()
        {
            return new List<string>
            {
                "1",
                "2",
                "3",
                Language.StringByID(StringId.pindaojia),
                "4",
                "5",
                "6",
                Language.StringByID(StringId.pindaojian),
                "7",
                "8",
                "9",
                "-/--",
                "",//这个是为了占位置
                "0"
            };
        }
    }
}
HDL_ON/UI/UI2/FuntionControlView/Aks/CommonView/NumberFrameLayout.cs
@@ -8,7 +8,9 @@
        public NumberFrameLayout()
        {
        }
        private uint UpBackgroundColor = MusicColor.WhiteColor;
        private uint DownBackgroundColor = 0xff454635;
        private Action<Button> action = null;
        public FrameLayout layout = new FrameLayout
        {
@@ -48,9 +50,6 @@
            TextAlignment = TextAlignment.Center,
            IsBold = true,
        };
        Button btn4 = new Button
        {
            Width = Application.GetRealWidth(78),
@@ -134,9 +133,31 @@
            IsBold = true,
        };
        ButtonFramLayout pdjiaFramLayout = new ButtonFramLayout();
        Button btn_jia = new Button
        {
            Width = Application.GetRealWidth(78),
            Height = Application.GetRealHeight(84),
            TextID = StringId.pindaojia,
            TextSize = TextSize.Text20,
            TextColor = MusicColor.TextColor,
            TextAlignment = TextAlignment.Center,
            IsBold = true,
        ButtonFramLayout pdjianFramLayout = new ButtonFramLayout();
        };
        Button btn_jian = new Button
        {
            Width = Application.GetRealWidth(78),
            Height = Application.GetRealHeight(84),
            TextID = StringId.pindaojian,
            TextSize = TextSize.Text20,
            TextColor = MusicColor.TextColor,
            TextAlignment = TextAlignment.Center,
            IsBold = true,
        };
        /// <summary>
        /// 添加布局
@@ -156,8 +177,8 @@
            layout.AddChidren(btn9);
            layout.AddChidren(btn0);
            layout.AddChidren(btn);
            layout.AddChidren(pdjiaFramLayout);
            layout.AddChidren(pdjianFramLayout);
            layout.AddChidren(btn_jia);
            layout.AddChidren(btn_jian);
            btn1.Y = Application.GetRealHeight(16);
            btn1.X = Application.GetRealWidth(16);
@@ -165,14 +186,8 @@
            btn2.X = btn1.Right;
            btn3.Y = Application.GetRealHeight(16);
            btn3.X = btn2.Right;
            pdjiaFramLayout.AddImageView();
            pdjiaFramLayout.AddNameView();
            pdjiaFramLayout.Y = Application.GetRealHeight(16);
            pdjiaFramLayout.GetImageButton().Height = Application.GetRealHeight(32);
            pdjiaFramLayout.GetImageButton().Width = Application.GetRealWidth(32);
            pdjiaFramLayout.GetImageButton().UnSelectedImagePath = "AksIcon/pindao1.png";
            pdjiaFramLayout.GetNameButton().TextID = StringId.pindaojia;
            pdjiaFramLayout.X = btn3.Right;
            btn_jia.Y = Application.GetRealHeight(16);
            btn_jia.X = btn3.Right;
            btn4.Y = btn1.Bottom;
            btn4.X = Application.GetRealWidth(16);
@@ -180,14 +195,8 @@
            btn5.X = btn4.Right;
            btn6.Y = btn3.Bottom;
            btn6.X = btn5.Right;
            pdjianFramLayout.AddImageView();
            pdjianFramLayout.AddNameView();
            pdjianFramLayout.Y = pdjiaFramLayout.Bottom;
            pdjianFramLayout.GetImageButton().Height = Application.GetRealHeight(32);
            pdjianFramLayout.GetImageButton().Width = Application.GetRealWidth(32);
            pdjianFramLayout.GetImageButton().UnSelectedImagePath = "AksIcon/pindao2.png";
            pdjianFramLayout.GetNameButton().TextID = StringId.pindaojian;
            pdjianFramLayout.X = btn6.Right;
            btn_jian.Y = btn_jia.Bottom;
            btn_jian.X = btn6.Right;
            btn7.Y = btn6.Bottom;
            btn7.X = Application.GetRealWidth(16);
@@ -195,14 +204,64 @@
            btn8.X = btn7.Right;
            btn9.Y = btn6.Bottom;
            btn9.X = btn8.Right;
            btn.Y = pdjianFramLayout.Bottom;
            btn.Y = btn_jian.Bottom;
            btn.X = btn9.Right;
            btn0.Y = btn8.Bottom;
            btn0.X = Application.GetRealWidth(16 + 78);
            btn1.MouseDownEventHandler += (sen, e) => ClickListener(btn1);
            btn2.MouseDownEventHandler += (sen, e) => ClickListener(btn2);
            btn3.MouseDownEventHandler += (sen, e) => ClickListener(btn3);
            btn4.MouseDownEventHandler += (sen, e) => ClickListener(btn4);
            btn5.MouseDownEventHandler += (sen, e) => ClickListener(btn5);
            btn6.MouseDownEventHandler += (sen, e) => ClickListener(btn6);
            btn7.MouseDownEventHandler += (sen, e) => ClickListener(btn7);
            btn8.MouseDownEventHandler += (sen, e) => ClickListener(btn8);
            btn9.MouseDownEventHandler += (sen, e) => ClickListener(btn9);
            btn0.MouseDownEventHandler += (sen, e) => ClickListener(btn0);
            btn.MouseDownEventHandler += (sen, e) => ClickListener(btn);
            btn_jia.MouseDownEventHandler += (sen, e) => ClickListener(btn_jia);
            btn_jian.MouseDownEventHandler += (sen, e) => ClickListener(btn_jian);
        }
        private void ClickListener(Button button)
        {
            if (button == null)
            {
                return;
            }
            button.BackgroundColor = DownBackgroundColor;
            action?.Invoke(button);
            button.MouseUpEventHandler += (sen, e) =>
            {
                button.BackgroundColor = UpBackgroundColor;
            };
        }
        /// <summary>
        /// 事件监听方法
        /// </summary>
        /// <param name="action">回调(点击控件对象</param>
        public void SetClickListener(Action<Button> action)
        {
            this.action = action;
        }
    }
}
HDL_ON/UI/UI2/FuntionControlView/Aks/GfPage.cs
File was renamed from HDL_ON/UI/UI2/FuntionControlView/Aks/GFPage.cs
@@ -9,9 +9,9 @@
    /// <summary>
    /// 功放界面
    /// </summary>
    public class GFPage : BaseFramLayout
    public class GfPage : BaseFramLayout
    {
        public GFPage()
        public GfPage()
        {
        }
@@ -23,7 +23,7 @@
        {
            //初始化UI
            this.InitUI();
            //初始化事件
            //初始化事件监听器
            this.EventListener();
            //读取数据
            this.ReadData();
@@ -41,7 +41,7 @@
            {
                Console.WriteLine("1");
            };
            //时序器
            typeMultiFramLayout.SetLeftFlClickListener((f) =>
            {
                SxqPage sxqPage = new SxqPage();
@@ -50,7 +50,7 @@
                sxqPage.Show();
            });
            //设备切换
            typeMultiFramLayout.SetRightFlClickListener((f) =>
            {
                Console.WriteLine("4");
@@ -75,16 +75,16 @@
            };
            this.AddChidren(btnTitle);
            cornerFram = new CornerFramLayout(343, 452, 4, 17);
            cornerFram = new CornerFramLayout(343, 452, 17);
            cornerFram.X = Application.GetRealWidth(16);
            cornerFram.Y = btnTitle.Bottom + Application.GetRealHeight(16);
            this.AddChidren(cornerFram);
            cornerFram.SetList(cornerFram.GetTestList(17));
            cornerFram.SetMargin(16, 0, 16, 0);
            cornerFram.LoadButtonPage();
            cornerFram.LoadButtonPage(4);
            CornerFramLayout cornerBottomFram = new CornerFramLayout(343, 72, 0, 17);
            CornerFramLayout cornerBottomFram = new CornerFramLayout(343, 72, 17);
            cornerBottomFram.X = Application.GetRealWidth(16);
            cornerBottomFram.Y = cornerFram.Bottom + Application.GetRealHeight(16);
            cornerBottomFram.BackgroundColor = MusicColor.WhiteColor;
HDL_ON/UI/UI2/FuntionControlView/Aks/JdhPage.cs
New file
@@ -0,0 +1,301 @@
using System;
using System.Collections.Generic;
using HDL_ON.UI.Music;
using HDL_ON.UI.UI2.FuntionControlView.Aks.CommonView;
using Shared;
using static HDL_ON.UI.UI2.FuntionControlView.Aks.AksPage;
namespace HDL_ON.UI.UI2.FuntionControlView.Aks
{
    /// <summary>
    /// 机顶盒界面
    /// </summary>
    public class JdhPage:BaseFramLayout
    {
        public JdhPage()
        {
        }
        public Action<IntType> action;
        /// <summary>
        /// 最上面功能键容器
        /// </summary>
        CornerFramLayout cornerTopFram;
        /// <summary>
        /// 数字按键容器
        /// </summary>
        CornerFramLayout numberFrame;
        /// <summary>
        /// 菜单容器
        /// </summary>
        MenuFramLayout menuFram;
        /// <summary>
        /// 切换设备容器
        /// </summary>
        TypeMultiFramLayout typeMultiFramLayout;
        public void Show()
        {
            //初始化UI
            this.InitUI();
            //初始化事件监听器
            this.EventListener();
            //读取数据
            this.ReadData();
        }
        private void ReadData()
        {
        }
        /// <summary>
        /// 事件监听器
        /// </summary>
        private void EventListener()
        {
            //功能键控制
            cornerTopFram.selectAction += (value) =>
            {
                Console.WriteLine("1");
            };
            //数字键控制
            numberFrame.selectAction += (s) =>
            {
                Console.WriteLine("打印====" + s);
            };
            //菜单上按键
            menuFram.SetTopClickListener((b) =>
            {
                Console.WriteLine("5");
            });
            //菜单下按键
            menuFram.SetBottomClickListener((b) =>
            {
                Console.WriteLine("6");
            });
            //菜单左按键
            menuFram.SetLeftClickListener((b) =>
            {
                Console.WriteLine("7");
            });
            //菜单右按键
            menuFram.SetRightClickListener((b) =>
            {
                Console.WriteLine("8");
            });
            //菜单ok按键
            menuFram.SetOkClickListener((b) =>
            {
                Console.WriteLine("9");
            });
            //时序器
            typeMultiFramLayout.SetLeftFlClickListener((f) =>
            {
                SxqPage sxqPage = new SxqPage();
                MainPage.BasePageView.AddChidren(sxqPage);
                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
                sxqPage.Show();
            });
            //设备切换
            typeMultiFramLayout.SetRightFlClickListener((f) =>
            {
                Console.WriteLine("4");
                action?.Invoke(IntType.STB);
            });
        }
        private void InitUI()
        {
            this.BackgroundColor = MusicColor.ViewColor;
            Button btnTitle = new Button
            {
                Y = Application.GetRealHeight(16),
                X = Application.GetRealWidth(16),
                Height = Application.GetRealHeight(22),
                Width = Application.GetRealWidth(200),
                TextAlignment = TextAlignment.CenterLeft,
                TextColor = MusicColor.TextColor,
                TextSize = TextSize.Text16,
                TextID = StringId.dianshi,
            };
            this.AddChidren(btnTitle);
            cornerTopFram = new CornerFramLayout(343, 452, 17);
            cornerTopFram.X = Application.GetRealWidth(16);
            cornerTopFram.Y = btnTitle.Bottom + Application.GetRealHeight(16);
            this.AddChidren(cornerTopFram);
            cornerTopFram.SetList(cornerTopFram.GetTestList(17));
            cornerTopFram.SetMargin(16, 0, 16, 0);
            cornerTopFram.LoadButtonPage(new List<int> { 5, 6 });
            #region  ----频道 控制----
            FrameLayout middLayout = new FrameLayout
            {
                Y = cornerTopFram.Bottom,
                Height = Application.GetRealHeight(61),
            };
            this.AddChidren(middLayout);
            FrameLayout leftLayout = new FrameLayout
            {
                X = Application.GetRealWidth(105),
                Y = Application.GetRealHeight(16),
                Height = Application.GetRealHeight(29),
                Width = Application.GetRealWidth(32),
            };
            middLayout.AddChidren(leftLayout);
            Button leftBtnTitle = new Button
            {
                Height = Application.GetRealHeight(22),
                Width = leftLayout.Width,
                TextAlignment = TextAlignment.Center,
                TextColor = MusicColor.TextColor,
                SelectedTextColor = MusicColor.MusicTxet14SelectedColor,
                TextSize = TextSize.Text16,
                TextID = StringId.pindao,
            };
            leftLayout.AddChidren(leftBtnTitle);
            Button leftBtnLine = new Button
            {
                Y = leftBtnTitle.Bottom + Application.GetRealHeight(4),
                Height = Application.GetRealHeight(2),
                Width = leftBtnTitle.GetTextWidth(),
                BackgroundColor = MusicColor.TextColor,
                SelectedBackgroundColor = MusicColor.MusicTxet14SelectedColor,
                Gravity = Gravity.CenterHorizontal,
            };
            leftLayout.AddChidren(leftBtnLine);
            //频道点击控件
            FrameLayout clickLeftLayout = new FrameLayout
            {
                Height = leftLayout.Height,
                Width = leftLayout.Width,
            };
            leftLayout.AddChidren(clickLeftLayout);
            FrameLayout rightLayout = new FrameLayout
            {
                X = leftLayout.Right + Application.GetRealWidth(100),
                Y = leftLayout.Y,
                Height = leftLayout.Height,
                Width = leftLayout.Width,
            };
            middLayout.AddChidren(rightLayout);
            Button rightBtnTitle = new Button
            {
                Height = Application.GetRealHeight(22),
                Width = rightLayout.Width,
                TextAlignment = TextAlignment.Center,
                TextColor = MusicColor.TextColor,
                SelectedTextColor = MusicColor.MusicTxet14SelectedColor,
                TextSize = TextSize.Text16,
                TextID = StringId.kongzhi,
            };
            rightLayout.AddChidren(rightBtnTitle);
            Button rightBtnLine = new Button
            {
                Y = rightBtnTitle.Bottom + Application.GetRealHeight(4),
                Height = Application.GetRealHeight(2),
                Width = rightBtnTitle.GetTextWidth(),
                BackgroundColor = MusicColor.TextColor,
                SelectedBackgroundColor = MusicColor.MusicTxet14SelectedColor,
                Gravity = Gravity.CenterHorizontal,
            };
            rightLayout.AddChidren(rightBtnLine);
            //电视点击控件
            FrameLayout clickRightLayout = new FrameLayout
            {
                Height = leftLayout.Height,
                Width = leftLayout.Width,
            };
            rightLayout.AddChidren(clickRightLayout);
            #endregion
            //数字按键容器
            numberFrame = new CornerFramLayout(343, 368, 17);
            numberFrame.X = Application.GetRealWidth(16);
            numberFrame.Y = middLayout.Bottom + Application.GetRealHeight(16);
            numberFrame.BackgroundColor = MusicColor.WhiteColor;
            numberFrame.SetMargin(16, 0, 16, 0);
            numberFrame.LoadNumberButtonPage();
            this.AddChidren(numberFrame);
            //菜单容器
            CornerFramLayout cornerBottomFram = new CornerFramLayout(343, 292, 17);
            cornerBottomFram.X = Application.GetRealWidth(16);
            cornerBottomFram.Y = middLayout.Bottom + Application.GetRealHeight(16);
            cornerBottomFram.BackgroundColor = MusicColor.WhiteColor;
            this.AddChidren(cornerBottomFram);
            menuFram = new MenuFramLayout();
            menuFram.Y = Application.GetRealHeight(24);
            menuFram.AddView(cornerBottomFram);
            typeMultiFramLayout = new TypeMultiFramLayout();
            typeMultiFramLayout.multiFramLayout.Y = menuFram.Bottom + Application.GetRealHeight(32);
            typeMultiFramLayout.AddView(cornerBottomFram);
            typeMultiFramLayout.btnBottonRightName.TextID = StringId.dianshi;
            //初始值
            leftBtnTitle.IsSelected = true;
            leftBtnLine.IsSelected = true;
            leftBtnLine.Visible = true;
            rightBtnTitle.IsSelected = false;
            rightBtnLine.IsSelected = false;
            rightBtnLine.Visible = false;
            numberFrame.Visible = true;
            cornerBottomFram.Visible = false;
            //频道点击事件
            clickLeftLayout.MouseDownEventHandler += (sen, e) =>
            {
                leftBtnTitle.IsSelected = true;
                leftBtnLine.IsSelected = true;
                leftBtnLine.Visible = true;
                rightBtnTitle.IsSelected = false;
                rightBtnLine.IsSelected = false;
                rightBtnLine.Visible = false;
                numberFrame.Visible = true;
                cornerBottomFram.Visible = false;
                this.AdjustRealHeight(16);
            };
            //控制点击事件
            clickRightLayout.MouseDownEventHandler += (sen, e) =>
            {
                leftBtnTitle.IsSelected = false;
                leftBtnLine.IsSelected = false;
                leftBtnLine.Visible = false;
                rightBtnTitle.IsSelected = true;
                rightBtnLine.IsSelected = true;
                rightBtnLine.Visible = true;
                numberFrame.Visible = false;
                cornerBottomFram.Visible = true;
                this.AdjustRealHeight(-60);
            };
            this.AdjustRealHeight(16);
        }
    }
}
HDL_ON/UI/UI2/FuntionControlView/Aks/MusicPage.cs
File was renamed from HDL_ON/UI/UI2/FuntionControlView/Aks/AksMusicPage.cs
@@ -4,17 +4,18 @@
using HDL_ON.UI.UI2.FuntionControlView.Aks.CommonView;
using Shared;
using static HDL_ON.UI.UI2.FuntionControlView.Aks.AksPage;
namespace HDL_ON.UI.UI2.FuntionControlView.Aks
{
    /// <summary>
    /// 播放器界面
    /// </summary>
    public class AksMusicPage : BaseFramLayout
    public class MusicPage : BaseFramLayout
    {
        public AksMusicPage()
        public MusicPage()
        {
        }
        public Action<IntType> action;
        CornerFramLayout cornerFram;
@@ -41,9 +42,9 @@
        private void EventListener()
        {
            cornerFram.selectAction += (value) =>
              {
                  Console.WriteLine("1");
              };
            {
                Console.WriteLine("1");
            };
            typeSingleFramLayout.SetClickListener((f) =>
            {
@@ -59,9 +60,9 @@
                Console.WriteLine("5");
            });
            menuFram.SetBottomClickListener((b) =>
             {
                 Console.WriteLine("6");
             });
            {
                Console.WriteLine("6");
            });
            menuFram.SetLeftClickListener((b) =>
            {
                Console.WriteLine("7");
@@ -108,16 +109,16 @@
            };
            this.AddChidren(btnTitle);
            cornerFram = new CornerFramLayout(343, 452, 4,17);
            cornerFram = new CornerFramLayout(343, 452, 17);
            cornerFram.X = Application.GetRealWidth(16);
            cornerFram.Y = btnTitle.Bottom + Application.GetRealHeight(16);
            this.AddChidren(cornerFram);
            cornerFram.SetList(cornerFram.GetTestList(16));
            cornerFram.SetMargin(16, 0, 16, 0);
            cornerFram.LoadButtonPage();
            cornerFram.LoadButtonPage(4);
            CornerFramLayout cornerBottomFram = new CornerFramLayout(343, 364, 0,17);
            CornerFramLayout cornerBottomFram = new CornerFramLayout(343, 364, 17);
            cornerBottomFram.X = Application.GetRealWidth(16);
            cornerBottomFram.Y = cornerFram.Bottom + Application.GetRealHeight(16);
            cornerBottomFram.BackgroundColor = MusicColor.WhiteColor;
@@ -141,5 +142,6 @@
        }
    }
}
HDL_ON/UI/UI2/FuntionControlView/Aks/TvPage.cs
@@ -15,16 +15,30 @@
        {
        }
        public Action<IntType> action;
        /// <summary>
        /// 最上面功能键容器
        /// </summary>
        CornerFramLayout cornerTopFram;
        /// <summary>
        /// 数字按键容器
        /// </summary>
        CornerFramLayout numberFrame;
        /// <summary>
        /// 菜单容器
        /// </summary>
        MenuFramLayout menuFram;
        /// <summary>
        /// 切换设备容器
        /// </summary>
        TypeMultiFramLayout typeMultiFramLayout;
        public void Show()
        {
            //初始化UI
            this.InitUI();
            //初始化事件
            //this.EventListener();
            //初始化事件监听器
            this.EventListener();
            //读取数据
            this.ReadData();
@@ -34,36 +48,48 @@
        {
        }
        /// <summary>
        /// 事件监听器
        /// </summary>
        private void EventListener()
        {
            //功能键控制
            cornerTopFram.selectAction += (value) =>
            {
                Console.WriteLine("1");
            };
            //数字键控制
            numberFrame.selectAction += (s) =>
            {
                Console.WriteLine("打印====" + s);
            };
            //菜单上按键
            menuFram.SetTopClickListener((b) =>
            {
                Console.WriteLine("5");
            });
            //菜单下按键
            menuFram.SetBottomClickListener((b) =>
            {
                Console.WriteLine("6");
            });
            //菜单左按键
            menuFram.SetLeftClickListener((b) =>
            {
                Console.WriteLine("7");
            });
            //菜单右按键
            menuFram.SetRightClickListener((b) =>
            {
                Console.WriteLine("8");
            });
            //菜单ok按键
            menuFram.SetOkClickListener((b) =>
            {
                Console.WriteLine("9");
            });
            //时序器
            typeMultiFramLayout.SetLeftFlClickListener((f) =>
            {
                SxqPage sxqPage = new SxqPage();
@@ -72,7 +98,7 @@
                sxqPage.Show();
            });
            //设备切换
            typeMultiFramLayout.SetRightFlClickListener((f) =>
            {
                Console.WriteLine("4");
@@ -97,7 +123,7 @@
            };
            this.AddChidren(btnTitle);
            cornerTopFram = new CornerFramLayout(343, 452, 4, 17);
            cornerTopFram = new CornerFramLayout(343, 452, 17);
            cornerTopFram.X = Application.GetRealWidth(16);
            cornerTopFram.Y = btnTitle.Bottom + Application.GetRealHeight(16);
            this.AddChidren(cornerTopFram);
@@ -105,28 +131,167 @@
            cornerTopFram.SetMargin(16, 0, 16, 0);
            cornerTopFram.LoadButtonPage(new List<int> { 5, 6 });
            #region  ----频道 控制----
            FrameLayout middLayout = new FrameLayout
            {
                Y = cornerTopFram.Bottom,
                Height = Application.GetRealHeight(61),
            };
            this.AddChidren(middLayout);
            FrameLayout leftLayout = new FrameLayout
            {
                X = Application.GetRealWidth(105),
                Y = Application.GetRealHeight(16),
                Height = Application.GetRealHeight(29),
                Width = Application.GetRealWidth(32),
            };
            middLayout.AddChidren(leftLayout);
            NumberFrameLayout numberFrame = new NumberFrameLayout();
            numberFrame.layout.X = Application.GetRealWidth(16);
            numberFrame.layout.Y = cornerTopFram.Bottom + Application.GetRealHeight(16);
            numberFrame.AddView(this);
            Button leftBtnTitle = new Button
            {
                Height = Application.GetRealHeight(22),
                Width = leftLayout.Width,
                TextAlignment = TextAlignment.Center,
                TextColor = MusicColor.TextColor,
                SelectedTextColor = MusicColor.MusicTxet14SelectedColor,
                TextSize = TextSize.Text16,
                TextID = StringId.pindao,
            };
            leftLayout.AddChidren(leftBtnTitle);
            //CornerFramLayout cornerBottomFram = new CornerFramLayout(343, 292, 0, 17);
            //cornerBottomFram.X = Application.GetRealWidth(16);
            //cornerBottomFram.Y = cornerTopFram.Bottom + Application.GetRealHeight(16);
            //cornerBottomFram.BackgroundColor = MusicColor.WhiteColor;
            //cornerBottomFram.Radius = (uint)Application.GetRealHeight(17);
            //this.AddChidren(cornerBottomFram);
            //menuFram = new MenuFramLayout();
            //menuFram.Y = Application.GetRealHeight(24);
            //menuFram.AddView(cornerBottomFram);
            Button leftBtnLine = new Button
            {
                Y = leftBtnTitle.Bottom + Application.GetRealHeight(4),
                Height = Application.GetRealHeight(2),
                Width = leftBtnTitle.GetTextWidth(),
                BackgroundColor = MusicColor.TextColor,
                SelectedBackgroundColor = MusicColor.MusicTxet14SelectedColor,
                Gravity = Gravity.CenterHorizontal,
            };
            leftLayout.AddChidren(leftBtnLine);
            //频道点击控件
            FrameLayout clickLeftLayout = new FrameLayout
            {
                Height = leftLayout.Height,
                Width = leftLayout.Width,
            };
            leftLayout.AddChidren(clickLeftLayout);
            //typeMultiFramLayout = new TypeMultiFramLayout();
            //typeMultiFramLayout.multiFramLayout.Y = menuFram.Bottom + Application.GetRealHeight(32);
            //typeMultiFramLayout.AddView(cornerBottomFram);
            //typeMultiFramLayout.btnBottonRightName.TextID =StringId.dianshi;
            FrameLayout rightLayout = new FrameLayout
            {
                X = leftLayout.Right + Application.GetRealWidth(100),
                Y = leftLayout.Y,
                Height = leftLayout.Height,
                Width = leftLayout.Width,
            };
            middLayout.AddChidren(rightLayout);
            Button rightBtnTitle = new Button
            {
                Height = Application.GetRealHeight(22),
                Width = rightLayout.Width,
                TextAlignment = TextAlignment.Center,
                TextColor = MusicColor.TextColor,
                SelectedTextColor = MusicColor.MusicTxet14SelectedColor,
                TextSize = TextSize.Text16,
                TextID = StringId.kongzhi,
            };
            rightLayout.AddChidren(rightBtnTitle);
            Button rightBtnLine = new Button
            {
                Y = rightBtnTitle.Bottom + Application.GetRealHeight(4),
                Height = Application.GetRealHeight(2),
                Width = rightBtnTitle.GetTextWidth(),
                BackgroundColor = MusicColor.TextColor,
                SelectedBackgroundColor = MusicColor.MusicTxet14SelectedColor,
                Gravity = Gravity.CenterHorizontal,
            };
            rightLayout.AddChidren(rightBtnLine);
            //电视点击控件
            FrameLayout clickRightLayout = new FrameLayout
            {
                Height = leftLayout.Height,
                Width = leftLayout.Width,
            };
            rightLayout.AddChidren(clickRightLayout);
            #endregion
            //数字按键容器
            numberFrame = new CornerFramLayout(343, 368, 17);
            numberFrame.X = Application.GetRealWidth(16);
            numberFrame.Y = middLayout.Bottom + Application.GetRealHeight(16);
            numberFrame.BackgroundColor = MusicColor.WhiteColor;
            numberFrame.SetMargin(16,0,16,0);
            numberFrame.LoadNumberButtonPage();
            this.AddChidren(numberFrame);
            //菜单容器
            CornerFramLayout cornerBottomFram = new CornerFramLayout(343, 292, 17);
            cornerBottomFram.X = Application.GetRealWidth(16);
            cornerBottomFram.Y = middLayout.Bottom + Application.GetRealHeight(16);
            cornerBottomFram.BackgroundColor = MusicColor.WhiteColor;
            this.AddChidren(cornerBottomFram);
            menuFram = new MenuFramLayout();
            menuFram.Y = Application.GetRealHeight(24);
            menuFram.AddView(cornerBottomFram);
            typeMultiFramLayout = new TypeMultiFramLayout();
            typeMultiFramLayout.multiFramLayout.Y = menuFram.Bottom + Application.GetRealHeight(32);
            typeMultiFramLayout.AddView(cornerBottomFram);
            typeMultiFramLayout.btnBottonRightName.TextID = StringId.dianshi;
            //初始值
            leftBtnTitle.IsSelected = true;
            leftBtnLine.IsSelected = true;
            leftBtnLine.Visible = true;
            rightBtnTitle.IsSelected = false;
            rightBtnLine.IsSelected = false;
            rightBtnLine.Visible = false;
            numberFrame.Visible = true;
            cornerBottomFram.Visible = false;
            //频道点击事件
            clickLeftLayout.MouseDownEventHandler += (sen, e) =>
            {
                leftBtnTitle.IsSelected = true;
                leftBtnLine.IsSelected = true;
                leftBtnLine.Visible = true;
                rightBtnTitle.IsSelected = false;
                rightBtnLine.IsSelected = false;
                rightBtnLine.Visible = false;
                numberFrame.Visible = true;
                cornerBottomFram.Visible = false;
                this.AdjustRealHeight(16);
            };
            //控制点击事件
            clickRightLayout.MouseDownEventHandler += (sen, e) =>
            {
                leftBtnTitle.IsSelected = false;
                leftBtnLine.IsSelected = false;
                leftBtnLine.Visible = false;
                rightBtnTitle.IsSelected = true;
                rightBtnLine.IsSelected = true;
                rightBtnLine.Visible = true;
                numberFrame.Visible = false;
                cornerBottomFram.Visible = true;
                this.AdjustRealHeight(-60);
            };
            this.AdjustRealHeight(16);
        }
HDL_ON/UI/UI2/FuntionControlView/Aks/TyyPage.cs
File was renamed from HDL_ON/UI/UI2/FuntionControlView/Aks/TYYPage.cs
@@ -9,12 +9,11 @@
    /// <summary>
    /// 投影仪界面
    /// </summary>
    public class TYYPage : BaseFramLayout
    public class TyyPage : BaseFramLayout
    {
        public TYYPage()
        public TyyPage()
        {
        }
        public Action<IntType> action;
        CornerFramLayout cornerTopFram;
        MenuFramLayout menuFram;
@@ -24,7 +23,7 @@
        {
            //初始化UI
            this.InitUI();
            //初始化事件
            //初始化事件监听器
            this.EventListener();
            //读取数据
            this.ReadData();
@@ -35,36 +34,47 @@
        {
        }
        /// <summary>
        /// 事件监听器
        /// </summary>
        private void EventListener()
        {
            //功能键控制
            cornerTopFram.selectAction += (value) =>
            {
                Console.WriteLine("1");
            };
            //菜单上按键
            menuFram.SetTopClickListener((b) =>
            {
                Console.WriteLine("5");
            });
            //菜单下按键
            menuFram.SetBottomClickListener((b) =>
            {
                Console.WriteLine("6");
            });
            //菜单左按键
            menuFram.SetLeftClickListener((b) =>
            {
                Console.WriteLine("7");
            });
            //菜单右按键
            menuFram.SetRightClickListener((b) =>
            {
                Console.WriteLine("8");
            });
            //菜单ok按键
            menuFram.SetOkClickListener((b) =>
            {
                Console.WriteLine("9");
            });
            //时序器
            typeMultiFramLayout.SetLeftFlClickListener((f) =>
            {
                SxqPage sxqPage = new SxqPage();
@@ -73,7 +83,7 @@
                sxqPage.Show();
            });
            //设备切换
            typeMultiFramLayout.SetRightFlClickListener((f) =>
            {
                Console.WriteLine("4");
@@ -98,7 +108,7 @@
            };
            this.AddChidren(btnTitle);
            cornerTopFram = new CornerFramLayout(343, 452, 4, 17);
            cornerTopFram = new CornerFramLayout(343, 452, 17);
            cornerTopFram.X = Application.GetRealWidth(16);
            cornerTopFram.Y = btnTitle.Bottom + Application.GetRealHeight(16);
            this.AddChidren(cornerTopFram);
@@ -107,7 +117,7 @@
            cornerTopFram.LoadButtonPage(new List<int> { 3, 4, 5 });
            CornerFramLayout cornerBottomFram = new CornerFramLayout(343, 292, 0, 17);
            CornerFramLayout cornerBottomFram = new CornerFramLayout(343, 292, 17);
            cornerBottomFram.X = Application.GetRealWidth(16);
            cornerBottomFram.Y = cornerTopFram.Bottom + Application.GetRealHeight(16);
            cornerBottomFram.BackgroundColor = MusicColor.WhiteColor;
HDL_ON/UI/UI2/FuntionControlView/Aks/YkPage.cs
@@ -37,7 +37,7 @@
            //初始化UI
            this.InitTop();
            this.InitMiddle();
            //初始化事件
            //初始化事件监听器
            this.EventListener();
            //读取数据
@@ -134,7 +134,7 @@
            };
            CornerFramLayout imageFLayout = new CornerFramLayout(343, 20 * 168, 3, 0);
            CornerFramLayout imageFLayout = new CornerFramLayout(343, 20 * 168, 0);
            vv.AddChidren(imageFLayout);
            imageFLayout.X = Application.GetRealWidth(16);
            imageFLayout.SetList(imageFLayout.GetTestList(20));
HDL_ON/UI/UI2/FuntionControlView/Aks/YkqPage.cs
New file
@@ -0,0 +1,312 @@
using System;
using System.Collections.Generic;
using HDL_ON.UI.Music;
using HDL_ON.UI.UI2.FuntionControlView.Aks.CommonView;
using Shared;
using static HDL_ON.UI.UI2.FuntionControlView.Aks.AksPage;
namespace HDL_ON.UI.UI2.FuntionControlView.Aks
{
    /// <summary>
    ///遥控器界面
    /// </summary>
    public class YkqPage : BaseFramLayout
    {
        public YkqPage()
        {
        }
        public Action<IntType> action;
        /// <summary>
        /// 最上面功能键容器
        /// </summary>
        CornerFramLayout cornerTopFram;
        /// <summary>
        /// 数字按键容器
        /// </summary>
        CornerFramLayout numberFrame;
        /// <summary>
        /// 菜单容器
        /// </summary>
        MenuFramLayout menuFram;
        /// <summary>
        /// 切换设备容器
        /// </summary>
        TypeMultiFramLayout typeMultiFramLayout;
        public void Show()
        {
            //初始化UI
            this.InitUI();
            //初始化事件监听器
            this.EventListener();
            //读取数据
            this.ReadData();
        }
        private void ReadData()
        {
        }
        /// <summary>
        /// 事件监听器
        /// </summary>
        private void EventListener()
        {
            //功能键控制
            cornerTopFram.selectAction += (value) =>
            {
                Console.WriteLine("1");
            };
            //数字键控制
            numberFrame.selectAction += (s) =>
            {
                Console.WriteLine("打印====" + s);
            };
            //菜单上按键
            menuFram.SetTopClickListener((b) =>
            {
                Console.WriteLine("5");
            });
            //菜单下按键
            menuFram.SetBottomClickListener((b) =>
            {
                Console.WriteLine("6");
            });
            //菜单左按键
            menuFram.SetLeftClickListener((b) =>
            {
                Console.WriteLine("7");
            });
            //菜单右按键
            menuFram.SetRightClickListener((b) =>
            {
                Console.WriteLine("8");
            });
            //菜单ok按键
            menuFram.SetOkClickListener((b) =>
            {
                Console.WriteLine("9");
            });
            //时序器
            typeMultiFramLayout.SetLeftFlClickListener((f) =>
            {
                SxqPage sxqPage = new SxqPage();
                MainPage.BasePageView.AddChidren(sxqPage);
                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
                sxqPage.Show();
            });
            //设备切换
            typeMultiFramLayout.SetRightFlClickListener((f) =>
            {
                Console.WriteLine("4");
                action?.Invoke(IntType.TV);
            });
        }
        private void InitUI()
        {
            this.BackgroundColor = MusicColor.ViewColor;
            Button btnTitle = new Button
            {
                Y = Application.GetRealHeight(16),
                X = Application.GetRealWidth(16),
                Height = Application.GetRealHeight(22),
                Width = Application.GetRealWidth(200),
                TextAlignment = TextAlignment.CenterLeft,
                TextColor = MusicColor.TextColor,
                TextSize = TextSize.Text16,
                TextID = StringId.xuniyaokongqi,
            };
            this.AddChidren(btnTitle);
            FrameLayout layout = new FrameLayout {
                Y = btnTitle.Bottom + Application.GetRealHeight(16),
                X=Application.GetRealWidth(71),
                Width=Application.GetRealWidth(232),
                Radius=(uint)Application.GetRealHeight(17),
                BackgroundColor= 0xff19181E,
            };
            this.AddChidren(layout);
            cornerTopFram = new CornerFramLayout(343, 452, 17);
            cornerTopFram.X = Application.GetRealWidth(16);
            cornerTopFram.Y = btnTitle.Bottom + Application.GetRealHeight(16);
            this.AddChidren(cornerTopFram);
            cornerTopFram.SetList(cornerTopFram.GetTestList(17));
            cornerTopFram.SetMargin(16, 0, 16, 0);
            cornerTopFram.LoadButtonPage(new List<int> { 5, 6 });
            #region  ----频道 控制----
            FrameLayout middLayout = new FrameLayout
            {
                Y = cornerTopFram.Bottom,
                Height = Application.GetRealHeight(61),
            };
            this.AddChidren(middLayout);
            FrameLayout leftLayout = new FrameLayout
            {
                X = Application.GetRealWidth(105),
                Y = Application.GetRealHeight(16),
                Height = Application.GetRealHeight(29),
                Width = Application.GetRealWidth(32),
            };
            middLayout.AddChidren(leftLayout);
            Button leftBtnTitle = new Button
            {
                Height = Application.GetRealHeight(22),
                Width = leftLayout.Width,
                TextAlignment = TextAlignment.Center,
                TextColor = MusicColor.TextColor,
                SelectedTextColor = MusicColor.MusicTxet14SelectedColor,
                TextSize = TextSize.Text16,
                TextID = StringId.pindao,
            };
            leftLayout.AddChidren(leftBtnTitle);
            Button leftBtnLine = new Button
            {
                Y = leftBtnTitle.Bottom + Application.GetRealHeight(4),
                Height = Application.GetRealHeight(2),
                Width = leftBtnTitle.GetTextWidth(),
                BackgroundColor = MusicColor.TextColor,
                SelectedBackgroundColor = MusicColor.MusicTxet14SelectedColor,
                Gravity = Gravity.CenterHorizontal,
            };
            leftLayout.AddChidren(leftBtnLine);
            //频道点击控件
            FrameLayout clickLeftLayout = new FrameLayout
            {
                Height = leftLayout.Height,
                Width = leftLayout.Width,
            };
            leftLayout.AddChidren(clickLeftLayout);
            FrameLayout rightLayout = new FrameLayout
            {
                X = leftLayout.Right + Application.GetRealWidth(100),
                Y = leftLayout.Y,
                Height = leftLayout.Height,
                Width = leftLayout.Width,
            };
            middLayout.AddChidren(rightLayout);
            Button rightBtnTitle = new Button
            {
                Height = Application.GetRealHeight(22),
                Width = rightLayout.Width,
                TextAlignment = TextAlignment.Center,
                TextColor = MusicColor.TextColor,
                SelectedTextColor = MusicColor.MusicTxet14SelectedColor,
                TextSize = TextSize.Text16,
                TextID = StringId.kongzhi,
            };
            rightLayout.AddChidren(rightBtnTitle);
            Button rightBtnLine = new Button
            {
                Y = rightBtnTitle.Bottom + Application.GetRealHeight(4),
                Height = Application.GetRealHeight(2),
                Width = rightBtnTitle.GetTextWidth(),
                BackgroundColor = MusicColor.TextColor,
                SelectedBackgroundColor = MusicColor.MusicTxet14SelectedColor,
                Gravity = Gravity.CenterHorizontal,
            };
            rightLayout.AddChidren(rightBtnLine);
            //电视点击控件
            FrameLayout clickRightLayout = new FrameLayout
            {
                Height = leftLayout.Height,
                Width = leftLayout.Width,
            };
            rightLayout.AddChidren(clickRightLayout);
            #endregion
            //数字按键容器
            numberFrame = new CornerFramLayout(343, 368, 17);
            numberFrame.X = Application.GetRealWidth(16);
            numberFrame.Y = middLayout.Bottom + Application.GetRealHeight(16);
            numberFrame.BackgroundColor = MusicColor.WhiteColor;
            numberFrame.SetMargin(16, 0, 16, 0);
            numberFrame.LoadNumberButtonPage();
            this.AddChidren(numberFrame);
            //菜单容器
            CornerFramLayout cornerBottomFram = new CornerFramLayout(343, 292, 17);
            cornerBottomFram.X = Application.GetRealWidth(16);
            cornerBottomFram.Y = middLayout.Bottom + Application.GetRealHeight(16);
            cornerBottomFram.BackgroundColor = MusicColor.WhiteColor;
            this.AddChidren(cornerBottomFram);
            menuFram = new MenuFramLayout();
            menuFram.Y = Application.GetRealHeight(24);
            menuFram.AddView(cornerBottomFram);
            typeMultiFramLayout = new TypeMultiFramLayout();
            typeMultiFramLayout.multiFramLayout.Y = menuFram.Bottom + Application.GetRealHeight(32);
            typeMultiFramLayout.AddView(cornerBottomFram);
            typeMultiFramLayout.btnBottonRightName.TextID = StringId.dianshi;
            //初始值
            leftBtnTitle.IsSelected = true;
            leftBtnLine.IsSelected = true;
            leftBtnLine.Visible = true;
            rightBtnTitle.IsSelected = false;
            rightBtnLine.IsSelected = false;
            rightBtnLine.Visible = false;
            numberFrame.Visible = true;
            cornerBottomFram.Visible = false;
            //频道点击事件
            clickLeftLayout.MouseDownEventHandler += (sen, e) =>
            {
                leftBtnTitle.IsSelected = true;
                leftBtnLine.IsSelected = true;
                leftBtnLine.Visible = true;
                rightBtnTitle.IsSelected = false;
                rightBtnLine.IsSelected = false;
                rightBtnLine.Visible = false;
                numberFrame.Visible = true;
                cornerBottomFram.Visible = false;
                this.AdjustRealHeight(16);
            };
            //控制点击事件
            clickRightLayout.MouseDownEventHandler += (sen, e) =>
            {
                leftBtnTitle.IsSelected = false;
                leftBtnLine.IsSelected = false;
                leftBtnLine.Visible = false;
                rightBtnTitle.IsSelected = true;
                rightBtnLine.IsSelected = true;
                rightBtnLine.Visible = true;
                numberFrame.Visible = false;
                cornerBottomFram.Visible = true;
                this.AdjustRealHeight(-60);
            };
            this.AdjustRealHeight(16);
        }
    }
}