PC Review


Reply
Thread Tools Rate Thread

Can't add a reference to namespace System.Windows.Controls

 
 
Blau
Guest
Posts: n/a
 
      22nd Jun 2008
I'm trying to use the System.Windows.Controls namespace, but when I
try to add a reference to it I don't see it in the list. I see a
System.Windows.Forms, but not a System.Windows.Controls.

Can someone let me know how I go about getting it in the list of
available references?


Thanks

Jody
 
Reply With Quote
 
 
 
 
Blau
Guest
Posts: n/a
 
      22nd Jun 2008
On Jun 22, 1:50*pm, "Peter Duniho" <NpOeStPe...@nnowslpianmk.com>
wrote:
> On Sun, 22 Jun 2008 12:46:17 -0700, Blau <jodyb...@gmail.com> wrote:
> > I'm trying to use the System.Windows.Controls namespace, but when I
> > try to add a reference to it I don't see it in the list. *I see a
> > System.Windows.Forms, but not a System.Windows.Controls.

>
> > Can someone let me know how I go about getting it in the list of
> > available references?

>
> Do you have .NET 3.0 installed and the appropriate SDK? *
> System.Windows.Controls is part of WPF.
>
> Pete


I'm kind of new at this stuff, so i hope i'm giving you the info you
requested. I have .NET 3.5 Installed. I installed a Windows SDK, but
i'm not sure if this is the SDK you are refering to.

Jody
 
Reply With Quote
 
Blau
Guest
Posts: n/a
 
      22nd Jun 2008
On Jun 22, 1:50*pm, "Peter Duniho" <NpOeStPe...@nnowslpianmk.com>
wrote:
> On Sun, 22 Jun 2008 12:46:17 -0700, Blau <jodyb...@gmail.com> wrote:
> > I'm trying to use the System.Windows.Controls namespace, but when I
> > try to add a reference to it I don't see it in the list. *I see a
> > System.Windows.Forms, but not a System.Windows.Controls.

>
> > Can someone let me know how I go about getting it in the list of
> > available references?

>
> Do you have .NET 3.0 installed and the appropriate SDK? *
> System.Windows.Controls is part of WPF.
>
> Pete


I hope this isn't getting double posted (I thought i posted once, but
it didn't seem to show up).
I have .NET 3.5 installed, the only SDK's that I know that I have
installed are DirectX and Windows.
Is there a different SDK that I need?

Thanks,

Jody
 
Reply With Quote
 
Blau
Guest
Posts: n/a
 
      22nd Jun 2008
On Jun 22, 1:50*pm, "Peter Duniho" <NpOeStPe...@nnowslpianmk.com>
wrote:
> On Sun, 22 Jun 2008 12:46:17 -0700, Blau <jodyb...@gmail.com> wrote:
> > I'm trying to use the System.Windows.Controls namespace, but when I
> > try to add a reference to it I don't see it in the list. *I see a
> > System.Windows.Forms, but not a System.Windows.Controls.

>
> > Can someone let me know how I go about getting it in the list of
> > available references?

>
> Do you have .NET 3.0 installed and the appropriate SDK? *
> System.Windows.Controls is part of WPF.
>
> Pete


I have .NET 3.5 installed. Which SDK do I need?

Thanks,

Jody
 
Reply With Quote
 
Blau
Guest
Posts: n/a
 
      22nd Jun 2008
On Jun 22, 2:06*pm, Blau <jodyb...@gmail.com> wrote:
> On Jun 22, 1:50*pm, "Peter Duniho" <NpOeStPe...@nnowslpianmk.com>
> wrote:
>
> > On Sun, 22 Jun 2008 12:46:17 -0700, Blau <jodyb...@gmail.com> wrote:
> > > I'm trying to use the System.Windows.Controls namespace, but when I
> > > try to add a reference to it I don't see it in the list. *I see a
> > > System.Windows.Forms, but not a System.Windows.Controls.

>
> > > Can someone let me know how I go about getting it in the list of
> > > available references?

>
> > Do you have .NET 3.0 installed and the appropriate SDK? *
> > System.Windows.Controls is part of WPF.

>
> > Pete

>
> I hope this isn't getting double posted (I thought i posted once, but
> it didn't seem to show up).
> I have .NET 3.5 installed, the only SDK's that I know that I have
> installed are DirectX and Windows.
> Is there a different SDK that I need?
>
> Thanks,
>
> Jody


ok, i've done some more research based upon the questions you asked.
MSDN is telling me that I need Microsoft .NET Framework and the
Windows Software Development Kit (SDK) installed. I believe that I
have both installed.

So how do I gain access to the WPF, in particular the
System.Windows.Controls namespace within Vistual Studio 2005?

Thanks,

Jody
 
Reply With Quote
 
Blau
Guest
Posts: n/a
 
      22nd Jun 2008
On Jun 22, 3:13*pm, "Peter Duniho" <NpOeStPe...@nnowslpianmk.com>
wrote:
> On Sun, 22 Jun 2008 13:28:41 -0700, Blau <jodyb...@gmail.com> wrote:
> > ok, i've done some more research based upon the questions you asked.
> > MSDN is telling me that I need Microsoft .NET Framework and the
> > Windows Software Development Kit (SDK) installed. *I believe that I
> > have both installed.

>
> But which versions?
>
> You can't use just any random .NET and SDK. *You have to have the ones *
> that include WPF, which are those that support .NET 3.0 and later.
>
> > So how do I gain access to the WPF, in particular the
> > System.Windows.Controls namespace within Vistual Studio 2005?

>
> In VS2005, you'll need to install the SDK separately (VS2008 includes it,*
> but the SDK that comes with VS2005 doesn't include .NET 3.0 support, since *
> it predates that version of .NET). *You can find the latest SDK that *
> supports WPF here:http://www.microsoft.com/downloads/d...D=e6e1c3df-a74...
>
> Pete


So I have .NET 3.5 installed. I also have the version of Windows SDK
that you linked installed.
So now that I have the .NET and Windows SDK installed, how do I make
Visual Studio 2005 aware of them? I still can't seem to get the
System.Windows.Controls namespace to appear when I try to add a
reference.

Thanks,

Jody
 
Reply With Quote
 
Jon Skeet [C# MVP]
Guest
Posts: n/a
 
      22nd Jun 2008
Blau <(E-Mail Removed)> wrote:
> I have .NET 3.5 installed. Which SDK do I need?


If you've got .NET 3.5 installed, that should be fine. Chances are you
just don't have the right project references. When you created the
project, what kind of project did you choose?

--
Jon Skeet - <(E-Mail Removed)>
Web site: http://www.pobox.com/~skeet
Blog: http://www.msmvps.com/jon_skeet
C# in Depth: http://csharpindepth.com
 
Reply With Quote
 
Jon Skeet [C# MVP]
Guest
Posts: n/a
 
      22nd Jun 2008
Jon Skeet [C# MVP] <(E-Mail Removed)> wrote:
> Blau <(E-Mail Removed)> wrote:
> > I have .NET 3.5 installed. Which SDK do I need?

>
> If you've got .NET 3.5 installed, that should be fine. Chances are you
> just don't have the right project references. When you created the
> project, what kind of project did you choose?


Apologies - I had assumed that if you'd installed .NET 3.5, you'd also
got Visual Studio 2008.

Is there any reason why you have to use VS 2005? It's all going to be
*much* easier with 2008...

--
Jon Skeet - <(E-Mail Removed)>
Web site: http://www.pobox.com/~skeet
Blog: http://www.msmvps.com/jon_skeet
C# in Depth: http://csharpindepth.com
 
Reply With Quote
 
Blau
Guest
Posts: n/a
 
      22nd Jun 2008
On Jun 22, 3:31*pm, Jon Skeet [C# MVP] <sk...@pobox.com> wrote:
> Jon Skeet [C# MVP] <sk...@pobox.com> wrote:
>
> > Blau <jodyb...@gmail.com> wrote:
> > > I have .NET 3.5 installed. *Which SDK do I need?

>
> > If you've got .NET 3.5 installed, that should be fine. Chances are you
> > just don't have the right project references. When you created the
> > project, what kind of project did you choose?

>
> Apologies - I had assumed that if you'd installed .NET 3.5, you'd also
> got Visual Studio 2008.
>
> Is there any reason why you have to use VS 2005? It's all going to be
> *much* easier with 2008...
>
> --
> Jon Skeet - <sk...@pobox.com>
> Web site:http://www.pobox.com/~skeet*
> Blog:http://www.msmvps.com/jon_skeet
> C# in Depth:http://csharpindepth.com


Ya, i'm trying to use the XNA stuff from microsoft, and XNA 2.0
doesn't support 2008; So that is why i've been trying to figure it out
for 2005

Thanks,

Jody
 
Reply With Quote
 
Blau
Guest
Posts: n/a
 
      22nd Jun 2008
On Jun 22, 3:36*pm, Blau <jodyb...@gmail.com> wrote:
> On Jun 22, 3:31*pm, Jon Skeet [C# MVP] <sk...@pobox.com> wrote:
>
>
>
>
>
> > Jon Skeet [C# MVP] <sk...@pobox.com> wrote:

>
> > > Blau <jodyb...@gmail.com> wrote:
> > > > I have .NET 3.5 installed. *Which SDK do I need?

>
> > > If you've got .NET 3.5 installed, that should be fine. Chances are you
> > > just don't have the right project references. When you created the
> > > project, what kind of project did you choose?

>
> > Apologies - I had assumed that if you'd installed .NET 3.5, you'd also
> > got Visual Studio 2008.

>
> > Is there any reason why you have to use VS 2005? It's all going to be
> > *much* easier with 2008...

>
> > --
> > Jon Skeet - <sk...@pobox.com>
> > Web site:http://www.pobox.com/~skeet*
> > Blog:http://www.msmvps.com/jon_skeet
> > C# in Depth:http://csharpindepth.com

>
> Ya, i'm trying to use the XNA stuff from microsoft, and XNA 2.0
> doesn't support 2008; So that is why i've been trying to figure it out
> for 2005
>
> Thanks,
>
> Jody- Hide quoted text -
>
> - Show quoted text -


So when I create a project, I create a windows game 2.0 project using
XNA 2.0 in Visual Studio 2005.
I'm trying to learn how to create buttons and other controls within
the game application. One reference book that I have wants me to
create a "canvas" on which to draw my controls; but I noticed a
reference to a Canvas on MSDN that is contained within
System.Windows.Controls; So I thought I would see if it was possible
for me to use the Canvas in that Namespace, rather than create my own.

So i rightclick on the project references and go to add a reference.
It brings up a list of .net references, but they are all 2.0
references and so the namespace I want isn't there. How do I make
visual Studio 2005 look for .net 3.0 or 3.5 references?

thanks,

Jody
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
type or namespace name 'MessageBox' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?) mp Microsoft C# .NET 8 18th Dec 2010 05:55 AM
The type or namespace name 'Generic' does not exist in the class or namespace 'System.Collections' pantagruel Microsoft C# .NET 1 23rd Oct 2007 12:07 AM
ERROR CS0234: The type or namespace name 'DataAccessHelper' does not exist in the namespace 'BCC' (are you missing an assembly reference?) li.eddie@gmail.com Microsoft ASP .NET 0 6th Jan 2006 11:31 AM
The type or namespace 'Installer' does not exist in the class or namespace 'System.Configuration' John Chrisman Microsoft C# .NET 2 18th Nov 2005 11:24 PM
The type or namespace name 'Windows' does not exist in the class or namespace 'System' (are you missing an assembly reference?) =?Utf-8?B?UmF5?= Microsoft Dot NET 1 7th Apr 2004 10:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:32 PM.