public DrawingView(RectangleF rect)
     : base(rect)
 {
     ContentMode = UIViewContentMode.Redraw;
     this.AutoresizingMask = UIViewAutoresizing.All;
     BackColor = Color.Wheat;
     dc = new DataCollection();
     cs = new ChartStyle(this);
     cs.XLimMin = 0f;
     cs.XLimMax = 6f;
     cs.YLimMin = -1.1f;
     cs.YLimMax = 1.1f;
 }
Ejemplo n.º 2
0
        public DrawingView(CGRect rect)
            : base(rect)
        {
            ContentMode = UIViewContentMode.Redraw;
            AutoresizingMask = UIViewAutoresizing.All;
            var bgc = Color.Wheat;
            BackgroundColor = UIColor.FromRGBA(bgc.R,bgc.G,bgc.B, bgc.A);

            dc = new DataCollection();
            cs = new ChartStyle(this);
            cs.XLimMin = 0f;
            cs.XLimMax = 6f;
            cs.YLimMin = -1.1f;
            cs.YLimMax = 1.1f;
        }