user589195
user589195

Reputation: 4240

Can't access System.Windows namespace

I have a class that I want to extend the WPF Window class. I cant find the class to extend. I think it's in the System.Windows namespace, but I have no access to it. Can anyone help.

Please let me know if you require anymore information.

I am building the project as a class library.

Current references are:

Microsoft.CSharp
System
System.Core
System.Data
System.Data.DataSetExtentions
System.Xml
System.Xml.Linq

I am trying to extend the System.Windows.Window class, but when I type System., there is no .Windows.

Upvotes: 1

Views: 2313

Answers (2)

logicnp
logicnp

Reputation: 5836

The Window class is declared in the PresentationFramework.dll assembly, so you need to add a reference to that.

Upvotes: 1

Daniel Hilgarth
Daniel Hilgarth

Reputation: 174299

You need to add a reference to PresentationFramework (in PresentationFramework.dll)

Upvotes: 4

Related Questions