I stole the code from you guys and create the buttons in State.Historical.
else if (State == State.Historical)
{
if (ChartControl != null)
{
ChartControl.Dispatcher.InvokeAsync(() =>
{
CreateWPFControls();
});
}
}
​
I do the button content and background in the method that creates the buttons
I would like to change the button content and background depending on conditions on the chart.
I tried placing this in OnBarUpdate()
buttonsArray[2].Background = Brushes.Blue;
​
that didn't work.
Is it possible to change the buttons during execution?
if so, how?
thanks


Comment