我需要使用Windows照片查看器查看图像,我尝试了建议的解决方案here
此代码对我有用:
DownloadProgress = 10;
rect.Rect = new Rect(0, 0, 50, (double)DownloadProgressAsImageHeight);
我的问题是,我应该通过什么参数来全屏打开图片?
答案 0 :(得分:1)
做这样的事情 -
ProcessStartInfo startInfo = new ProcessStartInfo(@"C:\MyPicture.jpg");
startInfo.WindowStyle = ProcessWindowStyle.Maximized;
Process.Start(startInfo);
注意 - 无法制作它"全屏",仅限以上代码"最大化"。