Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reference to MainWindow
Message
From
12/01/2009 19:07:02
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
12/01/2009 16:30:59
Sid Meyers
Omegaware Consulting, Inc.
Minnesota, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01372971
Message ID:
01373022
Views:
16
Hi Sid,

>I know this should be straight forward but my mind feels like mush in picking up WPF and Mere Mortals.
>
>I'm trying to display a form for a vendor when their record is selected from inside a customer tab display. I can get the form to display with
>
>
>mmAppWPF.WindowManager.Show(new VendorList() );
>
>
>But I want the vendor form to be owned by the "MainWindow" form not the "Customer" form. How do I reference the "MainWindow" form?
>
>I know "this" references the calling window. As an additional aspect of this, eventually I want the vendor form to come up on a details tab with the selected vendor record displayed.
>
>I know all this should be easy, but the older I get the tougher it is "absorb" new language constructs!
>
>Thanks,
>-Sid Meyers.

I am just taking a shot at this since I am not looking at the code right now. I assume you are not calling WindowManager.Show from the MainWindow then. Is the Main Window the parent of the form you are calling from. Does this.Parent get you there?
mmAppWPF.WindowManager.Show(new VendorList(), this.Parent);
Tim
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform