摘要:
原来在Windows Form程序中,获取自身的启动目录是非常容易的,可以使用Application.StartupPathApplication.ExecutablePath…但是,这些方法,在WPF中都失效啦在WPF中获取自身的启动路径,是采用进程的方式来获取的String appStartupPath = System.IO.Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName); 阅读全文
posted @ 2011-08-12 09:17
徐文峰
阅读(4473)
评论(1)
推荐(1)

浙公网安备 33010602011771号