public ButtonCellView(ButtonElement element) : base(UITableViewCellStyle.Value1, skey) { parent = element; this.BackgroundColor = UIColor.Clear; btn = new UIGlassyButton(RectangleF.Empty); btn.Color = parent.Color; btn.TitleColor = parent.TitleColor; btn.Title = element.Caption; btn.TouchUpInside += delegate { if (parent.Tapped != null) { parent.Tapped(); } }; ContentView.Add(btn); }
public ButtonCellView(ButtonElement element) : base(UITableViewCellStyle.Value1, skey) { parent = element; this.BackgroundColor = UIColor.Clear; btn = new UIGlassyButton(RectangleF.Empty); btn.Color = parent.Color; btn.TitleColor = parent.TitleColor; btn.Title = element.Caption; btn.TouchUpInside += delegate{ if(parent.Tapped != null) parent.Tapped(); }; ContentView.Add (btn); }