ComponentFactory.Krypton.Toolkit.PaletteInputControlTripleRedirect.SetStyles C# (CSharp) Method

SetStyles() public method

Update each individual style based on the input control style.
public SetStyles ( InputControlStyle style ) : void
style InputControlStyle New input control style.
return void
        public void SetStyles(InputControlStyle style)
        {
            switch (style)
            {
                case InputControlStyle.Standalone:
                    SetStyles(PaletteBackStyle.InputControlStandalone,
                              PaletteBorderStyle.InputControlStandalone,
                              PaletteContentStyle.InputControlStandalone);
                    break;
                case InputControlStyle.Ribbon:
                    SetStyles(PaletteBackStyle.InputControlRibbon,
                              PaletteBorderStyle.InputControlRibbon,
                              PaletteContentStyle.InputControlRibbon);
                    break;
                case InputControlStyle.Custom1:
                    SetStyles(PaletteBackStyle.InputControlCustom1,
                              PaletteBorderStyle.InputControlCustom1,
                              PaletteContentStyle.InputControlCustom1);
                    break;
            }
        }

Same methods

PaletteInputControlTripleRedirect::SetStyles ( PaletteBackStyle backStyle, PaletteBorderStyle borderStyle, PaletteContentStyle contentStyle ) : void

Usage Example

Esempio n. 1
0
 /// <summary>
 /// Update the combo box input control style.
 /// </summary>
 /// <param name="style">New input control style.</param>
 public void SetStyles(InputControlStyle style)
 {
     _comboBoxRedirect.SetStyles(style);
 }