why it is slow to create a new WPF Control in this example?
Is there any way to speed it up?
The related code is under that page.
From Line 1 to Line 3 takes about 1-2 second.
1. this.wpfAddInHostView = wpfAddInToken.Activate<IWPFAddInHostView>(AddInSecurityLevel.Internet);// Get and display add-in UI 2. FrameworkElement addInUI = this.wpfAddInHostView.GetAddInUI();3. this.addInUIHostGrid.Children.Add(addInUI);