Beispiel #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);
            }
        }
Beispiel #2
0
 protected override void OnElementChanged(ElementChangedEventArgs <BorderLayout> 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);
 }