nmarun

Hi,

When I create a new WPF/E Javascript Application in Visual Studio 2005, I get the following error messages:

The type 'Canvas' was not found. Verify that you are not missing an assembly.
The type Rectangle aws not found. Verify..
The attachable property 'Fill' was not found in the type Rectangle.
The type 'LinearGradientBrush' was not found.
The type 'GradientStop' was not found.
The type 'TextBlock' was not found.

and this is what the plugin.xaml file looks like:
<Canvas xmlns="http://schemas.microsoft.com/client/2007"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Loaded="javascript:root_Loaded">
<
Canvas x:Name="button">
<
Rectangle Stroke="#FF8E8E8E" StrokeThickness="2" RadiusX="2" RadiusY="2" Height="23" Width="75">
<
Rectangle.Fill>
<
LinearGradientBrush StartPoint="0.5,2.109" EndPoint="0.5,-1.109">
<
GradientStop x:Name="gradientStop1" Color="#FFFF9E00" Offset="1"/>
<
GradientStop x:Name="gradientStop2" Color="#FFEAEAEA" Offset="0.218"/>
</
LinearGradientBrush>
</
Rectangle.Fill>
</
Rectangle>

<TextBlock Canvas.Top="3" Canvas.Left="13" FontSize="12" Foreground="#FF5A5A5A" Text="Click Me" />
</
Canvas>
</
Canvas>

But the strange thing is that the application builds successfully and runs correctly. I do not see any references added for the application either. How do I fix this

Thanks
Arun



Re: Silverlight (formerly WPF/E) General Discussion type 'Canvas' was not found error

Joe Stegman

Where do you see those errors I'm not sure if you're seeing IntelliSense related errors or build errors. You shouldn't see build errors because there's nothing to build and IntelliSense errors would not look like the ones described above.

Joe





Re: Silverlight (formerly WPF/E) General Discussion type 'Canvas' was not found error

RickStep

I'm getting the exact same errors. I'm pretty sure I installed all the proper extensions. Has anyone solved this one Help is greatly appreciated. - Rick





Re: Silverlight (formerly WPF/E) General Discussion type 'Canvas' was not found error

nmarun

I see the errors in the Error List tab of VS 2005. I believe these are not build errors, cos I can build the app successfully. The only issue is that I'm not able to see the design view of the xaml.. due to the errors.

Thanks Joe
Arun





Re: Silverlight (formerly WPF/E) General Discussion type 'Canvas' was not found error

RickStep

Again, same thing for me. The errors show up, but the only functionality that is missing is the designer.



Re: Silverlight (formerly WPF/E) General Discussion type 'Canvas' was not found error

Roberto Hernandez-Pou

Same thing here. Just some notes: Windows Vista, VS 2005 SP1, Tools for WPF, WCF also installed.

Any help would be appreciated.

Thanks,

Roberto Hernandez-Pou





Re: Silverlight (formerly WPF/E) General Discussion type 'Canvas' was not found error

Roberto Hernandez-Pou

Found this post on Cider (WPF Designer) and WPFE interaction. Is the designer not supposed to work in VS2005 for WPFE

http://blogs.conchango.com/johnrayner/rss.aspx Tags=WPFE&AndTags=1







Re: Silverlight (formerly WPF/E) General Discussion type 'Canvas' was not found error

nmarun

The other issue I've been having is the formatting of the XAML itself. When I type something like '<Button' and type the end tag '>', the closing tag '</Button>' appears automatically. This is all good, but when I hit enter the final text ends up showing as:

<Button>

</Button>

instead of

<Button>

</Button>

This might sound like a trivial issue, but I thought of bringing this issue up.


Thanks
Arun





Re: Silverlight (formerly WPF/E) General Discussion type 'Canvas' was not found error

Djalma Ribeiro

All these errors also happen with me! =/




Re: Silverlight (formerly WPF/E) General Discussion type 'Canvas' was not found error

jorgegrajales090

Hi all

The problem is in the schema.....

This is the original:
<Canvas xmlns="http://schemas.microsoft.com/client/2007"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Loaded="javascript:root_Loaded">

Change it with this:

<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Loaded="javascript:root_Loaded">

I doní»t know if this is the correct solution, but it works for me.

I have installed Expression Blend Beta 2, Visual Studio 2005 Extensions for WCF and WPF CTP and WPF/E SDK.

I hope this helps..

Regards

__________________________________
Blog: http://notasjorgegrajales.blogspot.com





Re: Silverlight (formerly WPF/E) General Discussion type 'Canvas' was not found error

nmarun

Changing the namespace did not help me. I do not have Expression Blend Beta 2 installed. I believe this should not cause an issue. I'm still having this issue.

Thanks for trying though.

Arun





Re: Silverlight (formerly WPF/E) General Discussion type 'Canvas' was not found error

jorgegrajales090

I had the same problem but I have solutioned changing the namespace.

Do you have installed the last version of WPF/E SDK and Visual Studio 2005 Extensions for WPF and WCF November 2006 CTP

If you have installed that tools, I doní»t know what is happening with this.

Regards..


Blogs:




Re: Silverlight (formerly WPF/E) General Discussion type 'Canvas' was not found error

nmarun

I have the Feb 07 version of the extensions and the SDK. I don't think I'll have to step down to the November version to fix this issue.

Thanks

Arun





Re: Silverlight (formerly WPF/E) General Discussion type 'Canvas' was not found error

Silver Surfer Coder

I've solved this problem adding a new "Window (WPF)" item to the project.
It adds some references to the project that I suppouse thar are necessary to the designer.




Re: Silverlight (formerly WPF/E) General Discussion type 'Canvas' was not found error

hgj

I did that but then I had to copy namespace definition

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

and replace the original one..

and then refresh design view and voila...