Example #1
0
        public override void Draw(CGRect rect)
        {
            if (Exception != null)
            {
                return;
            }

            var bounds = rect.ToOmniGui();

            Layout.Measure(bounds.Size);
            Layout.Arrange(bounds);
            using (var ctx = UIGraphics.GetCurrentContext())
            {
                Layout.Render(new iOSDrawingContext(ctx));
            }
        }