Storage and mapping for primary header.
상속: HeaderGroupMappingBase
        /// <summary>
        /// Initialize a new instance of the NavigatorHeader class.
        /// </summary>
        /// <param name="navigator">Reference to owning navigator instance.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        public NavigatorHeader(KryptonNavigator navigator,
                               NeedPaintHandler needPaint)
        {
            Debug.Assert(navigator != null);

            // Remember back reference
            _navigator = navigator;

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

            // Default values
            _headerStylePrimary      = HeaderStyle.Primary;
            _headerStyleSecondary    = HeaderStyle.Secondary;
            _headerStyleBar          = HeaderStyle.Secondary;
            _headerPositionPrimary   = VisualOrientation.Top;
            _headerPositionSecondary = VisualOrientation.Bottom;
            _headerPositionBar       = VisualOrientation.Top;
            _headerVisiblePrimary    = true;
            _headerVisibleSecondary  = true;
            _headerVisibleBar        = true;
            HeaderValuesPrimary      = new HeaderGroupMappingPrimary(_navigator, needPaint);
            HeaderValuesSecondary    = new HeaderGroupMappingSecondary(_navigator, needPaint);
        }
예제 #2
0
        /// <summary>
        /// Initialize a new instance of the NavigatorHeader class.
        /// </summary>
        /// <param name="navigator">Reference to owning navigator instance.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        public NavigatorHeader(KryptonNavigator navigator,
                               NeedPaintHandler needPaint)
        {
            Debug.Assert(navigator != null);

            // Remember back reference
            _navigator = navigator;

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

            // Default values
            _headerStylePrimary = HeaderStyle.Primary;
            _headerStyleSecondary = HeaderStyle.Secondary;
            _headerStyleBar = HeaderStyle.Secondary;
            _headerPositionPrimary = VisualOrientation.Top;
            _headerPositionSecondary = VisualOrientation.Bottom;
            _headerPositionBar = VisualOrientation.Top;
            _headerVisiblePrimary = true;
            _headerVisibleSecondary = true;
            _headerVisibleBar = true;
            _headerValuesPrimary = new HeaderGroupMappingPrimary(_navigator, needPaint);
            _headerValuesSecondary = new HeaderGroupMappingSecondary(_navigator, needPaint);
        }