开发者

Picture/Image of a usercontrol

Very simple question. I want to take a picture/image of a usercontrol very often and display that picture so开发者_运维百科mewhere else in my application. I am not going to save the image to the disk.

The question is, how do I take a image of usercontrol?


Easy, use a VisualBrush. Just point the VisualBrush's Visual property to the control that you want to paint somewhere else. It will update automatically.

Example http://msdn.microsoft.com/en-us/library/ms771563.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜