| | |
| | | PageLayout contentPageView; |
| | | Button btnAutomationTitle; |
| | | |
| | | Button btnAddIconBg; |
| | | |
| | | |
| | | #region 安防区域 |
| | | FrameLayout securityView; |
| | | Button btnSecurityTitle; |
| | |
| | | }; |
| | | topView.AddChidren(btnSceneTilte); |
| | | btnAutomationTitle = new Button(); |
| | | btnAutomationTitle = new Button(); |
| | | |
| | | } |
| | | } |
| | |
| | | TextID = StringId.Automation, |
| | | }; |
| | | topView.AddChidren(btnAutomationTitle); |
| | | btnAutomationTitle = new Button(); |
| | | } |
| | | } |
| | | var btnAddIconBg = new Button() |
| | | btnAddIconBg = new Button() |
| | | { |
| | | X = Application.GetRealWidth(337), |
| | | Y = Application.GetRealHeight(29), |
| | |
| | | { |
| | | if (contentPageView.PageIndex == 2) |
| | | { |
| | | btnAddIconBg.Visible = false; |
| | | btnSecurityTitle.IsSelected = true; |
| | | btnSecurityTitle.TextSize = CSS_FontSize.HeadlineFontSize; |
| | | btnSecurityTitle.IsBold = true; |
| | |
| | | } |
| | | else if (contentPageView.PageIndex == 0) |
| | | { |
| | | btnAddIconBg.Visible = true; |
| | | btnSecurityTitle.IsSelected = false; |
| | | btnSecurityTitle.TextSize = CSS_FontSize.TextFontSize; |
| | | btnSecurityTitle.IsBold = false; |
| | |
| | | } |
| | | else |
| | | { |
| | | btnAddIconBg.Visible = true; |
| | | btnSecurityTitle.IsSelected = false; |
| | | btnSecurityTitle.TextSize = CSS_FontSize.TextFontSize; |
| | | btnSecurityTitle.IsBold = false; |
| | |
| | | btnSceneTilte.TextSize = CSS_FontSize.TextFontSize; |
| | | contentPageView.PageIndex = 1; |
| | | }; |
| | | btnSecurityTitle.MouseUpEventHandler = (sender, e) => { |
| | | if (btnSecurityTitle != null) |
| | | { |
| | | btnSecurityTitle.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | if(btnSecurityTitle.IsSelected ) |
| | | { |
| | | return; |
| | |
| | | contentPageView.PageIndex = 2; |
| | | }; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | /// <summary> |