Beispiel #1
0
 protected override void DispatchDraw(Canvas canvas)
 {
     if (Element.IsClippedToBorder)
     {
         canvas.Save(SaveFlags.Clip);
         BorderRendererVisual.SetClipPath(this, canvas);
         base.DispatchDraw(canvas);
         canvas.Restore();
     }
     else
     {
         base.DispatchDraw(canvas);
     }
 }
Beispiel #2
0
 protected override void OnElementChanged(ElementChangedEventArgs <Border> e)
 {
     base.OnElementChanged(e);
     BorderRendererVisual.UpdateBackground(Element, this.ViewGroup);
 }
Beispiel #3
0
 protected override void OnElementPropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     base.OnElementPropertyChanged(sender, e);
     //HandlePropertyChanged (sender, e);
     BorderRendererVisual.UpdateBackground(Element, this.ViewGroup);
 }