コード例 #1
0
 private void OnDrawView(object sender, DrawViewEventArgs e)
 {
     context.canvas = e.Canvas;
     context.Width  = nativeView.Width;
     context.Height = nativeView.Height;
     Element.DrawInternal(context);
 }
コード例 #2
0
 private void OnDrawView(object sender, DrawViewEventArgs e)
 {
     context.context = e.Context;
     context.rect    = e.Rect;
     context.Width   = (float)Control.Bounds.Width;
     context.Height  = (float)Control.Bounds.Height;
     Element.DrawInternal(context);
 }