Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reference to MainWindow
Message
De
12/01/2009 19:07:02
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
12/01/2009 16:30:59
Sid Meyers
Omegaware Consulting, Inc.
Minnesota, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01372971
Message ID:
01373022
Vues:
21
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform