Windows Presentation Foundation (WPF) Question:

Download Job Interview Questions and Answers PDF

How to command-line arguments be retrieved in a WPF application?

WPF Interview Question
WPF Interview Question

Answer:

The most preferred method for this is to call System.Environment.GetCommandLineArgs at any random point in the application.

Download WPF Interview Questions And Answers PDF

Previous QuestionNext Question
How you can get Automation IDs of items in a ItemsControl?Which classes contain arbitrary content?