/// <summary>
        /// Update each individual style based on the input control style.
        /// </summary>
        /// <param name="style">New input control style.</param>
        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;

            case InputControlStyle.Custom2:
                SetStyles(PaletteBackStyle.InputControlCustom2,
                          PaletteBorderStyle.InputControlCustom2,
                          PaletteContentStyle.InputControlCustom2);
                break;

            case InputControlStyle.Custom3:
                SetStyles(PaletteBackStyle.InputControlCustom3,
                          PaletteBorderStyle.InputControlCustom3,
                          PaletteContentStyle.InputControlCustom3);
                break;
            }
        }
        /// <summary>
        /// Update each individual style based on the input control style.
        /// </summary>
        /// <param name="style">New input control style.</param>
        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;

            case InputControlStyle.Custom2:
                SetStyles(PaletteBackStyle.InputControlCustom2,
                          PaletteBorderStyle.InputControlCustom2,
                          PaletteContentStyle.InputControlCustom2);
                break;

            case InputControlStyle.Custom3:
                SetStyles(PaletteBackStyle.InputControlCustom3,
                          PaletteBorderStyle.InputControlCustom3,
                          PaletteContentStyle.InputControlCustom3);
                break;

            case InputControlStyle.PanelClient:
                SetStyles(PaletteBackStyle.PanelClient,
                          PaletteBorderStyle.InputControlStandalone,
                          PaletteContentStyle.LabelNormalControl);
                break;

            case InputControlStyle.PanelAlternate:
                SetStyles(PaletteBackStyle.PanelAlternate,
                          PaletteBorderStyle.InputControlStandalone,
                          PaletteContentStyle.LabelNormalControl);
                break;
            }
        }
コード例 #3
0
        /// <summary>
        /// Update the palette styles to the input control style.
        /// </summary>
        /// <param name="inputControlStyle">New input control style.</param>
        public void SetStyles(InputControlStyle inputControlStyle)
        {
            switch (inputControlStyle)
            {
            case InputControlStyle.Standalone:
                SetStyles(PaletteBackStyle.InputControlStandalone, PaletteBorderStyle.InputControlStandalone);
                break;

            case InputControlStyle.Ribbon:
                SetStyles(PaletteBackStyle.InputControlRibbon, PaletteBorderStyle.InputControlRibbon);
                break;

            default:
                // Should never happen!
                Debug.Assert(false);
                break;
            }
        }
コード例 #4
0
 /// <summary>
 /// Update the combo box input control style.
 /// </summary>
 /// <param name="style">New input control style.</param>
 public void SetStyles(InputControlStyle style)
 {
     ComboBox.SetStyles(style);
 }
コード例 #5
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);
 }
コード例 #6
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);
 }
コード例 #7
0
 /// <summary>
 /// Update each individual style based on the input control style.
 /// </summary>
 /// <param name="style">New input control style.</param>
 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;
     }
 }