Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
Adding ContentPane to a TabGroupPane programmatically and have it appear at the end
posted

Hi,

I've written some code for adding a ContentPane to a TabGroupPane. So far so good:

view.TabsGroup.Items.Add(contentPane);
view.TabsGroup.SelectedItem = contentPane;

where view.TabsGroup is a TabGroupPane and contentPane is a ContentPane.

The issue is that the new tab always appears at the beginning (e.g. it is always the leftmost), while I want them to appear at the end. I tried:

view.TabsGroup.Items.Insert(view.TabsGroup.Items.Count, contentPane);
view.TabsGroup.SelectedItem = contentPane;

but the issue persists. it appears that the order is not taken into account.

Any ideas?

Thanks,
Sam

Parents Reply Children
No Data