WPF 中对启动参数的处理
2024-08-25 04:34:08
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
Window1 window1;
// 添加启动参数的处理
protected override void OnStartup(StartupEventArgs e)
{
window1 = new Window1();
if (e.Args.Length > 0)
window1.ShowEx(e.Args[0]);
else
window1.Show();
}
}
最新文章
- Salesforce注册开发者账号
- 团队项目——站立会议DAY7
- 实验一 Java开发环境的熟悉
- 关于JS的几点TIPS
- jQ处理页面中尺寸过大的图片
- Monyer&#39;s Game 0~5关过关方法
- HTML DOM部分---事件 windows对象;
- php下载c
- c++学习-字符串
- OpenCV-Python教程(10、直方图均衡化)
- Memcached函数整理
- 同网段电脑互ping
- MyBatis Generator代码自动生成工具的使用
- Spring系列(三):Spring IoC中各个注解的理解和使用
- TeamCity安装
- git 命令行
- flask的基础认识
- mybatis04--Mapper动态代理实现
- 开始使用Chronograf(官方说明)
- (转)DSound开发常用的几个结构