Inheritance: DockingElementClosedCollection
Beispiel #1
0
        /// <summary>
        /// Find a edge auto hidden element by searching the hierarchy.
        /// </summary>
        /// <param name="uniqueName">Named page for which a suitable auto hidden edge element is required.</param>
        /// <returns>KryptonDockingEdgeAutoHidden reference if found; otherwise false.</returns>
        public virtual KryptonDockingEdgeAutoHidden FindDockingEdgeAutoHidden(string uniqueName)
        {
            // Default to not finding the element
            KryptonDockingEdgeAutoHidden edgeAutoHiddenElement = null;

            // Search all child docking elements
            for (int i = 0; i < Count; i++)
            {
                edgeAutoHiddenElement = this[i].FindDockingEdgeAutoHidden(uniqueName);
                if (edgeAutoHiddenElement != null)
                {
                    break;
                }
            }

            return(edgeAutoHiddenElement);
        }
 /// <summary>
 /// Initialize a new instance of the AutoHiddenGroupPanelEventArgs class.
 /// </summary>
 /// <param name="autoHiddenPanel">Reference to auto hidden panel control instance.</param>
 /// <param name="element">Reference to docking auto hidden edge element that is managing the panel.</param>
 public AutoHiddenGroupPanelEventArgs(KryptonAutoHiddenPanel autoHiddenPanel,
                                      KryptonDockingEdgeAutoHidden element)
 {
     AutoHiddenPanelControl = autoHiddenPanel;
     EdgeAutoHiddenElement  = element;
 }
 /// <summary>
 /// Initialize a new instance of the AutoHiddenGroupPanelEventArgs class.
 /// </summary>
 /// <param name="autoHiddenPanel">Reference to auto hidden panel control instance.</param>
 /// <param name="element">Reference to docking auto hidden edge element that is managing the panel.</param>
 public AutoHiddenGroupPanelEventArgs(KryptonAutoHiddenPanel autoHiddenPanel,
                                      KryptonDockingEdgeAutoHidden element)
 {
     _autoHiddenPanel = autoHiddenPanel;
     _element         = element;
 }
 /// <summary>
 /// Initialize a new instance of the AutoHiddenGroupPanelEventArgs class.
 /// </summary>
 /// <param name="autoHiddenPanel">Reference to auto hidden panel control instance.</param>
 /// <param name="element">Reference to docking auto hidden edge element that is managing the panel.</param>
 public AutoHiddenGroupPanelEventArgs(KryptonAutoHiddenPanel autoHiddenPanel,
                                      KryptonDockingEdgeAutoHidden element)
 {
     _autoHiddenPanel = autoHiddenPanel;
     _element = element;
 }