Storage for outlook mini mode related properties.
Inheritance: ComponentFactory.Krypton.Toolkit.Storage
コード例 #1
0
        /// <summary>
        /// Initialize a new instance of the NavigatorOutlook class.
        /// </summary>
        /// <param name="navigator">Reference to owning navigator instance.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        public NavigatorOutlook(KryptonNavigator navigator,
                                NeedPaintHandler needPaint)
        {
            Debug.Assert(navigator != null);

            // Remember back reference
            _navigator = navigator;

            // Store the provided paint notification delegate
            NeedPaint = needPaint;

            // Create compound objects
            Full = new NavigatorOutlookFull(navigator, needPaint);
            Mini = new NavigatorOutlookMini(navigator, needPaint);

            // Default values
            _checkButtonStyle       = ButtonStyle.NavigatorStack;
            _overflowButtonStyle    = ButtonStyle.NavigatorOverflow;
            _borderEdgeStyle        = PaletteBorderStyle.ControlClient;
            _orientation            = Orientation.Vertical;
            _itemOrientation        = ButtonOrientation.Auto;
            _headerSecondaryVisible = InheritBool.False;
            TextMoreButtons         = DEFAULT_MORE_BUTTONS;
            TextFewerButtons        = DEFAULT_FEWER_BUTTONS;
            TextAddRemoveButtons    = DEFAULT_ADD_REMOVE_BUTTONS;
            _showDropDownButton     = true;
        }
コード例 #2
0
        /// <summary>
        /// Initialize a new instance of the NavigatorOutlook class.
        /// </summary>
        /// <param name="navigator">Reference to owning navigator instance.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        public NavigatorOutlook(KryptonNavigator navigator,
                                NeedPaintHandler needPaint)
        {
            Debug.Assert(navigator != null);

            // Remember back reference
            _navigator = navigator;

            // Store the provided paint notification delegate
            NeedPaint = needPaint;

            // Create compound objects
            _full = new NavigatorOutlookFull(navigator, needPaint);
            _mini = new NavigatorOutlookMini(navigator, needPaint);

            // Default values
            _checkButtonStyle = ButtonStyle.NavigatorStack;
            _overflowButtonStyle = ButtonStyle.NavigatorOverflow;
            _borderEdgeStyle = PaletteBorderStyle.ControlClient;
            _orientation = Orientation.Vertical;
            _itemOrientation = ButtonOrientation.Auto;
            _headerSecondaryVisible = InheritBool.False;
            _textMoreButtons = _defaultMoreButtons;
            _textFewerButtons = _defaultFewerButtons;
            _textAddRemoveButtons = _defaultAddRemoveButtons;
            _showDropDownButton = true;
        }