Windows Presentation Foundation (WPF) Question:

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.


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