In my app, I load a screen with a collection of objects. Is there a simple way to create a number of tabs based on that collection of objects using the <igWindows:XamTabControl> and <igWindows:TabItemEx>? Everywhere I look, all of the TabItemEx's are hard coded.
I'm not sure I follow the scenario you have. Can you provide a sample so I can see what you mean about the Theme? Also, if you have derived from TabItemEx or you are setting the ItemsSource to a collection of TabItemEx then the theming set on the control would likely have no effect on the tab items. The former is explained in my blog. The latter would be because the objects in the Items collection when the ItemsSource is set are not part of the logical tree and local style changes only affect the logical tree since that is what WPF traverses. With regards to slowness when changing tabs, when you change tabs the content of the previous selected tab will come out of the visual tree. I'm guessing that is what is leading to the delay but cannot say for sure without seeing a sample.
okay that makes sense, but what doesn't is that I use the same tab control in a tabpane and I define the TabItemEx manually and I get the dark color on the left and the gray in the content area like I would with the office27Black theme without changing anything. But on a tab control in a plain window requires the theme to get same look. I don't see the theme defined in the tabpane window though.
In either case setting the theme fixed my problem. One other thing is the tab seem to take a long time to switch back and forth from one to the other. Is there a reson for this?
Thanks for the reply,
Brian
You can create styles for the TabItemEx to style the tabs
It works great but one thing...I don't get the look at feel lke I do if i define the tabs as TabItemEx in xaml manually.
Hello,
Doesn't this work?
XamTabControl x = new XamTabControl();
x.ItemsSource = new List<int>() { 1, 2, 3 };