I want to open my app (WPF based) with a file which contains parameters written in XML format.
How can I do that?
Thanks..
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As Lloyd said, in WPF instead of using the arguments in the project startup class as you would in ie WinForms you extract this from the commmand line args.
This can b done whenever so in your first window ie you could do something like this:
Then you can simply drag&drop the xml you want ontop of your WPF executable or invoke it on commandline: