I wrote a demo app (download src
here) that doesn't properly display sample data in the Visual Studio Designer and I need help.
After 6+ years developing in C# and WinForms, I've decided to use WPF in my current project. I've written a small demo application to teach myself and experiment with WPF. The app simply downloads and displays recent news stories from the Google
News RSS feed (see Figure below):
My first attempt at this resulted in the class called "GoogleNewsWidget." After reading about the MVVM model, however, I tried again and built "GoogleNewsWidget2" that attempts to utilize a more MVVM-oriented architecture. I'm not sure which implementation
is best as they both seem to be working fine on the whole (and though I'd appreciate comments on which implementation is better, this is not my primary question).
My main problem is that neither GoogleNewsWidget or GoogleNewsWidget2 play very well with the Visual Studio Designer. The GoogleNewsWidget2 loads and displays data fine when its xaml is opened directly but does not display correctly
when embedded into another xaml file. The GoogleNewsWidget does not display data in the Designer in either case (see Visual Designer screenshots
here). What's worse, I can't figure out a way to debug stuff in Visual Designer--are there tools for this?
Any help would be appreciated
View Complete Post