Skip to content

DefaultStyles

class cAlgo.API

DesktopCLICloud

Represent the list of default styles for the built-in controls.

Definition

public static class DefaultStyles

Namespace: cAlgo.API · Group: Styles

Examples

var buyStyle = new Style(DefaultStyles.ButtonStyle);
buyStyle.Set(ControlProperty.BackgroundColor, Color.DarkGreen);
buyStyle.Set(ControlProperty.BackgroundColor, Color.Green, ControlState.Hover);
var button = new Button { Text = "Buy", Style = buyStyle };
Chart.AddControl(button);
buyStyle = Style(DefaultStyles.ButtonStyle)
buyStyle.Set(ControlProperty.BackgroundColor, Color.DarkGreen)
buyStyle.Set(ControlProperty.BackgroundColor, Color.Green, ControlState.Hover)
button = Button()
button.Text = "Buy"
button.Style = buyStyle
api.Chart.AddControl(button)

Properties

Name Description
ButtonStyleDesktopCLICloudStyle Gets the Button default style.
CheckBoxStyleDesktopCLICloudStyle Gets the Checkbox default style.
ComboBoxStyleDesktopCLICloudStyle Gets the ComboBox default style.
MultiSelectStyleDesktopCLICloudStyle Gets the MultiSelect default style.
RadioButtonStyleDesktopCLICloudStyle Gets the Radio Button default stile.
ScrollViewerStyleDesktopCLICloudStyle Gets the Scroll Viewer default style.
TabControlStyleDesktopCLICloudStyle Gets the Tab Control default style.
TabItemStyleDesktopCLICloudStyle Gets the Tab Item default style.
TextBlockStyleDesktopCLICloudStyle Gets the Text Block default style.
TextBoxStyleDesktopCLICloudStyle Gets the Text Box default style.
ToggleButtonStyleDesktopCLICloudStyle Gets the Toggle Button default style.

See also