private void OnGetCanvasSize(object sender, GetPropertyValueEventArgs <SKSize> e) { GetPropertyValueEventArgs <SKSize> propertyValueEventArgs = e; // ISSUE: variable of a boxed type TNativeView control = this.Control; SKSize skSize = control != null ? control.CanvasSize : SKSize.Empty; propertyValueEventArgs.Value = skSize; }
// the user asked for the size private void OnGetCanvasSize(object sender, GetPropertyValueEventArgs <SkiaSharp.SKSize> e) { e.Value = Control?.CanvasSize ?? SKSize.Empty; }
// the user asked for the current GRContext private void OnGetGRContext(object sender, GetPropertyValueEventArgs <GRContext> e) { e.Value = Control?.GRContext; }