locked
Getting an error switching back and forth between Blend and VS 2008 RRS feed

  • Question

  • I'm working on the conversion of my SketchFlow app into a WPF app.  I've opened it in VS 2008, edited it.  Then close it, and open it in Expression Blend 3 to work on some design for a while.  I then saved it and tried to open it in VS 2008, but it complained.  Here's the code, with the 2 relevant lines:

    <Page
    	x:Class="WpfRFS.FindClient"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    	xmlns:Custom="http://schemas.microsoft.com/wpf/2008/toolkit"
      Title="Find Client"
    	d:DesignWidth="991.59"
    	>
    
    	<!-- other XAML code -->
    	
    </Page>

    The weird thing is it is complaining about the attribute: d:DesignWidth="991.59"

    and yet the "d" XML namespace is specified in a separate atttribute.  So, what's wrong?

     


    Rod
    Wednesday, April 21, 2010 7:31 PM

All replies

  • Howdy Rod,

    Can you copy in the specific error that shows up in VS?

    I couldnt repro the issue with B3 and VS2008 and the values you have above.

    Cheers


    Expression MVP

    my blog : http://x-coders.com/blogs/sneaky/default.aspx

    Wednesday, April 21, 2010 8:53 PM
    Moderator
  • Certainly, Brennon.  First, I've got to recreate the problem.  What I do is get into Expression Blend 3, and modify the page, like modify the width by dragging it wider/narrower.  I save the changes and get out of Expression Blend.  Then I get into VS 2008, and the error pops up.  Fortunately, this is an easily reproducible error.  The error message, in VS 2008 is:

    Error 1 The property 'DesignWidth' was not found in type 'Page'. D:\AMCI Apps\WpfRFS\WpfRFS\FindClient.xaml 7 25 WpfRFS

    there's also a warning message, and it says:

    Warning 2 The property 'DesignWidth' does not exist in XML namespace 'http://schemas.microsoft.com/expression/blend/2008'. Line 7 Position 25. D:\AMCI Apps\WpfRFS\WpfRFS\FindClient.xaml 7 25 WpfRFS

    I hope this helps.

     


    Rod
    Thursday, April 22, 2010 3:01 PM
  • Howdy Rod,

    I still dont get that issue either in B3 or B4, which is not to say it isnt happening for you - I have seen it before.

    Can you try and do a repair install on B3 or is it at all possible for you to install B4? If you are still getting the issue in Blend 4, this will ____ some ears to work out why you are having those issues quicker. I dont mean that to sound like a cop-out Rod but it is all I can suggest at the moment.

    Cheers


    Expression MVP

    my blog : http://x-coders.com/blogs/sneaky/default.aspx

    Friday, April 23, 2010 2:37 AM
    Moderator
  • We may be getting Blend 4, I don't know yet.  I could really use it, because I'd like to re-write our large VB6 app in VS 2010 as a WPF app, and I'd like to use Blend 4 for that.  Hopefully, I'll have a better idea how this is going by the end of this week.

     


    Rod
    Monday, April 26, 2010 4:17 PM
  • I know this post is a little old, but I came accross the same thing and could not find the answer online... So I am posting this to help others.

    You need to add the following to the header

     

    mc:Ignorable="d"

     

    Drew

    Thursday, July 29, 2010 3:48 PM