1
Answer

Using WPF Window in a Windows Form Application?

Ask a question
Mike Space

Mike Space

16y
2.1k
1

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)
Next Recommended Forum