protected override void OnShown(EventArgs e) { base.OnShown(e); string r = AppTicks.TickCountLap("AP"); System.Diagnostics.Debug.WriteLine($"onshown {r}"); }
public TestThemeSpeed() { InitializeComponent(); theme = new ThemeList(); theme.LoadBaseThemes(); theme.SetThemeByName("Elite Verdana"); // Theme.Current.ButtonStyle = "System"; // if removed, its faster Theme.Current.WindowsFrame = true; System.Diagnostics.Debug.WriteLine($"start {AppTicks.TickCountLap("AP", true)}"); for (int i = 0; i < 1000; i++) { ExtComboBox cb = new ExtComboBox(); cb.Location = new Point(1, 30 * i); cb.Size = new Size(200, 24); cb.Items = new string[] { "one", "two" }; cb.SelectedIndex = 0; panelMain.Controls.Add(cb); } Theme.Current.ApplyStd(this); System.Diagnostics.Debug.WriteLine($"added {AppTicks.TickCountLap("AP")}"); }