Implement storage for HeaderGroup states.
Inheritance: PaletteDouble, IPaletteMetric
        private void SetPalettes(PaletteHeaderGroup palette)
        {
            _viewHeadingPrimary.SetPalettes(palette.HeaderPrimary.Back, palette.HeaderPrimary.Border, palette.HeaderPrimary);
            _viewHeadingSecondary.SetPalettes(palette.HeaderSecondary.Back, palette.HeaderSecondary.Border, palette.HeaderSecondary);

            _buttonManager.SetDockerMetrics(_viewHeadingPrimary, palette.HeaderPrimary);
            _buttonManager.SetDockerMetrics(_viewHeadingSecondary, palette.HeaderSecondary);

            _viewContentPrimary.SetPalette(palette.HeaderPrimary.Content);
            _viewContentSecondary.SetPalette(palette.HeaderSecondary.Content);
        }
Esempio n. 2
0
 /// <summary>
 /// Sets the inheritence parent.
 /// </summary>
 /// <param name="inheritHeaderGroup">Source for inheriting.</param>
 public void SetInherit(PaletteHeaderGroup inheritHeaderGroup)
 {
     base.SetInherit(inheritHeaderGroup);
     _inherit = inheritHeaderGroup;
     _paletteHeaderPrimary.SetInherit(inheritHeaderGroup.HeaderPrimary);
     _paletteHeaderSecondary.SetInherit(inheritHeaderGroup.HeaderSecondary);
 }