Get the Window Owner for OpenFileDialog

Get the Window Owner for OpenFileDialog

soonhui
Advisor Advisor
342 Views
0 Replies
Message 1 of 1

Get the Window Owner for OpenFileDialog

soonhui
Advisor
Advisor

I have the following code at my plugin class ( the one that inherits from IExtensionApplication):

 

 SaveFileDialog saveDialog = new SaveFileDialog();
       
            if (saveDialog.ShowDialog(/*System.Windows.Window winObj */) == true)
            {
                serializer.Write(proj, saveDialog.FileName);
            }

In the ShowDialog, I can pass in the owner of the SaveFileDialog,  so I want to pass in the AutoCAD Main Window as the owner. 

 

How to do get the AutoCAD Main Window ?

##########

Ngu Soon Hui

##########

I'm the Benevolent Dictator for Life for MiTS Software. Read more here


I also setup Civil WHIZ in order to share what I learnt about Civil 3D
0 Likes
343 Views
0 Replies
Replies (0)