如何全屏打开照片查看器

时间:2017-08-22 13:52:59

标签: c# windows

我需要使用Windows照片查看器查看图像,我尝试了建议的解决方案here

此代码对我有用:

DownloadProgress = 10;
rect.Rect = new Rect(0, 0, 50, (double)DownloadProgressAsImageHeight);

我的问题是,我应该通过什么参数来全屏打开图片?

1 个答案:

答案 0 :(得分:1)

做这样的事情 -

ProcessStartInfo startInfo = new ProcessStartInfo(@"C:\MyPicture.jpg");
startInfo.WindowStyle = ProcessWindowStyle.Maximized;
Process.Start(startInfo);  

注意 - 无法制作它"全屏",仅限以上代码"最大化"。

Link to a similar question.