Exemplo n.º 1
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Called after being docked to a side in the parent
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        /// ------------------------------------------------------------------------------------
        public virtual void OnDocking(object sender, DockingEventArgs e)
        {
            if (Dock == DockStyle.Top)
            {
                // need to hide the tree
                Height = m_ToolStrip.Height;
                m_ComboBox.DropDownHeight  = DropDownHeight;
                m_ComboBox.Visible         = true;
                m_ComboBox.DropDownControl = Content;
                if (m_floaty != null)
                {
                    m_floaty.ShowSplitter = false;
                }
            }
            else
            {
                m_ComboBox.Visible = false;
                if (Content != null)
                {
                    Content.Show();
                    Content.Dock   = DockStyle.None;
                    Content.Parent = this;
                    Content.Dock   = DockStyle.Fill;
                    Content.BringToFront();
                }

                if (m_floaty != null)
                {
                    m_floaty.ShowSplitter = true;
                }
            }
        }
Exemplo n.º 2
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 ///
 /// </summary>
 /// ------------------------------------------------------------------------------------
 protected virtual void OnDockUndockBegin(object sender, DockingEventArgs e)
 {
     // Only need the separator when docked to the top.
     if (m_sepShowOnlyAtTop != null)
     {
         m_sepShowOnlyAtTop.Visible = (e.DockStyle == DockStyle.Top);
     }
 }
Exemplo n.º 3
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 ///
 /// </summary>
 /// ------------------------------------------------------------------------------------
 private void m_floaty_Docking(object sender, DockingEventArgs e)
 {
     OnDocking(sender, e);
 }
Exemplo n.º 4
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 ///
 /// </summary>
 /// ------------------------------------------------------------------------------------
 protected virtual void OnDockUndockEnd(object sender, DockingEventArgs e)
 {
 }