示例#1
0
 public RibbonForm()
 {
     if (WinApi.IsWindows && !WinApi.IsGlassEnabled)
     {
         FormBorderStyle = FormBorderStyle.None;
         SetStyle(ControlStyles.ResizeRedraw, true);
         SetStyle(ControlStyles.Opaque, WinApi.IsGlassEnabled);
         SetStyle(ControlStyles.AllPaintingInWmPaint, true);
         DoubleBuffered = true;
     }
     _helper = new RibbonFormHelper(this);
 }
示例#2
0
        public RibbonForm()
        {
            if (WinApi.IsWindows && !WinApi.IsGlassEnabled)
            {
                SetStyle(ControlStyles.ResizeRedraw, true);
                SetStyle(ControlStyles.Opaque, WinApi.IsGlassEnabled);
                SetStyle(ControlStyles.AllPaintingInWmPaint, true);
                DoubleBuffered = true;
            }
            //SetStyle(ControlStyles.EnableNotifyMessage, true);
            

            _helper = new RibbonFormHelper(this);
        }