redtick123
07 Jan 2020, 17:01
( Updated at: 21 Dec 2023, 09:21 )
It's hard to do it with static text. If you want to control alignment it's better to use custom UI controls. You can use Grid to make a table. But it is a bit complicated, for each cell you need to create a TextBlock.
I'm working on DataGrid control, that makes it easier.
redtick123
07 Jan 2020, 17:01 ( Updated at: 21 Dec 2023, 09:21 )
It's hard to do it with static text. If you want to control alignment it's better to use custom UI controls. You can use Grid to make a table. But it is a bit complicated, for each cell you need to create a TextBlock.
I'm working on DataGrid control, that makes it easier.
1. Get class from here and paste it to your cBot or indicator:
https://raw.githubusercontent.com/redtick123/cTraderRedUI/master/DataGrid.cs
2. cBot with your example will look like this:
You can change text for cells as well foreground and background colors:
@redtick123