Mike Space

Mike Space

  • NA
  • 3
  • 0

Using WPF Window in a Windows Form Application?

Jan 2 2008 2:55 PM

I started developing an application in Studio 2005 with C# and .NET 2.0.  It was created as a "Windows Form" application. 

I have since downloaded the .NET 3.0 extensions and am now trying to add a new feature of WPF (semi-transparent buttons).  Studio allows me to "Add a new item" to the project and select "Window (WPF)".  I can then add some controls, and everything looks good.  The problem is when I try to compile.  The project cannot find the InitializeComponent() function. 

In a WPF example program that I tried, the InitilizeComponent() is auto-generated.  Can anyone tell me how to get my other project to generate the function for me?  If not, can you point me to a guide that will help me generate my own?

Thanks, Mike.


Answers (1)