Silverlight 2 User Control - Unknown attribute name on element

Update:

Screenshot http://farm4.static.flickr.com/3277/3048788466_661e8e5e78_b.jpg

Playback:

I am creating User Control in Silverlight 2, using this as my guide.

The problem is that when I use my User Control in Page.xaml, the XAML canvas shows this error: "Unknown attribute Name on element ...."

Due to this error, I can no longer view my XAML canvas. The strange thing is that the project is still building and beautifully doing my user control.

After examining the problem, I found out that the cause of this problem is that my user control used a style that is StaticResource. When I remove this style property, the error in my X.SAML.XAML file disappears.

This error was said in other online threads , but, unfortunately, without permission.

I use the latest versions and service packs for Visual Studio 2008 and Silverlight 2.

Is there something wrong with what I'm doing, or is this a VS / Silverlight bug?

!

+3
2
+1

, Visual Studio XAML, Silverlight, . XAML , , .

0

All Articles