开发者

Combining two/several charting controls in one in c#

开发者 https://www.devze.com 2023-03-07 00:07 出处:网络
Can anyone please tell how to combine two controls, not necessary charting controls, at one? What I need to do? Maybe there is a book or example?

Can anyone please tell how to combine two controls, not necessary charting controls, at one? What I need to do? Maybe there is a book or example?

I'm using System.DataVisualization.Charting开发者_JS百科 controls. Thanks.


The concept of combining controls is really about aggregating functionality.

The functionality which may span multiple controls can be aggregated in two ways; either via a UserControl which simply encapsulates the controls as they exist in their original form or creating a custom control which will provide the functionality from the varying controls which you are after.

The differences between a UserControl and custom control are subtle on the surface but significant underneath the covers. Depending on your technology; WinForms, WPF, etc... there are samples online on for creating a UserControl.

0

精彩评论

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