Is it possible if I have a window form and upon a click event it opens a window in WPF using C# in Visual Studio?
Asked
Active
Viewed 2,667 times
0
-
3Yes it is. Also have in mind it is Visual and not Virtual Studio – apomene Jun 08 '17 at 13:55
1 Answers
0
Just add a wpf project, reference it, and open it in code like
private void button1_Click(object sender, EventArgs e)
{
new WpfApplication1.MainWindow().Show();
}
Where MainWindow is your window in the WpfApplication1 project. You need a reference to PresentationCore, Windowsbase and Presentationframework

Henke
- 1
- 1