[Expression Blend 2.5] Error when using a Path created by Expression Design
Last post 05-15-2008 1:36 PM by VariousArtist. 14 replies.
Sort Posts:
03-06-2008 4:54 AM
[Expression Blend 2.5] Error when using a Path created by Expression Design

Hi everyone,

I'm having an error when I use a Path imported from Expression Design: Blend 2.5 say me that the Data is invalid/incorrect. I'm also having the same issue when I design a Path in Expression Blend and copy/paste it in Blend...

Note that I have no issue when I used the designer available in Visual Studio.....

 

Any ideas ?

 

Thanks !

Thomas LEBRUN

Loading...
Joined on 07-22-2006
Posts 20
03-06-2008 9:17 AM
Re: [Expression Blend 2.5] Error when using a Path created by Expression Design

FYI, the error message I get is:

 "Cannot convert ......"

 

Nobody ?

Thomas LEBRUN

Loading...
Joined on 07-22-2006
Posts 20
03-06-2008 8:51 PM
Re: [Expression Blend 2.5] Error when using a Path created by Expression Design

Hi Thomas,

Just to confirm that there is a big problem with the paths, even when they are created directly in Blend : they appear correctly and after a moment, there is a Cannot convert error.

Aude

Loading...
Joined on 03-07-2008
Posts 1
03-07-2008 4:26 AM
Re: [Expression Blend 2.5] Error when using a Path created by Expression Design

Could you provide a list of steps how you get into that state? Or could you post some xaml code showing this behavior?

 Thanks!

- Adrian Vinca [MSFT]
Content is provided "AS IS" with no warranties and confers no rights.
Opinions are my own and do not represent those of my employer.

Adrian Vinca

Loading...
Joined on 03-06-2008
Redmond, WA
Posts 10
03-07-2008 4:29 AM
Re: [Expression Blend 2.5] Error when using a Path created by Expression Design

Hello, can you post the result of the generated markup? I can't seem to reproduce this problem...

shanaolanxing - Please mark the posts as answers if they help and unmark if they don't.

Yi-Lun Luo - MSFT

Loading...
Joined on 10-29-2007
Posts 1,976
03-07-2008 4:39 AM
Re: [Expression Blend 2.5] Error when using a Path created by Expression Design

Hi Adrian,

 I've sent you an email with all the information. In case, you can easily reproduce this issue:


- Open Expression Design
- Draw a Path
- Export the drawing to a Silverlight Canvas
- Open your Silverlight 2 project
- Add a usercontrol
- Copy the code from the Silverlight canvas you get after exporting the path (don't forget to remove the first line: <?xml .....>)
- Paste this code in your Silverlight UserControl
- Blend shows you the error.
- Save the file.
- Open the solution with VS 2008 and double clic on your usercontrol
- VS displays it correctly.

You can also try this:

- Open Blend

- Design a Path

- Copy the Path

- Paste the Path => It will result in an error....

 

Thanks !

Thomas LEBRUN

Loading...
Joined on 07-22-2006
Posts 20
03-07-2008 4:41 AM
Re: [Expression Blend 2.5] Error when using a Path created by Expression Design

Hi Yi-Lun,

The following Path draw in Blend works fine:

<UserControl
 xmlns="http://schemas.microsoft.com/client/2007"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 mc:Ignorable="d"
 x:Class="TestSilverlightApplication.UserControl1"
 d:DesignWidth="640" d:DesignHeight="480">

 <Grid x:Name="LayoutRoot" Background="White" >
  <Path Height="91.835" HorizontalAlignment="Left" Margin="116.5,132.664993286133,0,0" VerticalAlignment="Top" Width="168" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" Data="M117,136 C283,119 284,184 284,184 L190,224.00024 z" d:LayoutOverrides="Height"/>
 </Grid>
</UserControl> 

 

But this one shows use a "Cannot convert...." error:

<UserControl
 xmlns="http://schemas.microsoft.com/client/2007"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 mc:Ignorable="d"
 x:Class="TestSilverlightApplication.UserControl1"
 d:DesignWidth="640" d:DesignHeight="480">

 <Grid x:Name="LayoutRoot" Background="White" >
  <Path Height="91.835" HorizontalAlignment="Left" Margin="116.5,132.664993286133,0,0" VerticalAlignment="Top" Width="168" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" Data="M117,136 C283,119 284,184 284,184 L190,224.00024 z" d:LayoutOverrides="Height"/>
  <Path Height="91.835" HorizontalAlignment="Left" Margin="116.5,132.664993286133,0,0" VerticalAlignment="Top" Width="168" Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FF000000" Data="M117,136 C283,119 284,184 284,184 L190,224.00024 z" d:LayoutOverrides="Height"/>
 </Grid>
</UserControl>

 

Thomas LEBRUN

Loading...
Joined on 07-22-2006
Posts 20
03-07-2008 4:49 AM
Re: [Expression Blend 2.5] Error when using a Path created by Expression Design

Strange, both seems to draw fine for me... Where did you get Blend 2.5? Is it from http://www.microsoft.com/downloads/details.aspx?FamilyId=32A3E916-E681-4955-BC9F-CFBA49273C7C&displaylang=en?

shanaolanxing - Please mark the posts as answers if they help and unmark if they don't.

Yi-Lun Luo - MSFT

Loading...
Joined on 10-29-2007
Posts 1,976
03-07-2008 4:54 AM
Re: [Expression Blend 2.5] Error when using a Path created by Expression Design

Yes, this is the correct and original version.

 I'm working offline with Adrian to find the problem (looks like we find it but I prefer to wait for his response).

I will let you informed as soon as I can !

 

Thanks.

Thomas LEBRUN

Loading...
Joined on 07-22-2006
Posts 20
03-07-2008 5:05 AM
Marked as Answer
Re: [Expression Blend 2.5] Error when using a Path created by Expression Design

Problem found and solved !

 You need to use English - US regional settings when you work with Silverlight 2 projects...

Bye.

Thomas LEBRUN

Loading...
Joined on 07-22-2006
Posts 20
03-07-2008 5:09 AM
Re: [Expression Blend 2.5] Error when using a Path created by Expression Design

Expression Blend 2.5 March 2008 Preview may run into some conversion issues if the regional settings are not English when editing Silverlight 2 projects.

 You can avoid these issues by setting the Regional settings to English: open the Control Panel -> Regional and Language Options -> select English (United States) -> press Ok.

 Thanks,
Adrian

- Adrian Vinca [MSFT]
Content is provided "AS IS" with no warranties and confers no rights.
Opinions are my own and do not represent those of my employer.

Adrian Vinca

Loading...
Joined on 03-06-2008
Redmond, WA
Posts 10
03-14-2008 8:05 AM
Re: [Expression Blend 2.5] Error when using a Path created by Expression Design

I´ve been having the same problem. Gonna try this when I get home, thanks!

pefc

Loading...
Joined on 01-02-2008
Sweden
Posts 49
03-18-2008 2:29 PM
Re: [Expression Blend 2.5] Error when using a Path created by Expression Design

Hi Adrian,

Can you confirm this is a bug that will be fixed in the next version of Silverlight/Blend?

Kind regards,

Rob Houweling

(If this has answered your question, please click on "mark as answer" on this post. Thank you!)

Kind Regards,
Rob Houweling

Visit my blog at http://web-snippets.blogspot.com

robhouweling

Loading...
Joined on 03-01-2008
Ede
Posts 249
03-18-2008 4:39 PM
Re: [Expression Blend 2.5] Error when using a Path created by Expression Design

Yes, it is a bug caused by the way Expression Blend hosts the Silverlight 2 control. We understand that it impacts many of our customers, but, unfortunately, we can't give any estimates for a fix.

 Hope this helps,
- Adrian

- Adrian Vinca [MSFT]
Content is provided "AS IS" with no warranties and confers no rights.
Opinions are my own and do not represent those of my employer.

Adrian Vinca

Loading...
Joined on 03-06-2008
Redmond, WA
Posts 10
05-15-2008 1:36 PM
Re: [Expression Blend 2.5] Error when using a Path created by Expression Design

I got the same error when I ran my app on some machines and not others (depending on what version of the plug-in I had installed).

 

I see that Blend 2008 added the following "without my consent" to my XAML:

    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"

I simply removed those lines and everything was working again...

VariousArtist

Loading...
Joined on 10-16-2007
Posts 26
Page view counter