在单独的窗口中显示图像 [英] show image in Separate window

查看:81
本文介绍了在单独的窗口中显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


告诉我如何在没有窗口形式且没有关闭或最小化顶部按钮在5秒钟内关闭的单独窗口中显示图像.



谢谢

Hi,
Tell me how can i show an image in separate window without windows form and without close or minimize button in top that close in 5 sec.



THANKS

推荐答案

此解决方案应为您工作.
1.创建一个视图(Window,而不是UserControl)
2.通过xaml或后面的代码将窗口样式"属性设置为无".
3.将图像放置在创建的窗口的中央.


然后,在代码中,您可以将窗口作为对话框打开,并设置一个计时器以将其关闭.
这种方法应该有效,希望我足够具体.当然,还有许多其他方式可以做到这一点,但这是我想到的第一件事.

DRA
This solution should work for you.
1. Create a view (Window, not UserControl)
2. Set the Window Style property via xaml or code behind to "None".
3. Place the image in the center of the created window.


In your code, you can then open the window as a dialog box and set a timer to close it.
This approach should work, hope i was specific enough. Of course, there are many other ways of doing this, but this is the first thing that came to my mind.

DRA


这篇关于在单独的窗口中显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆