SetStyles() public method

Update the palette styles using a button style.
public SetStyles ( ButtonStyle buttonStyle ) : void
buttonStyle ButtonStyle New button style.
return void
Example #1
0
 private void SetCheckButtonStyle(ButtonStyle style)
 {
     _stateCommon.SetStyles(style);
     _stateFocus.SetStyles(style);
 }
Example #2
0
 /// <summary>
 /// Update the state objects to reflect the new button style.
 /// </summary>
 /// <param name="buttonStyle">New button style.</param>
 protected virtual void SetStyles(ButtonStyle buttonStyle)
 {
     _stateCommon.SetStyles(buttonStyle);
     _stateDefault.SetStyles(buttonStyle);
     _stateFocus.SetStyles(buttonStyle);
 }
 /// <summary>
 /// Update the combo box item style.
 /// </summary>
 /// <param name="style">New item style.</param>
 public void SetStyles(ButtonStyle style)
 {
     _itemRedirect.SetStyles(style);
 }
Example #4
0
 /// <summary>
 /// Update the button style to reflect new button style setting.
 /// </summary>
 public void UpdateButtonStyle()
 {
     _palette.SetStyles(_buttonSpec.GetStyle(_redirector));
 }