The type or namespace name 'Window' does not exist in the namespace 'System.Windows'

前端 未结 1 964
旧巷少年郎
旧巷少年郎 2020-12-21 15:56

I am trying to write an extension method for the WPF Window class. I am doing it in a class library project in my solution, so that I can use it in all my projects in the s

相关标签:
1条回答
  • 2020-12-21 16:36

    Add PresentationFramework.dll reference to your project it contains the System.Windows namespace.

    http://msdn.microsoft.com/es-es/library/system.windows.window(v=vs.110).aspx

    0 讨论(0)
提交回复
热议问题