WPF Command Line

前端 未结 4 1773
谎友^
谎友^ 2020-11-27 12:32

I am trying to create a WPF application that takes command line arguments. If no arguments are given, the main window should pop up. In cases of some specific command line a

4条回答
  •  没有蜡笔的小新
    2020-11-27 13:29

    To check for the existence of your argument - in Matt's solution use this for your test:

    e.Args.Contains("MyTriggerArg")

提交回复
热议问题