Windows Presentation Foundation (WPF) Question:

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

Tweet Share WhatsApp

Answer:

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

Download WPF PDF Read All 57 WPF Questions
Previous QuestionNext Question
How you can get Automation IDs of items in a ItemsControl?Which classes contain arbitrary content?