Inheritance: ComponentFactory.Krypton.Navigator.KryptonNavigator
        /// <summary>
        /// Initialize a new instance of the KryptonDockingNavigator class.
        /// </summary>
        /// <param name="name">Initial name of the element.</param>
        /// <param name="storeName">Name to use for storage pages.</param>
        /// <param name="navigator">Reference to navigator to manage.</param>
        public KryptonDockingNavigator(string name,
                                       string storeName,
                                       KryptonDockableNavigator navigator)
            : base(name)
        {
            _storeName = storeName;
            _navigator = navigator ?? throw new ArgumentNullException("navigator");

            DockableNavigatorControl.Disposed          += new EventHandler(OnDockableNavigatorDisposed);
            DockableNavigatorControl.CellPageInserting += new EventHandler <KryptonPageEventArgs>(OnDockableNavigatorPageInserting);
            DockableNavigatorControl.BeforePageDrag    += new EventHandler <PageDragCancelEventArgs>(OnDockableNavigatorBeforePageDrag);
            DockableNavigatorControl.PageDrop          += new EventHandler <PageDropEventArgs>(OnDockableNavigatorPageDrop);
        }
Esempio n. 2
0
        /// <summary>
        /// Initialize a new instance of the KryptonDockingNavigator class.
        /// </summary>
        /// <param name="name">Initial name of the element.</param>
        /// <param name="storeName">Name to use for storage pages.</param>
        /// <param name="navigator">Reference to navigator to manage.</param>
        public KryptonDockingNavigator(string name,
                                       string storeName,
                                       KryptonDockableNavigator navigator)
            : base(name)
        {
            _storeName = storeName;
            DockableNavigatorControl = navigator ?? throw new ArgumentNullException(nameof(navigator));

            DockableNavigatorControl.Disposed          += OnDockableNavigatorDisposed;
            DockableNavigatorControl.CellPageInserting += OnDockableNavigatorPageInserting;
            DockableNavigatorControl.BeforePageDrag    += OnDockableNavigatorBeforePageDrag;
            DockableNavigatorControl.PageDrop          += OnDockableNavigatorPageDrop;
        }
 /// <summary>
 /// Initialize a new instance of the DockableNavigatorEventArgs class.
 /// </summary>
 /// <param name="navigator">Reference to dockable navigator control instance.</param>
 /// <param name="element">Reference to docking navigator element that is managing the dockable workspace control.</param>
 public DockableNavigatorEventArgs(KryptonDockableNavigator navigator,
                                   KryptonDockingNavigator element)
 {
     DockableNavigatorControl = navigator;
     DockingNavigatorElement  = element;
 }
Esempio n. 4
0
 /// <summary>
 /// Initialize a new instance of the DockableNavigatorEventArgs class.
 /// </summary>
 /// <param name="navigator">Reference to dockable navigator control instance.</param>
 /// <param name="element">Reference to docking navigator element that is managing the dockable workspace control.</param>
 public DockableNavigatorEventArgs(KryptonDockableNavigator navigator,
                                   KryptonDockingNavigator element)
 {
     _navigator = navigator;
     _element   = element;
 }
Esempio n. 5
0
 /// <summary>
 /// Manage docking capability for provided dockable navigator control.
 /// </summary>
 /// <param name="name">Name for new docking element.</param>
 /// <param name="storeName">Store name for docking element.</param>
 /// <param name="n">Reference to dockable navigator.</param>
 /// <returns>KryptonDockingNavigator instance created.</returns>
 public KryptonDockingNavigator ManageNavigator(string name, string storeName, KryptonDockableNavigator n)
 {
     KryptonDockingNavigator dockingNavigator = new KryptonDockingNavigator(name, storeName, n);
     Add(dockingNavigator);
     return dockingNavigator;
 }
Esempio n. 6
0
 /// <summary>
 /// Manage docking capability for provided dockable navigator control.
 /// </summary>
 /// <param name="name">Name for new docking element.</param>
 /// <param name="n">Reference to dockable navigator.</param>
 /// <returns>KryptonDockingNavigator instance created.</returns>
 public KryptonDockingNavigator ManageNavigator(string name, KryptonDockableNavigator n)
 {
     return ManageNavigator(name, "Filler", n);
 }
Esempio n. 7
0
 /// <summary>
 /// Manage docking capability for provided dockable navigator control.
 /// </summary>
 /// <param name="n">Reference to dockable navigator.</param>
 /// <returns>KryptonDockingNavigator instance created.</returns>
 public KryptonDockingNavigator ManageNavigator(KryptonDockableNavigator n)
 {
     return ManageNavigator("Navigator", "Filler", n);
 }
 /// <summary>
 /// Initialize a new instance of the DockableNavigatorEventArgs class.
 /// </summary>
 /// <param name="navigator">Reference to dockable navigator control instance.</param>
 /// <param name="element">Reference to docking navigator element that is managing the dockable workspace control.</param>
 public DockableNavigatorEventArgs(KryptonDockableNavigator navigator,
                                   KryptonDockingNavigator element)
 {
     _navigator = navigator;
     _element = element;
 }