示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Director.HeaderListItem"/> class.
        /// </summary>
        /// <param name="_parent">_parent.</param>
        /// <param name="_header">_header.</param>
        /// <param name="_color">_color.</param>
        public HeaderListItem(HeaderList _parent, Header _header, Color _color)
        {
            ActiveHeader = _header;
            ParentList   = _parent;

            // Set background color
            BackgroundColor = DefaultColor = _color;

            // Set height
            MinHeight = HeaderList.ROW_HEIGHT;

            // Horizontal resize true
            ExpandHorizontal = true;

            // No margins
            Margin = 0;

            // Init component
            _initializeComponents();
        }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Director.HeaderListItem"/> class.
        /// </summary>
        /// <param name="_parent">_parent.</param>
        /// <param name="_header">_header.</param>
        /// <param name="_color">_color.</param>
        public HeaderListItem(HeaderList _parent, Header _header, Color _color)
        {
            ActiveHeader = _header;
            ParentList = _parent;

            // Set background color
            BackgroundColor = DefaultColor = _color;

            // Set height
            MinHeight = HeaderList.ROW_HEIGHT;

            // Horizontal resize true
            ExpandHorizontal = true;

            // No margins
            Margin = 0;

            // Init component
            _initializeComponents();
        }