private void InitAdvanced() { // A switcher View3D AspectItem item1 = new AspectItem("3D", "", UITableViewCellStyle.Default, UITableViewCellAccessory.None); UISwitch switcher1 = new UISwitch(); item1.AccessoryView = switcher1; switcher1.On = _parentController.chart.Chart.Aspect.View3D; switcher1.ValueChanged += delegate { _parentController.chart.Chart.Aspect.View3D = switcher1.On; }; // Chart3DPercent slider AspectItem item3DPercent = new AspectItem("3D Percent", "", UITableViewCellStyle.Default, UITableViewCellAccessory.None); UISlider slider3DPercent = new UISlider(); slider3DPercent.MaxValue = 100f; slider3DPercent.Value = 0f; slider3DPercent.MinValue = 0f; slider3DPercent.Frame = new RectangleF(140, 9, 150, 23); slider3DPercent.Value = _parentController.chart.Chart.Aspect.Chart3DPercent; slider3DPercent.ValueChanged += delegate { _parentController.chart.Chart.Aspect.Chart3DPercent = (int)slider3DPercent.Value; }; item3DPercent.ContentView = slider3DPercent; // ZoomScrollStyle automatic AspectItem itemZoomScroll = new AspectItem("ZoomScroll Auto", "", UITableViewCellStyle.Default, UITableViewCellAccessory.None); UISwitch switcherZoomScroll = new UISwitch(); itemZoomScroll.AccessoryView = switcherZoomScroll; switcherZoomScroll.On = _parentController.chart.Chart.Aspect.ZoomScrollStyle == Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Auto; switcherZoomScroll.ValueChanged += delegate { if (switcherZoomScroll.On) { _parentController.chart.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Auto; } else { _parentController.chart.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual; } }; // A switcher Zoon style InChart or AllChart AspectItem itemZoomStyle = new AspectItem("Zoom InChart", "", UITableViewCellStyle.Default, UITableViewCellAccessory.None); UISwitch switcherZoomStyle = new UISwitch(); itemZoomStyle.AccessoryView = switcherZoomStyle; switcherZoomStyle.On = (_parentController.chart.Chart.Aspect.ZoomStyle == Steema.TeeChart.Drawing.Aspect.ZoomStyles.InChart); switcherZoomStyle.ValueChanged += delegate { if (switcherZoomStyle.On) { _parentController.chart.Chart.Aspect.ZoomStyle = Steema.TeeChart.Drawing.Aspect.ZoomStyles.InChart; } else { _parentController.chart.Chart.Aspect.ZoomStyle = Steema.TeeChart.Drawing.Aspect.ZoomStyles.FullChart; } }; // Rotation slider AspectItem itemRotation = new AspectItem("Rotation", "", UITableViewCellStyle.Default, UITableViewCellAccessory.None); UISlider sliderRotation = new UISlider(); sliderRotation.MaxValue = 100f; sliderRotation.Value = 0f; sliderRotation.MinValue = 0f; sliderRotation.Frame = new RectangleF(140, 9, 150, 23); sliderRotation.Value = _parentController.chart.Chart.Aspect.Rotation; sliderRotation.ValueChanged += delegate { _parentController.chart.Chart.Aspect.Rotation = (int)sliderRotation.Value; }; itemRotation.ContentView = sliderRotation; // A switcher orthogonal AspectItem item2 = new AspectItem("Orthogonal", "", UITableViewCellStyle.Default, UITableViewCellAccessory.None); UISwitch switcher2 = new UISwitch(); item2.AccessoryView = switcher2; switcher2.On = _parentController.chart.Chart.Aspect.Orthogonal; switcher2.ValueChanged += delegate { _parentController.chart.Chart.Aspect.Orthogonal = switcher2.On; }; _items.Add(item1); _items.Add(item3DPercent); _items.Add(itemZoomScroll); _items.Add(itemZoomStyle); _items.Add(item2); _items.Add(itemRotation); }
private void InitAdvanced() { // A switcher View3D AspectItem item1 = new AspectItem("3D","",UITableViewCellStyle.Default,UITableViewCellAccessory.None); UISwitch switcher1 = new UISwitch(); item1.AccessoryView = switcher1; switcher1.On=_parentController.chart.Chart.Aspect.View3D; switcher1.ValueChanged+=delegate{ _parentController.chart.Chart.Aspect.View3D = switcher1.On; }; // Chart3DPercent slider AspectItem item3DPercent = new AspectItem("3D Percent","",UITableViewCellStyle.Default,UITableViewCellAccessory.None); UISlider slider3DPercent = new UISlider(); slider3DPercent.MaxValue = 100f; slider3DPercent.Value = 0f; slider3DPercent.MinValue = 0f; slider3DPercent.Frame = new RectangleF(140,9,150,23); slider3DPercent.Value=_parentController.chart.Chart.Aspect.Chart3DPercent; slider3DPercent.ValueChanged+=delegate{ _parentController.chart.Chart.Aspect.Chart3DPercent = (int)slider3DPercent.Value; }; item3DPercent.ContentView = slider3DPercent; // ZoomScrollStyle automatic AspectItem itemZoomScroll = new AspectItem("ZoomScroll Auto","",UITableViewCellStyle.Default,UITableViewCellAccessory.None); UISwitch switcherZoomScroll = new UISwitch(); itemZoomScroll.AccessoryView = switcherZoomScroll; switcherZoomScroll.On=_parentController.chart.Chart.Aspect.ZoomScrollStyle==Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Auto; switcherZoomScroll.ValueChanged+=delegate{ if (switcherZoomScroll.On) _parentController.chart.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Auto; else _parentController.chart.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual; }; // A switcher Zoon style InChart or AllChart AspectItem itemZoomStyle = new AspectItem("Zoom InChart","",UITableViewCellStyle.Default,UITableViewCellAccessory.None); UISwitch switcherZoomStyle = new UISwitch(); itemZoomStyle.AccessoryView = switcherZoomStyle; switcherZoomStyle.On=(_parentController.chart.Chart.Aspect.ZoomStyle == Steema.TeeChart.Drawing.Aspect.ZoomStyles.InChart); switcherZoomStyle.ValueChanged+=delegate{ if (switcherZoomStyle.On) _parentController.chart.Chart.Aspect.ZoomStyle = Steema.TeeChart.Drawing.Aspect.ZoomStyles.InChart; else _parentController.chart.Chart.Aspect.ZoomStyle = Steema.TeeChart.Drawing.Aspect.ZoomStyles.FullChart; }; // Rotation slider AspectItem itemRotation = new AspectItem("Rotation","",UITableViewCellStyle.Default,UITableViewCellAccessory.None); UISlider sliderRotation = new UISlider(); sliderRotation.MaxValue = 100f; sliderRotation.Value = 0f; sliderRotation.MinValue = 0f; sliderRotation.Frame = new RectangleF(140,9,150,23); sliderRotation.Value=_parentController.chart.Chart.Aspect.Rotation; sliderRotation.ValueChanged+=delegate{ _parentController.chart.Chart.Aspect.Rotation = (int)sliderRotation.Value; }; itemRotation.ContentView = sliderRotation; // A switcher orthogonal AspectItem item2 = new AspectItem("Orthogonal","",UITableViewCellStyle.Default,UITableViewCellAccessory.None); UISwitch switcher2 = new UISwitch(); item2.AccessoryView = switcher2; switcher2.On=_parentController.chart.Chart.Aspect.Orthogonal; switcher2.ValueChanged+=delegate{ _parentController.chart.Chart.Aspect.Orthogonal = switcher2.On; }; _items.Add(item1); _items.Add(item3DPercent); _items.Add(itemZoomScroll); _items.Add(itemZoomStyle); _items.Add(item2); _items.Add(itemRotation); }