Example #1
0
 protected override void OnResize(EventArgs e)
 {
     base.OnResize(e);
     if (this.Parent != null)
     {
         Rectangle r = ClientRectangle;
         if (control != null && size != r.Size)
         {
             size           = r.Size;
             control.Bounds = r;
             control.Invalidate();
         }
     }
 }
Example #2
0
        protected virtual void OnSelectedIndexChanging(ChangedEventArgs <int> e)
        {
            if (Initializing)
            {
                return;
            }
            int index = e.NewValue;

            if (e.NewValue >= 0)
            {
                FluidControl c = Pages[index].Control;
                c.Invalidate();
                c.Focus();
            }
        }