partial void OnBrushChangedPartial(CompositionBrush?brush) { if (brush is CompositionColorBrush b) { NativeLayer.BackgroundColor = b.Color; } else { this.Log().Error($"The brush type {brush?.GetType()} is not supported for sprite visuals."); } }
partial void OnBrushChangedPartial(CompositionBrush brush) { if (brush is CompositionColorBrush b) { _paint.Color = new SKColor(b.Color.R, b.Color.G, b.Color.B, b.Color.A); } else { this.Log().Error($"The brush type {brush?.GetType()} is not supported for sprite visuals."); } }