DefaultStyles.ToggleButtonStyle
property · DefaultStyles · cAlgo.API
DesktopCLICloud
Gets the Toggle Button default style.
Definition
public static Style ToggleButtonStyle {get;}
DefaultStyles.ToggleButtonStyle: Style
Returns Style
Examples
var style = new Style(DefaultStyles.ToggleButtonStyle);
style.Set(ControlProperty.BackgroundColor, Color.SteelBlue, ControlState.Checked);
Chart.AddControl(new ToggleButton { Text = "Auto trading", Style = style });
style = Style(DefaultStyles.ToggleButtonStyle)
style.Set(ControlProperty.BackgroundColor, Color.SteelBlue, ControlState.Checked)
toggleButton = ToggleButton()
toggleButton.Text = "Auto trading"
toggleButton.Style = style
api.Chart.AddControl(toggleButton)