Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > Windows Presentation Foundation
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Windows Presentation Foundation Discussion of the beta version of Windows Presentation Foundation "WPF" formerly know as codename "Avalon" as well as the related XAML.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Windows Presentation Foundation section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old June 23rd, 2008, 04:41 PM
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.Run();


AND


App app = new App();
Window1 mainWindow = new Window1();
mainWindow.Show();
app.Run(mainWindow);

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?



Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling Webservice from application premalm ASP.NET 2.0 Professional 3 October 17th, 2008 04:24 AM
Please use the Microsoft Robotics Forums TrevorTaylor BOOK: Professional Microsoft Robotics Studio ISBN: 978-0-470-14107-6 0 October 9th, 2008 03:36 PM
calling an external application forlorn Classic ASP Professional 0 August 19th, 2005 04:26 AM
calling an external application forlorn Classic ASP Basics 0 August 19th, 2005 04:22 AM
Microsoft Access Application Development Richard Hunter BOOK: Expert One-on-One Access Application Development 1 July 15th, 2005 03:50 PM



All times are GMT -4. The time now is 02:09 AM.


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