Ejemplo n.º 1
0
        public ChartCanvas(CGRect rect)
            : base(rect)
        {
            ContentMode = UIViewContentMode.Redraw;
            AutoresizingMask = UIViewAutoresizing.All;
            BackColor = Color.Wheat;

            var panelRect = new CGRect (rect.X,rect.Y,rect.Width,rect.Height- 20/UIScreen.MainScreen.Scale);
            panelRect.Inflate (-20/UIScreen.MainScreen.Scale,-20/UIScreen.MainScreen.Scale);
            panel1 = new PlotPanel (panelRect);
            panel1.BackColor = Color.AliceBlue;

            AddSubview (panel1);

            // Subscribing to a paint eventhandler to drawingPanel:
            panel1.Paint += PlotPanelPaint;
        }
Ejemplo n.º 2
0
        public ChartCanvas(CGRect rect) : base(rect)
        {
            ContentMode      = UIViewContentMode.Redraw;
            AutoresizingMask = UIViewAutoresizing.All;
            BackColor        = Color.Wheat;

            var panelRect = new CGRect(rect.X, rect.Y, rect.Width, rect.Height - 20 / UIScreen.MainScreen.Scale);

            panelRect.Inflate(-20 / UIScreen.MainScreen.Scale, -20 / UIScreen.MainScreen.Scale);
            panel1           = new PlotPanel(panelRect);
            panel1.BackColor = Color.AliceBlue;

            AddSubview(panel1);

            // Subscribing to a paint eventhandler to drawingPanel:
            panel1.Paint += PlotPanelPaint;
        }
Ejemplo n.º 3
0
        public ChartCanvas(RectangleF rect) : base(rect)
        {
            ContentMode           = UIViewContentMode.Redraw;
            this.AutoresizingMask = UIViewAutoresizing.All;
            this.BackColor        = Color.Wheat;

            var panelRect = new RectangleF(rect.X, rect.Y, rect.Width, rect.Height - 100);

            panelRect.Inflate(-100, -100);
            panel1           = new PlotPanel(panelRect);
            panel1.BackColor = Color.AliceBlue;

            this.AddSubview(panel1);

            // Subscribing to a paint eventhandler to drawingPanel:
            panel1.Paint +=
                new PaintEventHandler(PlotPanelPaint);
        }
        public ChartCanvas(RectangleF rect)
            : base(rect)
        {
            ContentMode = UIViewContentMode.Redraw;
            this.AutoresizingMask = UIViewAutoresizing.All;
            this.BackColor = Color.Wheat;

            var panelRect = new RectangleF(rect.X,rect.Y,rect.Width,rect.Height-100);
            panelRect.Inflate(-100,-100);
            panel1 = new PlotPanel(panelRect);
            panel1.BackColor = Color.AliceBlue;

            this.AddSubview(panel1);

            // Subscribing to a paint eventhandler to drawingPanel:
            panel1.Paint +=
                new PaintEventHandler(PlotPanelPaint);
        }