Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
2 of 4
edited tags
Kent Fredric
  • 57.6k
  • 14
  • 112
  • 151

WPF window takes 4 seconds to open in VS - help!

I have a Visual Studio add-in which opens a modal WPF window. My problem is that the first time round, it takes 4 seconds for the window to appear - a clear disservice to the client. So I'm wondering -- is there a way to optimize this away? Some kind of nifty code to preload the PresentationFramework (or whatever is slowing the thing down) when the add-in starts, rather than when it is actually used?

nesteruk
  • 23.9k
  • 23
  • 107
  • 169