Beispiel #1
0
        /// <summary>
        /// Draws the content of the view.
        /// </summary>
        /// <param name="rect">The rectangle to draw.</param>
        public override void Draw(CoreGraphics.CGRect rect)
        {
            var actualModel = (IPlotModel)this.model;

            if (actualModel != null)
            {
                var context = UIGraphics.GetCurrentContext();
                using (var renderer = new CoreGraphicsRenderContext(context))
                {
                    if (actualModel.Background.IsVisible())
                    {
                        context.SetFillColor(actualModel.Background.ToCGColor());
                        context.FillRect(rect);
                    }
                    //2019-01-09
                    actualModel.Render
                    (
                        renderer
                        //2019-01-09
                        , new OxyRect(0, 0, rect.Width, rect.Height)

                        //, rect.Width
                        //, rect.Height
                    );;
                }
            }
        }
Beispiel #2
0
 /// <summary>
 /// Draws the content of the view.
 /// </summary>
 /// <param name="rect">The rectangle to draw.</param>
 public override void Draw(CoreGraphics.CGRect rect)
 {
     if (this.model != null)
     {
         using (var renderer = new CoreGraphicsRenderContext(UIGraphics.GetCurrentContext()))
         {
             ((IPlotModel)this.model).Render(renderer, rect.Width, rect.Height);
         }
     }
 }
Beispiel #3
0
 /// <summary>
 /// Draws the content of the view.
 /// </summary>
 /// <param name="rect">The rectangle to draw.</param>
 public override void Draw(CoreGraphics.CGRect rect)
 {
     if (this.model != null)
     {
         using (var renderer = new CoreGraphicsRenderContext(UIGraphics.GetCurrentContext()))
         {
             ((IPlotModel)this.model).Render(renderer, rect.Width, rect.Height);
         }
     }
 }