| | |
| | | /// </summary> |
| | | public FrameLayout Line; |
| | | /// <summary> |
| | | /// ClickBtn |
| | | /// </summary> |
| | | public Button ClickBtn; |
| | | /// <summary> |
| | | /// v_Selected |
| | | /// </summary> |
| | | private bool v_Selected; |
| | |
| | | Text = title, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Gravity = Gravity.CenterVertical, |
| | | Tag = this.Tag |
| | | Tag = this.Tag, |
| | | TextSize=14 |
| | | }; |
| | | AddChidren(TitleButton); |
| | | |
| | |
| | | { |
| | | AddChidren(Line); |
| | | } |
| | | |
| | | ClickBtn = new Button { Tag = this.Tag }; |
| | | AddChidren(ClickBtn); |
| | | |
| | | } |
| | | #endregion |
| | | |
| | |
| | | { |
| | | IconButton.IsSelected = statu; |
| | | TitleButton.IsSelected = statu; |
| | | TitleButton.IsBold = statu; |
| | | ClickBtn.IsSelected = statu; |
| | | } |
| | | /// <summary> |
| | | /// 选中 |
| | | /// </summary> |
| | | public void SetSelectedStatu() |
| | | { |
| | | IconButton.IsSelected = true; |
| | | TitleButton.IsSelected = true; |
| | | SetStatu(true); |
| | | } |
| | | /// <summary> |
| | | /// 不选中 |
| | | /// </summary> |
| | | public void SetUnSelectedStatu() |
| | | { |
| | | IconButton.IsSelected = false; |
| | | TitleButton.IsSelected = false; |
| | | SetStatu(false); |
| | | } |
| | | /// <summary> |
| | | /// HidenLine |
| | | /// </summary> |
| | | /// <param name="statu"></param> |
| | | public void HidenLine(bool statu) |
| | | { |
| | | Line.Visible = !statu; |
| | | } |
| | | |
| | | #endregion |
| | | } |
| | | } |