Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I want to create a Winform application which displays Datagrid, Charts on it. My requirement is, that the user should be able to position those elements according to his choice, like we drop text box, label in winform design view. I know that there is a Canvas class in WPF, but I want to achieve the same with Winforms.

Can I use the WPF Canvas in Winform? Or is there any other solution?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
279 views
Welcome To Ask or Share your Answers For Others

1 Answer

You can use a WPF Canvas in a Windows Forms application. Just place the Canvas inside of an ElementHost control.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...