Topics

Forum Topics not found

Replies

tminvest.real
05 Dec 2024, 09:16 ( Updated at: 05 Dec 2024, 13:53 )

Issues with Button ForegroundColor while with ToggleButton all good

Hi Team,

Still issues with Button ForegroundColor while with ToggleButton all good, please fix, thanks.

using System;using cAlgo.API;using cAlgo.API.Collections;using cAlgo.API.Indicators;using cAlgo.API.Internals;namespace cAlgo.Robots{    [Robot(AccessRights = AccessRights.None, AddIndicators = true)]    public class algoTests : Robot    {        protected override void OnStart()        {            var stackV = new StackPanel { Orientation = Orientation.Vertical, Width = 300, HorizontalAlignment = HorizontalAlignment.Left };            var btn = new Button { Text = "BUG: Button.ForegroundColor", ForegroundColor = Color.Red};//BUG            var btnT = new ToggleButton { Text = "okay with ToggleButton.ForegroundColor", ForegroundColor = Color.LightGreen};            stackV.AddChild(btn);            stackV.AddChild(btnT);            Chart.AddControl(stackV);        }    }}

@tminvest.real