protected override void OnCreateControl()
 {
     base.OnCreateControl();
     if (XTheme != null && XTheme.ShowShadow)
     {
         shadowform = new ShadowForm(this);
     }
     SetFormRegion();
 }
 //Show或Hide被调用时
 protected override void OnVisibleChanged(EventArgs e)
 {
     if (Visible)
     {
         //判断不是在设计器中
         if (!DesignMode && shadowform == null && XTheme.ShowShadow)
         {
             shadowform = new ShadowForm(this);
             shadowform.Show(this);
         }
     }
     base.OnVisibleChanged(e);
 }