如何在Wpf中的一个图像控件中显示两个图像 [英] How to Display two image in one image control in Wpf

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

问题描述

当我必须在.net 2005中工作时,可以使用图形在一个图片框中显示两个图像,但是wpf可以在一个图像控件中显示两个图像,怎么可能,
如果任何人解决了问题,请帮助我.
Thanx:)

when i have to work in .net 2005 display the two image in one picture box using graphics it is possible but wpf is it possible to display the two images in one image control,how it is possible,
If any one solve the problem please help me.
Thanx :)

推荐答案

同时两个?您可以编写一个自定义PictureControl模板,该模板将允许两个图像.这将是我要做的第一件事.
Two at the same time? You could write a custom PictureControl template that would allow two images. That would be the first thing I''d try.


这样做的明显方法是添加正确数量的图像控件.失败的话,您可以将两个图像组合成一个大图像,这比编写自定义控件要容易得多.
The obvious way to do this, is to add the right number of image controls. Failing that, you can combine your two images into one big one, far easier that writing a custom control.


这篇关于如何在Wpf中的一个图像控件中显示两个图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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