I have a listbox which items are built horizontally.
Also i have a DataGrid whose Columns are built dynamically.
Each ListBoxItem is coresponding to a DataGrid Column
I want to sync between the DataGrid Column and the right ListBoxItem, so each ListBoxItem will be parallel to a column. Also when resizing the column , it will change the size of the ListBoxItem.
How can i do it?
You can bind item width with to the datagrid column actualwidth
If you create them dynamically, set binding in code.