开发者

What kind of WPF control to use?

I want to create a 2D control that looks like a can. One color on the bottom and another color on the side. I will place many instances of this control on a canvas, and the canvas inside av viewbox.

What kind of WPF control to use?

I need support for tooltip, rightclick and drag&drop. It also has to support databinding and resizing.

What is the best way to create this control? Any advise is welc开发者_StackOverflowome. Thanks!


My advice is make a VisualBrush which has the drawing of the can as its contents. Then each item would be a Rectangle (which will support the features you need), and the Rectangle's Fill property will be set to the VisualBrush

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜