Exemple #1
0
        /// <summary>
        /// Initializes the control for the first time.
        /// </summary>
        internal void Initialize()
        {
            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.ResizeRedraw, true);

            if (clientArea == null)
            {
                clientArea = new NaviBandClientArea();
            }

            clientArea.Name     = "ClientArea";
            clientArea.Location = new Point(0, 0);
            clientArea.Size     = Size;
            clientArea.Renderer = Renderer;

            if (!Controls.Contains(clientArea))
            {
                Controls.Add(clientArea);
            }

            ResizeRedraw = true;
        }
      /// <summary>
      /// Initializes the control for the first time. 
      /// </summary>
      internal void Initialize()
      {
         SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
         SetStyle(ControlStyles.UserPaint, true);
         SetStyle(ControlStyles.AllPaintingInWmPaint, true);
         SetStyle(ControlStyles.ResizeRedraw, true);

         if (clientArea == null)
            clientArea = new NaviBandClientArea();

         clientArea.Name = "ClientArea";
         clientArea.Location = new Point(0, 0);
         clientArea.Size = Size;
         clientArea.Renderer = Renderer;

         if (!Controls.Contains(clientArea))
            Controls.Add(clientArea);
                  
         ResizeRedraw = true;
      }