surroundings:
System: Window 7 above;
Tools: VS2013 and above.
R & D and engineering Language:
C # WPF application
effect:
Summary:
The Dll no need to call a third party, only the Bezier curve WPF, less than 500 lines of code to build custom trend effects.
principle:
Data of the WPF path Path is PathGeometry. Such as:
PathGeometry.Figures的Value类型为PathFigureCollection;即PathFigure对象的集合,将一系列的Point数据已构建Beizer曲线的形式处理后生成PathFigureCollection对象,最终以PathGeometry对象赋值给Path.Data即可实现如上述所示的效果。
主要处理函数: