mans
mans

Reputation: 18148

why am I getting error that x:type is not define in xaml page

I have a xaml that I copied from another project into a class library. I am getting this error (and several other errors)

The type 'x:Type' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.  \WPF\Resources\Resources\Styles\DataGridStyle.xaml

I checked and I referenced these assemblies in my class library:

  Microsoft.CSharp
  PresentationCore
  PresentationFramework
  PresentationFramework.Aero
  System
  System.core
  System.Data
  System.Data.DataSetExtension
  System.xml
  System.xml.linq
  WindowsBase

Should I include any other assemblies?

Upvotes: 1

Views: 1569

Answers (1)

Steve.NayLinAung
Steve.NayLinAung

Reputation: 5155

Add System.xaml assembly to your ClassLibrary project's "References".

Upvotes: 3

Related Questions