This question is locked. New answers and comments are not allowed.
I am facing performance issues adding TabItems to the TabStrip when the number of TabItems required is more than 20. Sample code is provided below:-
Are there any property settings I can set/use in order to improve performance ?
DateTime start_time = DateTime.Now;
RadItemCollection tabCol = new RadItemCollection();
for (int intLoop = 0; intLoop < 30; intLoop++)
{
TabItem newTab = new TabItem(intLoop.ToString());
newTab.Tag = intLoop.ToString();
newTab.Visibility = ElementVisibility.Visible;
newTab.BackColor = Color.Blue;
newTab.DisplayStyle = DisplayStyle.Text;
newTab.Name = intLoop.ToString();
tabCol.Add(newTab);
}
radTabStrip1.Items.AddRange(tabCol);
TimeSpan end_time = DateTime.Now.Subtract(start_time);
MessageBox.Show(end_time.ToString());
Are there any property settings I can set/use in order to improve performance ?
DateTime start_time = DateTime.Now;
RadItemCollection tabCol = new RadItemCollection();
for (int intLoop = 0; intLoop < 30; intLoop++)
{
TabItem newTab = new TabItem(intLoop.ToString());
newTab.Tag = intLoop.ToString();
newTab.Visibility = ElementVisibility.Visible;
newTab.BackColor = Color.Blue;
newTab.DisplayStyle = DisplayStyle.Text;
newTab.Name = intLoop.ToString();
tabCol.Add(newTab);
}
radTabStrip1.Items.AddRange(tabCol);
TimeSpan end_time = DateTime.Now.Subtract(start_time);
MessageBox.Show(end_time.ToString());