private void InitBasic() { // Some basic rows LegendItem item1 = new LegendItem("Default","",UITableViewCellStyle.Default,UITableViewCellAccessory.None); LegendItem item2 = new LegendItem("Subtitle","Here is more description",UITableViewCellStyle.Subtitle,UITableViewCellAccessory.None); LegendItem item3 = new LegendItem("Value 1 - no accessory","Here is more description",UITableViewCellStyle.Value1,UITableViewCellAccessory.None); LegendItem item4 = new LegendItem("Value 2 - no accessory","Here is more description",UITableViewCellStyle.Value2,UITableViewCellAccessory.None); LegendItem item5 = new LegendItem("Checkmark","",UITableViewCellStyle.Default,UITableViewCellAccessory.Checkmark); LegendItem item6 = new LegendItem("DetailDisclosureButton","",UITableViewCellStyle.Default,UITableViewCellAccessory.DetailDisclosureButton); LegendItem item7 = new LegendItem("DisclosureIndicator","",UITableViewCellStyle.Default,UITableViewCellAccessory.DisclosureIndicator); _items.Add(item1); _items.Add(item2); _items.Add(item3); _items.Add(item4); _items.Add(item5); _items.Add(item6); _items.Add(item7); }
private void InitBasic() { // Some basic rows LegendItem item1 = new LegendItem("Default", "", UITableViewCellStyle.Default, UITableViewCellAccessory.None); LegendItem item2 = new LegendItem("Subtitle", "Here is more description", UITableViewCellStyle.Subtitle, UITableViewCellAccessory.None); LegendItem item3 = new LegendItem("Value 1 - no accessory", "Here is more description", UITableViewCellStyle.Value1, UITableViewCellAccessory.None); LegendItem item4 = new LegendItem("Value 2 - no accessory", "Here is more description", UITableViewCellStyle.Value2, UITableViewCellAccessory.None); LegendItem item5 = new LegendItem("Checkmark", "", UITableViewCellStyle.Default, UITableViewCellAccessory.Checkmark); LegendItem item6 = new LegendItem("DetailDisclosureButton", "", UITableViewCellStyle.Default, UITableViewCellAccessory.DetailDisclosureButton); LegendItem item7 = new LegendItem("DisclosureIndicator", "", UITableViewCellStyle.Default, UITableViewCellAccessory.DisclosureIndicator); _items.Add(item1); _items.Add(item2); _items.Add(item3); _items.Add(item4); _items.Add(item5); _items.Add(item6); _items.Add(item7); }
private void InitAdvanced() { // Single image //LegendItem item1 = new LegendItem("Image","",UITableViewCellStyle.Default,UITableViewCellAccessory.None); //item1.Image = UIImage.FromFile("bulb_on.png"); // // Two images // //LegendItem item2 = new LegendItem("Two images","",UITableViewCellStyle.Default,UITableViewCellAccessory.DisclosureIndicator); //item2.Image = UIImage.FromFile("bulb_on.png"); // This is the easiest way to set the right image if you don't want to trap it being clicked in the delegate //UIImageView imageView = new UIImageView(UIImage.FromFile("bulb_off.png"),UIImage.FromFile("bulb_off.png")); //item2.AccessoryView = imageView; // If you want to trap AccessoryButtonTapped in the delegate, you need to use a UIButton //UIButton button = UIButton.FromType(UIButtonType.Custom); /* pep temp commented button.TouchDown += delegate { UITableViewController nextController = new CheckmarkDemoTableController(UITableViewStyle.Grouped); _parentController.NavigationController.PushViewController(nextController,true); };*/ //button.SetBackgroundImage(UIImage.FromFile("bulb_off.png"),UIControlState.Normal); //button.SetBackgroundImage(UIImage.FromFile("bulb_off.png"),UIControlState.Selected); //button.Frame = new System.Drawing.RectangleF(0,0,26,26); //item2.AccessoryView = button; // // Two images + custom control // LegendItem item3 = new LegendItem("Transparency","",UITableViewCellStyle.Default,UITableViewCellAccessory.None); //item3.Image = UIImage.FromFile("bulb_on.png"); UISlider slider = new UISlider(); slider.MaxValue = 100f; slider.Value = 50f; slider.MinValue = 0f; slider.Frame = new RectangleF(140,9,150,23); slider.Value=_parentController.chart.Chart.Legend.Transparency; slider.ValueChanged+=delegate{ _parentController.chart.Chart.Legend.Transparency = (int)slider.Value; }; item3.ContentView = slider; //UIImageView imageView1 = new UIImageView(UIImage.FromFile("bulb_off.png"),UIImage.FromFile("bulb_off.png")); //item3.AccessoryView = imageView1; // A switcher legend visible LegendItem item4 = new LegendItem("Visible","",UITableViewCellStyle.Default,UITableViewCellAccessory.None); UISwitch switcher = new UISwitch(); item4.AccessoryView = switcher; switcher.On=_parentController.chart.Chart.Legend.Visible; switcher.ValueChanged+=delegate{ _parentController.chart.Chart.Legend.Visible = switcher.On; }; // A switcher legend transparent LegendItem item5 = new LegendItem("Transparent","",UITableViewCellStyle.Default,UITableViewCellAccessory.None); UISwitch switcher2 = new UISwitch(); item5.AccessoryView = switcher2; switcher2.On=_parentController.chart.Chart.Legend.Transparent; switcher2.ValueChanged+=delegate{ _parentController.chart.Chart.Legend.Transparent = switcher2.On; }; // A switcher legend symbols visible LegendItem item6 = new LegendItem("Symbols","",UITableViewCellStyle.Default,UITableViewCellAccessory.None); UISwitch switcher3 = new UISwitch(); item6.AccessoryView = switcher3; switcher3.On=_parentController.chart.Chart.Legend.Symbol.Visible; switcher3.ValueChanged+=delegate{ _parentController.chart.Chart.Legend.Symbol.Visible = switcher3.On; }; // A switcher legend shadow visible LegendItem item7 = new LegendItem("Shadow","",UITableViewCellStyle.Default,UITableViewCellAccessory.None); UISwitch switcher4 = new UISwitch(); item7.AccessoryView = switcher4; switcher4.On=_parentController.chart.Chart.Legend.Shadow.Visible; switcher4.ValueChanged+=delegate{ _parentController.chart.Chart.Legend.Shadow.Visible = switcher4.On; }; // A switcher legend pen visible LegendItem item8 = new LegendItem("Pen Border","",UITableViewCellStyle.Default,UITableViewCellAccessory.None); UISwitch switcher5 = new UISwitch(); item8.AccessoryView = switcher5; switcher5.On=_parentController.chart.Chart.Legend.Pen.Visible; switcher5.ValueChanged+=delegate{ _parentController.chart.Chart.Legend.Pen.Visible = switcher5.On; }; //LegendItem item5 = new LegendItem("Checkmark","",UITableViewCellStyle.Default,UITableViewCellAccessory.Checkmark); //_items.Add(item1); //_items.Add(item2); _items.Add(item3); _items.Add(item4); _items.Add(item5); _items.Add(item6); _items.Add(item7); _items.Add(item8); }
private void InitAdvanced() { // Single image //LegendItem item1 = new LegendItem("Image","",UITableViewCellStyle.Default,UITableViewCellAccessory.None); //item1.Image = UIImage.FromFile("bulb_on.png"); // // Two images // //LegendItem item2 = new LegendItem("Two images","",UITableViewCellStyle.Default,UITableViewCellAccessory.DisclosureIndicator); //item2.Image = UIImage.FromFile("bulb_on.png"); // This is the easiest way to set the right image if you don't want to trap it being clicked in the delegate //UIImageView imageView = new UIImageView(UIImage.FromFile("bulb_off.png"),UIImage.FromFile("bulb_off.png")); //item2.AccessoryView = imageView; // If you want to trap AccessoryButtonTapped in the delegate, you need to use a UIButton //UIButton button = UIButton.FromType(UIButtonType.Custom); /* pep temp commented button.TouchDown += delegate { * UITableViewController nextController = new CheckmarkDemoTableController(UITableViewStyle.Grouped); * _parentController.NavigationController.PushViewController(nextController,true); * };*/ //button.SetBackgroundImage(UIImage.FromFile("bulb_off.png"),UIControlState.Normal); //button.SetBackgroundImage(UIImage.FromFile("bulb_off.png"),UIControlState.Selected); //button.Frame = new System.Drawing.RectangleF(0,0,26,26); //item2.AccessoryView = button; // // Two images + custom control // LegendItem item3 = new LegendItem("Transparency", "", UITableViewCellStyle.Default, UITableViewCellAccessory.None); //item3.Image = UIImage.FromFile("bulb_on.png"); UISlider slider = new UISlider(); slider.MaxValue = 100f; slider.Value = 50f; slider.MinValue = 0f; slider.Frame = new RectangleF(140, 9, 150, 23); slider.Value = _parentController.chart.Chart.Legend.Transparency; slider.ValueChanged += delegate { _parentController.chart.Chart.Legend.Transparency = (int)slider.Value; }; item3.ContentView = slider; //UIImageView imageView1 = new UIImageView(UIImage.FromFile("bulb_off.png"),UIImage.FromFile("bulb_off.png")); //item3.AccessoryView = imageView1; // A switcher legend visible LegendItem item4 = new LegendItem("Visible", "", UITableViewCellStyle.Default, UITableViewCellAccessory.None); UISwitch switcher = new UISwitch(); item4.AccessoryView = switcher; switcher.On = _parentController.chart.Chart.Legend.Visible; switcher.ValueChanged += delegate { _parentController.chart.Chart.Legend.Visible = switcher.On; }; // A switcher legend transparent LegendItem item5 = new LegendItem("Transparent", "", UITableViewCellStyle.Default, UITableViewCellAccessory.None); UISwitch switcher2 = new UISwitch(); item5.AccessoryView = switcher2; switcher2.On = _parentController.chart.Chart.Legend.Transparent; switcher2.ValueChanged += delegate { _parentController.chart.Chart.Legend.Transparent = switcher2.On; }; // A switcher legend symbols visible LegendItem item6 = new LegendItem("Symbols", "", UITableViewCellStyle.Default, UITableViewCellAccessory.None); UISwitch switcher3 = new UISwitch(); item6.AccessoryView = switcher3; switcher3.On = _parentController.chart.Chart.Legend.Symbol.Visible; switcher3.ValueChanged += delegate { _parentController.chart.Chart.Legend.Symbol.Visible = switcher3.On; }; // A switcher legend shadow visible LegendItem item7 = new LegendItem("Shadow", "", UITableViewCellStyle.Default, UITableViewCellAccessory.None); UISwitch switcher4 = new UISwitch(); item7.AccessoryView = switcher4; switcher4.On = _parentController.chart.Chart.Legend.Shadow.Visible; switcher4.ValueChanged += delegate { _parentController.chart.Chart.Legend.Shadow.Visible = switcher4.On; }; // A switcher legend pen visible LegendItem item8 = new LegendItem("Pen Border", "", UITableViewCellStyle.Default, UITableViewCellAccessory.None); UISwitch switcher5 = new UISwitch(); item8.AccessoryView = switcher5; switcher5.On = _parentController.chart.Chart.Legend.Pen.Visible; switcher5.ValueChanged += delegate { _parentController.chart.Chart.Legend.Pen.Visible = switcher5.On; }; //LegendItem item5 = new LegendItem("Checkmark","",UITableViewCellStyle.Default,UITableViewCellAccessory.Checkmark); //_items.Add(item1); //_items.Add(item2); _items.Add(item3); _items.Add(item4); _items.Add(item5); _items.Add(item6); _items.Add(item7); _items.Add(item8); }
private void InitAdvanced() { // // Two images + custom control // LegendItem item3 = new LegendItem("Transparency", "", UITableViewCellStyle.Default, UITableViewCellAccessory.None); UISlider slider = new UISlider(); slider.MaxValue = 100f; slider.Value = 50f; slider.MinValue = 0f; slider.Frame = new RectangleF(140, 9, 150, 23); slider.Value = _parentController.chart.Chart.Legend.Transparency; slider.ValueChanged += delegate { _parentController.chart.Chart.Legend.Transparency = (int)slider.Value; }; item3.ContentView = slider; // A switcher legend visible LegendItem item4 = new LegendItem("Visible", "", UITableViewCellStyle.Default, UITableViewCellAccessory.None); UISwitch switcher = new UISwitch(); item4.AccessoryView = switcher; switcher.On = _parentController.chart.Chart.Legend.Visible; switcher.ValueChanged += delegate { _parentController.chart.Chart.Legend.Visible = switcher.On; }; // A switcher legend transparent LegendItem item5 = new LegendItem("Transparent", "", UITableViewCellStyle.Default, UITableViewCellAccessory.None); UISwitch switcher2 = new UISwitch(); item5.AccessoryView = switcher2; switcher2.On = _parentController.chart.Chart.Legend.Transparent; switcher2.ValueChanged += delegate { _parentController.chart.Chart.Legend.Transparent = switcher2.On; }; // A switcher legend symbols visible LegendItem item6 = new LegendItem("Symbols", "", UITableViewCellStyle.Default, UITableViewCellAccessory.None); UISwitch switcher3 = new UISwitch(); item6.AccessoryView = switcher3; switcher3.On = _parentController.chart.Chart.Legend.Symbol.Visible; switcher3.ValueChanged += delegate { _parentController.chart.Chart.Legend.Symbol.Visible = switcher3.On; }; // A switcher legend shadow visible LegendItem item7 = new LegendItem("Shadow", "", UITableViewCellStyle.Default, UITableViewCellAccessory.None); UISwitch switcher4 = new UISwitch(); item7.AccessoryView = switcher4; switcher4.On = _parentController.chart.Chart.Legend.Shadow.Visible; switcher4.ValueChanged += delegate { _parentController.chart.Chart.Legend.Shadow.Visible = switcher4.On; }; // A switcher legend pen visible LegendItem item8 = new LegendItem("Pen Border", "", UITableViewCellStyle.Default, UITableViewCellAccessory.None); UISwitch switcher5 = new UISwitch(); item8.AccessoryView = switcher5; switcher5.On = _parentController.chart.Chart.Legend.Pen.Visible; switcher5.ValueChanged += delegate { _parentController.chart.Chart.Legend.Pen.Visible = switcher5.On; }; _items.Add(item3); _items.Add(item4); _items.Add(item5); _items.Add(item6); _items.Add(item7); _items.Add(item8); }
private void InitAdvanced() { // // Two images + custom control // LegendItem item3 = new LegendItem("Transparency","",UITableViewCellStyle.Default,UITableViewCellAccessory.None); UISlider slider = new UISlider(); slider.MaxValue = 100f; slider.Value = 50f; slider.MinValue = 0f; slider.Frame = new RectangleF(140,9,150,23); slider.Value=_parentController.chart.Chart.Legend.Transparency; slider.ValueChanged+=delegate{ _parentController.chart.Chart.Legend.Transparency = (int)slider.Value; }; item3.ContentView = slider; // A switcher legend visible LegendItem item4 = new LegendItem("Visible","",UITableViewCellStyle.Default,UITableViewCellAccessory.None); UISwitch switcher = new UISwitch(); item4.AccessoryView = switcher; switcher.On=_parentController.chart.Chart.Legend.Visible; switcher.ValueChanged+=delegate{ _parentController.chart.Chart.Legend.Visible = switcher.On; }; // A switcher legend transparent LegendItem item5 = new LegendItem("Transparent","",UITableViewCellStyle.Default,UITableViewCellAccessory.None); UISwitch switcher2 = new UISwitch(); item5.AccessoryView = switcher2; switcher2.On=_parentController.chart.Chart.Legend.Transparent; switcher2.ValueChanged+=delegate{ _parentController.chart.Chart.Legend.Transparent = switcher2.On; }; // A switcher legend symbols visible LegendItem item6 = new LegendItem("Symbols","",UITableViewCellStyle.Default,UITableViewCellAccessory.None); UISwitch switcher3 = new UISwitch(); item6.AccessoryView = switcher3; switcher3.On=_parentController.chart.Chart.Legend.Symbol.Visible; switcher3.ValueChanged+=delegate{ _parentController.chart.Chart.Legend.Symbol.Visible = switcher3.On; }; // A switcher legend shadow visible LegendItem item7 = new LegendItem("Shadow","",UITableViewCellStyle.Default,UITableViewCellAccessory.None); UISwitch switcher4 = new UISwitch(); item7.AccessoryView = switcher4; switcher4.On=_parentController.chart.Chart.Legend.Shadow.Visible; switcher4.ValueChanged+=delegate{ _parentController.chart.Chart.Legend.Shadow.Visible = switcher4.On; }; // A switcher legend pen visible LegendItem item8 = new LegendItem("Pen Border","",UITableViewCellStyle.Default,UITableViewCellAccessory.None); UISwitch switcher5 = new UISwitch(); item8.AccessoryView = switcher5; switcher5.On=_parentController.chart.Chart.Legend.Pen.Visible; switcher5.ValueChanged+=delegate{ _parentController.chart.Chart.Legend.Pen.Visible = switcher5.On; }; _items.Add(item3); _items.Add(item4); _items.Add(item5); _items.Add(item6); _items.Add(item7); _items.Add(item8); }