Thank you for the reply.
To change the position of where items are placed in the panel, you would need to utilize the Column and Row definitions to position your item in the layout grid.
You can see this is done in the sample in the method InsertWPFControls
a new column is added to the right of MainTabControl and all items to the right of the MainTabControl are shifted to the right to account for that item. To change this to the left would require that you change this logic to shift the MainTabControl and everything else to the right. You would also need to adjust the logic in RemoveWPFControls to account for the change.
The width is controlled in the line below this comment:
// a new column is added to the right of MainTabControl chartGrid.ColumnDefinitions.Insert((tabControlStartColumn + 1), new System.Windows.Controls.ColumnDefinition() { Width = new GridLength([B]125[/B]) });
In case these concepts are difficult to visualize, these are standard WPF concepts related to Grids which there are many tutorials for online.
I look forward to being of further assistance.
Comment