View Single Post
Old June 23rd, 2008, 03:41 PM
crossev crossev is offline
Registered User
Join Date: Jun 2008
Location: Auburn, AL, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?