波浪控制 [英] Wave control

查看:75
本文介绍了波浪控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

如果我不知道如何启动该问题,请问您的帮助.
我需要在WPF中进行控制.该控件的布局应该是长纸,就像传送带一样,我希望它以曲线形式模拟纸波.我需要控制该控件的颜色,即我想用不同的颜色绘制一些段.想法是在此控件中反映计划生产.我们计划在一周内生产一篇文章,每篇文章花费不同的执行时间,并在此处看到以选定的颜色反映出来的情况,我们计划在另一周内生产另一篇文章,并以不同的颜色看到它.我希望能够用鼠标在控件中更改颜色的区域,如果相邻的两种颜色相邻,则移动颜色的交点会增加一种,而减少另一种.



有任何想法吗 ?非常感谢您.

Hi guys,

Can I have your help in a question I don''t know how to start it.
I need to do a control in WPF. The layout of this control should be a long paper sheet, like a convey belt, I want it in curved lines simulating the paper waves. I need to control the color of this control, that is I want to paint some segments in different colors. The idea is to reflect the planning production in this control. We plan the production of an article for a week, each article takes a different execution time, and see it reflected in a selected color in here, we plan the production of another article for another week and see it in a different color. I''d like to be able to change the area of the color in the control with the mouse, if there''s two colors adjacent moving the junction point of the colors increases one and decreases the other.



Any ideas ? thank you very much.

推荐答案

我建​​议您拿起有关WPF控件的书并开始研究.您的图形要求有点过头,需要大量的自定义渲染.这不是一个容易开发的控件,因此,如果您以前从未尝试过类似的方法,那么您的学习曲线将非常陡峭.
I suggest you pick up a book on WPF Controls and start researching. Your graphic requirements are a bit over the top, requiring a lot of custom rendering. This is not an easy control to develop, so if you''ve never wirtten anything like this before, you''re in for a very steep learning curve.


这篇关于波浪控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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