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

  • Thread starter Thread starter Blau
  • Start date Start date
B

Blau

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
 
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
 
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
 
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
 
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
 
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.


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/details.aspx?FamilyID=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
 
Blau said:
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 said:
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...
 
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 - <[email protected]>
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
 
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
 
Blau said:
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.

Not a good idea. Trying to use one GUI framework within a completely
different one is rarely going to work. I suggest you stick to the XNA
classes.
 
Blau said:
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.

I realize this conversation has already taken a different direction, but for
the benefit of the people who really do need to get WPF working with VS.NET
2005, two things: first, AFAIK you can't use .NET 3.5. .NET 3.0 is possible
though, by installing the Visual Studio 2005 extensions for .NET Framework
3.0 at
http://www.microsoft.com/downloads/...37-CC86-4BF5-AE44-F5A1E805680D&displaylang=en
.. This gets you the new file and project types in the Add New... menus and
the WPF form designer.

Hope this is of assistance to someone. :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top