Hello
Now i'm using the TabControl in my project,I find a problem makes me very boring.
When i dynamic create the TabControl,I set all of the created TabItem's IsSelected property as false,but always the first one also selected.It seems like that TabControl has a default value for selected.So how can i resolve it .This is my code.
Now i'm using the TabControl in my project,I find a problem makes me very boring.
When i dynamic create the TabControl,I set all of the created TabItem's IsSelected property as false,but always the first one also selected.It seems like that TabControl has a default value for selected.So how can i resolve it .This is my code.
foreach (var sys_import in e.Result)
{
RadTabItem item = new RadTabItem() { Header = sys_import.PlugName,IsSelected=false};
tab.Items.Add(item);
}
sys_improt is a collection,i set all the tab unselected as you see above,but
the first RadTabItem always selected
Thank you