| | |
| | | TextAlignment = TextAlignment.Center, |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Padding = new Padding(0, 20, 0, 20), |
| | | IsMoreLines = true, |
| | | Name = "btnName", |
| | | |
| | | |
| | |
| | | /// </summary> |
| | | public void AddLeftLine() |
| | | { |
| | | btnLeftLine.Height = this.Height; |
| | | this.AddChidren(btnLeftLine); |
| | | } |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | public void AddRightLine() |
| | | { |
| | | btnRightLine.Height = this.Height; |
| | | btnRightLine.X = this.Width - Application.GetRealWidth(1); |
| | | this.AddChidren(btnRightLine); |
| | | } |
| | | |
| | |
| | | /// </summary> |
| | | public void AddTopLine() |
| | | { |
| | | btnTopLine.Width = this.Width; |
| | | this.AddChidren(btnTopLine); |
| | | } |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | public void AddBottomLine() |
| | | { |
| | | btnBottomLine.Y = this.Height - Application.GetRealHeight(1); |
| | | btnBottomLine.Width = this.Width; |
| | | this.AddChidren(btnBottomLine); |
| | | } |
| | | |