Help needed in drawing 3D scrollbars

微笑、不失礼 提交于 2019-12-13 05:39:39

问题


I need to write the following component in WPF:

It should be over image, I should able to drag the lines with the mouse (drag X up and down, drag Y left and right, and Z spin from horizontal to vertical)

My backround in WPF is almost not exist,

Can you give me guidliness? do you know component that doing it, or something similar to that? Do you know what is the name of this control?

Thanks.


回答1:


I refactored the program in http://www.codeproject.com/KB/WPF/WPFDiagramDesigner_Part1.aspx

In the code I just remark //Canvas.SetTop(designerItem, top + e.VerticalChange); And remain Canvas.SetLeft(designerItem, left + e.HorizontalChange);

Delete almost everything, replaced image with rectangle,

And now the verical and horizontal lines drag and drop lines work,

Now I am searching how to do the diagonal line drag and drop (I tried to do it with path/line control, I had the problem that if I add the diagonal line, it capture all the mouse event, and I can't move the other lines)

Help still needed




回答2:


I managed to do it,

You can download the code here



来源:https://stackoverflow.com/questions/5460020/help-needed-in-drawing-3d-scrollbars

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!