Skip to main content

Microsoft Silverlight

Answered Question System.Windows.Controls.Canvas ErrorRSS Feed

(0)

Spl33n Master
Spl33n M...

Member

Member

1 points

5 Posts

System.Windows.Controls.Canvas Error

 What reference should I use?

 

 public class Game1 : SilverArcade.SilverSprite.Game

[Game1 refers to the error]

Error 1 The type 'System.Windows.Controls.Canvas' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.


Thanks.

SharpGIS
SharpGIS

Contributor

Contributor

3387 points

611 Posts

Answered Question

Re: System.Windows.Controls.Canvas Error

According to the error you should add a reference to System.Windows

--
/Morten | blog - twitter
Please click on "Mark as Answer" if this answered your question.

Spl33n Master
Spl33n M...

Member

Member

1 points

5 Posts

Answered Question

Re: Re: System.Windows.Controls.Canvas Error

But what one? Thats what I'm confused about and where you can find it?

Spl33n Master
Spl33n M...

Member

Member

1 points

5 Posts

Re: Re: Re: System.Windows.Controls.Canvas Error

Wait no. Got it.

 

Thank you!

mchlsync
mchlsync

Star

Star

14606 points

2,730 Posts

Silverlight MVP

Re: System.Windows.Controls.Canvas Error

Can you please provide more information for that? What is Game1? What is SilverlightArcade.SilverSprite.Game? What did you write in Xaml? and etc......

Do you have System.Windows assembly in your project reference?

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

Regards,
Michael Sync
Silverlight MVP

Blog : http://michaelsync.net


  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities