You know it has to happen. I’m guessing you’re either a developer or designer if you’re reading this blog. So you’ve work on projects of your own. No matter how much you test and fix your application there is always another bug. You release the product, have a rousing ship party, and before you’ve had a chance to sleep off the champagne buzz one of your customers has filed a bug report.
Here’s a little cold November rain for all the Microsoft folks celebrating the release of VS 2008. Yeah, I’m talking to the Cider team. Guess what I found?
Here’s the problem. Sometimes when switching from XAML view to WPF design view the toolbox doesn’t show any controls or elements.
Steps to reproduce
- Create a WPF application.
- Dock the Toolbox window so that is always visible.
- Add a new WPF Window file to project
- Click the Collapse Pane button.
- Switch to XAML view.
- Close the Window.
- Reopen the same Window file. You should be in XAML view.
- Switch to Design view. Click the ‘Resume loading the designer link’.
- You will see the designer but no controls are visible on the Toolbox.
My first instinct is to click the Window in the designer, to set focus on the Window designer. My thinking is that the IDE isn’t detecting that the Window is selected and therefore isn’t loading the correct sections in the toolbox. That doesn’t work however.
Here are a couple of stop-gap ways to get the toolbox in sync.
- Switch back to XAML and to Designer view
- The toolbox will refresh and show the controls if you close and reopen the Window file.
- The following will work occasionally: resize the designer window, use the zoom slider to zoom in/out.
Sigh. Guess I’ll have to go a report this on connect.microsoft.com.