Expression Blend

Jun 3, 2011 at 9:36 AM

Hello!

I'm using Catel 1.4 with Expression Blend 4. When I create a new Project inside Visual Studio with the Project Template (net 4.0) and open this solution inside Expression Blend get the following error in the MainWindow.xaml:

The property "TypeArguments" does not exist in the 
"http://schemas.microsoft.com/winfx/2006/xaml" namespace.

Does someone have any Idea?

Maybe this can help:

http://www.blagoev.com/Blog/post/Workaround-for-using-WPF-PageFunctions-in-Expression-Blend.aspx

 

Thank You!

Coordinator
Jun 3, 2011 at 12:58 PM

I am currently out of office. as soon as I get back I will take a look at this. for the meantime, try the 3.5 libraries, they work perfectly with a 4.0 project.

Jun 3, 2011 at 5:49 PM

Same problem.

Coordinator
Jun 3, 2011 at 7:12 PM

ok. can you prepare a very small example application that displays the issue and upload it as a new issue here on codeplex? you can attach files to isues.

probably it's because the datawindow and usercontrol are generic, and expression blend cannot handle this correctly (shame on expression blend). 

btw. if you are using wpf, be very careful using expr. blend. I tried copy/pasting, but the codeplex editor does not work very well on my tablet. therefore, just search for "gui designer" at http://blog.catenalogic.com

Jun 3, 2011 at 7:52 PM

I'v already read your blog artikel, but maybe you'll understand that I still want to use Expression Blend nevertheless. I think I'm not the only one that is interested in using Catel and using it with Expression Blend.

Developer
Jun 4, 2011 at 10:24 AM

You can use the same solution as used for the Silverlight implementation.

try this:

    /// <summary>
    /// Interaction logic for MainWindow.xaml.
    /// </summary>
    public class MainWindow : DataWindow<MainWindowViewModel>
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="MainWindow"/> class.
        /// </summary>
        public MainWindow()
            : base(DataWindowMode.Custom)
        {            
        }
    }
 
    public partial class MainWindow2 : MainWindow
    {
        public MainWindow2() : base()
        {
            InitializeComponent();
        }
    }
Jun 5, 2011 at 5:08 PM

Hi Marko!

I'm sure your solution is the right way to solve this problem. Unfortunately your snippet is not working. Do I have to change the Code of the MainPage.xaml, too?

I wasn't able to reconstruct your solution from an empty silverlight project - things are different there.

I'd be very thankfully if you could give me another hint.

Developer
Jun 6, 2011 at 5:20 AM

You have to make a little change to the xaml:

<Windows1:MainWindow x:Class="WPFApplication1.UI.Windows.MainWindow2"
                      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                      xmlns:Windows="clr-namespace:Catel.Windows;assembly=Catel.Windows"
                      xmlns:Windows1="clr-namespace:WPFApplication1.UI.Windows"
                      ShowInTaskbar="True">

    <!-- Resources -->
    <Windows:DataWindow.Resources>
    </Windows:DataWindow.Resources>

    <!-- Content -->
    <Grid>
        <Label Content="Here goes your real content" />
    </Grid>
</Windows1:MainWindow>
Jun 6, 2011 at 6:33 AM

Now its working!

Thank You very much!