Override the redirection to force the borders for the caption to only show the bottom border as a maximum.
Inheritance: ComponentFactory.Krypton.Toolkit.PaletteRedirect
コード例 #1
0
        /// <summary>
        /// Initialize a new instance of the ViewDrawRibbonCaptionArea class.
        /// </summary>
        /// <param name="ribbon">Reference to owning ribbon control.</param>
        /// <param name="redirect">Reference to redirector for palette settings.</param>
        /// <param name="compositionArea">Reference to the composition element.</param>
        /// <param name="needPaintDelegate">Delegate for notifying paint/layout changes.</param>
        public ViewDrawRibbonCaptionArea(KryptonRibbon ribbon,
                                         PaletteRedirect redirect,
                                         ViewDrawRibbonComposition compositionArea,
                                         NeedPaintHandler needPaintDelegate)
        {
            Debug.Assert(ribbon != null);
            Debug.Assert(redirect != null);
            Debug.Assert(compositionArea != null);
            Debug.Assert(needPaintDelegate != null);

            // Remember incoming references
            _ribbon                 = ribbon;
            _compositionArea        = compositionArea;
            NeedPaintDelegate       = needPaintDelegate;
            _needIntegratedDelegate = OnIntegratedNeedPaint;

            // Create a special redirector for overriding the border setting
            _redirect = new PaletteCaptionRedirect(redirect);

            CreateViewElements();
            SetupParentMonitoring();
        }
コード例 #2
0
        /// <summary>
        /// Initialize a new instance of the ViewDrawRibbonCaptionArea class.
        /// </summary>
        /// <param name="ribbon">Reference to owning ribbon control.</param>
        /// <param name="redirect">Reference to redirector for palette settings.</param>
        /// <param name="compositionArea">Reference to the composition element.</param>
        /// <param name="needPaintDelegate">Delegate for notifying paint/layout changes.</param>
        public ViewDrawRibbonCaptionArea(KryptonRibbon ribbon,
                                         PaletteRedirect redirect,
                                         ViewDrawRibbonComposition compositionArea,
                                         NeedPaintHandler needPaintDelegate)
        {
            Debug.Assert(ribbon != null);
            Debug.Assert(redirect != null);
            Debug.Assert(compositionArea != null);
            Debug.Assert(needPaintDelegate != null);

            // Remember incoming references
            _ribbon = ribbon;
            _compositionArea = compositionArea;
            _needPaintDelegate = needPaintDelegate;
            _needIntegratedDelegate = new NeedPaintHandler(OnIntegratedNeedPaint);

            // Create a special redirector for overriding the border setting
            _redirect = new PaletteCaptionRedirect(redirect);

            CreateViewElements();
            SetupParentMonitoring();
        }