I have the following problem: I'm coding a C# WPF application in Visual Studio 2010. I'm making use of the MVVM pattern and thus have several views (with xamls) that look like this:
<base:ViewBase x:Class=blablabla>
<!-- here is all the nice xaml code -->
</base:ViewBase>
My code-behind files look like this:
public partial class LogView : Infrastructure.BaseClasses.ViewBase, ILogView
{
// code here
}
The class ViewBase inherits from UserControl.
Now the Visual Studio 2010 preview of the xaml file works perfectly fine and I can edit the controls in the view.
However, now I would like to open the project in Expression Blend 3 to edit the design. Expression Blend only shows the xaml file but not the preview.
How is it possible to show the preview as well? and edit it properly.
I found this question Expression Blend Forcing User Controls to be hidden, but their solution is to temporarily make the control a UserControl. This is a workaround that may work, but comes with some extra work since every time I would like to compile, I would have to change it back! Is there a smooth way to make Expression Blend show the preview?
Best wishes, Christian