using System; using System.Collections.Generic; using System.Text; namespace Shared.Phone.UserCenter { /// /// 做成一个位于右边的开关控件,规格:180 X 120 /// public class SwichControl : ButtonCommon { /// /// 做成一个位于Rowlayout右边的开关控件(上下居中),规格:180 X 120 /// public SwichControl() { this.Width = Application.GetMinRealAverage(180); this.Height = Application.GetMinRealAverage(120); this.X = Application.GetRealWidth(850); this.UnSelectedImagePath = "Item/Switch.png"; this.SelectedImagePath = "Item/SwitchSelected.png"; this.Gravity = Gravity.CenterVertical; } } }