p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Windows Presentation Foundation (http://p2p.wrox.com/forumdisplay.php?f=206)
-   -   Calling my WPF application from Microsoft Robotics (http://p2p.wrox.com/showthread.php?t=68962)

crossev June 23rd, 2008 03:41 PM

Calling my WPF application from Microsoft Robotics
I have an application using Microsoft Robotics Development Studio that calls a winform. I want to change my application to call a WPF application. I have a WPF with two files App.xaml and Window1.xaml and App.xaml.cs and Window1.xaml.cs. From my MRDS application I have tried to call the WPF application using the following code I found in the WPF Unleashed book.

App app = new App();
app.StartupUri = new Uri("Window1.xaml", UriKind.Relative);


App app = new App();
Window1 mainWindow = new Window1();

This compiles and runs however after initializin App it hangs when it tries to initialize Window1. What am I doing wrong? Is there any documenation that can help me?

All times are GMT -4. The time now is 08:30 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.