Redirect all content requests directly to the palette instance.
Inheritance: IPaletteContent
        /// <summary>
        /// Initialize a new instance of the PaletteTripleToPalette class.
        /// </summary>
        /// <param name="palette">Inheritence of values.</param>
        /// <param name="backStyle">Initial background style.</param>
        /// <param name="borderStyle">Initial border style.</param>
        /// <param name="contentStyle">Initial content style.</param>
        public PaletteTripleToPalette(IPalette palette,
									  PaletteBackStyle backStyle,
									  PaletteBorderStyle borderStyle,
									  PaletteContentStyle contentStyle)
        {
            // Store the inherit instances
            _back = new PaletteBackToPalette(palette, backStyle);
            _border = new PaletteBorderToPalette(palette, borderStyle);
            _content = new PaletteContentToPalette(palette, contentStyle);
        }
Beispiel #2
0
 /// <summary>
 /// Initialize a new instance of the PaletteTripleToPalette class.
 /// </summary>
 /// <param name="palette">Inheritence of values.</param>
 /// <param name="backStyle">Initial background style.</param>
 /// <param name="borderStyle">Initial border style.</param>
 /// <param name="contentStyle">Initial content style.</param>
 public PaletteTripleToPalette(IPalette palette,
                               PaletteBackStyle backStyle,
                               PaletteBorderStyle borderStyle,
                               PaletteContentStyle contentStyle)
 {
     // Store the inherit instances
     _back    = new PaletteBackToPalette(palette, backStyle);
     _border  = new PaletteBorderToPalette(palette, borderStyle);
     _content = new PaletteContentToPalette(palette, contentStyle);
 }
 /// <summary>
 /// Initialize a new instance of the ViewDrawRibbonGalleryButton class.
 /// </summary>
 /// <param name="palette">Reference to inherited palette.</param>
 /// <param name="alignment">Button alignment within gallery.</param>
 /// <param name="button">Button content to display.</param>
 /// <param name="images">Button images.</param>
 /// <param name="needPaint">Paint event delegate.</param>
 public ViewDrawRibbonGalleryButton(IPalette palette,
                                    PaletteRelativeAlign alignment,
                                    PaletteRibbonGalleryButton button,
                                    GalleryImages images,
                                    NeedPaintHandler needPaint)
 {
     _palette = palette;
     _alignment = alignment;
     _button = button;
     _images = images;
     _needPaint = needPaint;
     _paletteBack = new PaletteBackToPalette(palette, PaletteBackStyle.ButtonGallery);
     _paletteBorder = new PaletteBorderToPalette(palette, PaletteBorderStyle.ButtonGallery);
     _paletteContent = new PaletteContentToPalette(palette, PaletteContentStyle.ButtonGallery);
     _controller = new GalleryButtonController(this, needPaint, (alignment != PaletteRelativeAlign.Far));
     _controller.Click += new MouseEventHandler(OnButtonClick);
     MouseController = _controller;
 }