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