wpf-启动参数

//第一个元素是当前程序的全路径,从第二个元素起才是命令行参数。
string[] pargs = Environment.GetCommandLineArgs();

启动最大化

WindowStartupLocation="CenterScreen" WindowState="Maximized"