示例#1
0
 void UpdateShadowVisibility()
 {
     if ((Element as Frame).HasShadow)
     {
         _shadow.Show();
     }
     else
     {
         _shadow.Hide();
     }
 }
示例#2
0
        protected override void OnElementChanged(ElementChangedEventArgs <Layout> e)
        {
            if (Control == null)
            {
                SetNativeControl(new Native.Canvas(Forms.NativeParent));

                _shadow       = new EPolygon(NativeView);
                _shadow.Color = s_ShadowColor;
                Control.Children.Add(_shadow);

                _frame = new EPolygon(NativeView);
                _frame.Show();
                Control.Children.Add(_frame);
                Control.LayoutUpdated += OnLayoutUpdated;
            }
            base.OnElementChanged(e);
        }