簡體   English   中英

使用隱藏代碼向 SCICHART 添加縮放和滾動功能

[英]add zoom and scroll capability with code behind to SCICHART

您好,我想在 SCICHART 中添加縮放和滾動代碼,這可能嗎? 我試過 xaml 但沒有用。 我的經理希望它帶有隱藏代碼。

是的,這應該很容易,對於 SciChart WPF 中的每個修飾符,您可以像這樣在代碼后面添加它:

var sciChartSurface = new SciChartSurface();
sciChartSurface.XAxis = new NumeriAxis();
sciChartSurface.YAxis = new NumeriAxis();

sciChartSurface.ChartModifiers.Add(new ZoomPanModifier());
sciChartSurface.ChartModifiers.Add(new MouseWheelZoomModifier());
sciChartSurface.ChartModifiers.Add(new ZoomExtentsModifier());

此處查看 SciChart WPF中可用修飾符的完整列表

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM