Skip to content

Window.BackgroundColor

property · Window · cAlgo.API

DesktopCLICloud

Get / Set the window background color

Environment behaviour

CLI — not supported. Never shown: Show, Hide and Close send nothing; IsVisible stays false and window events never fire.

Cloud — not supported. Never shown: Show, Hide and Close send nothing; IsVisible stays false and window events never fire.

Definition

public Color BackgroundColor {get; set;}
window.BackgroundColor: Color

Returns Color

Examples

var window = new Window { Title = "Dark window", Width = 300, Height = 200, BackgroundColor = Color.FromHex("#1E1E1E") };
window.Child = new TextBlock { Text = "Spread: " + Symbol.Spread / Symbol.PipSize, ForegroundColor = Color.White };
window.Show();
window = Window()
window.Title = "Dark window"
window.Width = 300
window.Height = 200
window.BackgroundColor = Color.FromHex("#1E1E1E")
window.Show()