WPF - tabcontrol和picturebox [英] WPF - tabcontrol and picturebox

查看:136
本文介绍了WPF - tabcontrol和picturebox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!



首先抱歉我的英语不好。我正在编写一个简单的应用程序来处理图像处理。我想在窗口中打开多个图像(类似于Web浏览器)。我已经读过它但我只找到了一个选项,我可以将图标等图像放入切换标签区域。请给我一个如何解决它的提示。我想我需要在openfiledialog上运行,也许在某些循环中动态创建一个图片框。请帮忙。

Hello!

First of all sorry for my bad english. I am writting a simple application to image proccessing. I would like to open more then one images in window (similary to web browser). I have read sth about it but I only found an option where I can put images like icons into the switching tab area. Please give me a tip how to resolve it. I suppose I need to operate on openfiledialog, maybe dynamically creating a picture box in some loops. Please help.

推荐答案

我终于看到 PictureBox 是邪恶的。它是无害的,微不足道的,很少有用,但它对初学者有一种神奇的效果,试着在没有任何意义的地方使用它。我虽然WPF用户会忘记它。



好​​的,WPF中没有 PictureBox ;即使在表格中也不需要它。把它忘了吧。你有一切可以使用图像。



一切都来自这里:

http://msdn.microsoft.com/en-us/library/system.windows.media.imagesource.aspx [ ^ ]。



更具体地说,所有与位图相关的内容 - 从这里开始:

http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.bitmapsource.aspx [ ^ ],

http:/ /msdn.microsoft.com/en-us/libr ary / system.windows.media.imaging.bitmapsource.aspx# inheritanceContinued [ ^ ]。



这就是你所需要的。



-SA
I finally see that PictureBox is evil. It''s harmless, trivial and very rarely useful, but it has a magic effect on the beginners, tho try to use it where it makes no sense at all. I though WPF users will forget it.

OK, there is not PictureBox in WPF; and it is not really needed even in Forms. Just forget it. You have everything to work with images.

Everything is derived from here:
http://msdn.microsoft.com/en-us/library/system.windows.media.imagesource.aspx[^].

More specifically, everything related to bitmaps — from here:
http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.bitmapsource.aspx[^],
http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.bitmapsource.aspx#inheritanceContinued[^].

That''s all you need.

—SA


这篇关于WPF - tabcontrol和picturebox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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