Exemplo n.º 1
0
 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.");
     }
 }
Exemplo n.º 2
0
 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.");
     }
 }