Esempio n. 1
0
        /*void HandlePropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
         * {
         *      if (e.PropertyName == "Content")
         *      {
         *              BorderRendererVisual.UpdateBackground (Element, this.ViewGroup);
         *      }
         * }*/

        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);
            }
        }
Esempio n. 2
0
 protected override void OnElementChanged(ElementChangedEventArgs <Border> e)
 {
     base.OnElementChanged(e);
     BorderRendererVisual.UpdateBackground(Element, this.ViewGroup);
 }
Esempio n. 3
0
 protected override void OnElementPropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     base.OnElementPropertyChanged(sender, e);
     //HandlePropertyChanged (sender, e);
     BorderRendererVisual.UpdateBackground(Element, this.ViewGroup);
 }