資源簡介
這是對WPFVisifire3.6.8源代碼進行的簡單擴展,本源代碼中包含了各種實例以及一個完善的程序:內存監視器
1>修改了線Legend樣式,并放大了,源系統Legend太小
2、設置了圓環內徑可設定,原代碼內徑為外徑的1/2
3、調整了柱狀圖的間隔系數由0.1改為0.2,要不然,當柱狀圖比較多時,縫隙太小,給人的視覺感覺就是夾了一個白線
4、添加了滾輪縮放和鼠標拖放操作(見里面的程序:內存監視器)
5、添加了對DataPoints的綁定支持,這是因為使用DataSource綁定時,在動態曲線的情況下,內存無法釋放,而使用DataPoints
綁定則可以及時釋放內存,這點例子里面也使用了幾種綁定的動態曲線例子,并可通過另一個例子:內存監視器來檢測不同的
數據綁定的內存釋放情況。值得說明的是即使最新的WPFVisifire5.1.7版本,在使用DataSource綁定時,內存也不能及時釋放。
還有一些其他的小改進
感覺修改WPFVisifire的代碼相當困難,很多在不斷的嘗試下進行的,這點和微軟的WPF Charts相比,確實不一樣,微軟的WPF Charts
是完全基于WPF編程思想進行的,注重其神而忽略其形,很多樣式模板都是可以在外部修改的,相應的有關外形定義的屬性則很少,
而這點上,WPFVisifire則相對比價傳統,幾乎沒定義多少模板,但提供了超多的外形屬性,連字體大小、顏色等各種屬性都能設定。
在數據性能上,微軟的WPF Charts比較差,加載4000個數據就慢得不行,WPFVisifire3.6.8一萬多個都沒問題,更高的沒測試,
而最新的那個5.1.7版本在我的電腦上加載10W個數據在0.7秒左右,所以要想高性能,商業上還是得花那么一點錢買正版。
微軟的Chart擴展:http://download.csdn.net/detail/maiker/9646423

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Configuration;
using?System.Data;
using?System.Linq;
using?System.Threading.Tasks;
using?System.Windows;
namespace?WpfProcessesMonitor
{
????///?
????///?App.xaml?的交互邏輯
????///?
????public?partial?class?App?:?Application
????{
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????..A..H.????124416??2016-10-23?18:09??WPFVisifire3.6.8\.vs\WPFVisifire\v14\.suo
?????文件????????189??2016-10-18?13:04??WPFVisifire3.6.8\WpfProcessesMonitor\App.config
?????文件????????690??2016-10-18?15:56??WPFVisifire3.6.8\WpfProcessesMonitor\App.xaml
?????文件????????346??2016-10-18?13:04??WPFVisifire3.6.8\WpfProcessesMonitor\App.xaml.cs
?????文件??????22704??2013-02-18?15:35??WPFVisifire3.6.8\WpfProcessesMonitor\bin\Debug\de\System.Windows.Interactivity.resources.dll
?????文件??????22704??2013-02-18?15:30??WPFVisifire3.6.8\WpfProcessesMonitor\bin\Debug\en\System.Windows.Interactivity.resources.dll
?????文件??????22688??2013-02-18?15:47??WPFVisifire3.6.8\WpfProcessesMonitor\bin\Debug\es\System.Windows.Interactivity.resources.dll
?????文件??????22688??2013-02-18?15:39??WPFVisifire3.6.8\WpfProcessesMonitor\bin\Debug\fr\System.Windows.Interactivity.resources.dll
?????文件????2833408??2016-10-23?13:48??WPFVisifire3.6.8\WpfProcessesMonitor\bin\Debug\GenLibrary.dll
?????文件????4308480??2016-10-23?13:48??WPFVisifire3.6.8\WpfProcessesMonitor\bin\Debug\GenLibrary.pdb
?????文件??????22688??2013-02-18?15:42??WPFVisifire3.6.8\WpfProcessesMonitor\bin\Debug\it\System.Windows.Interactivity.resources.dll
?????文件??????23200??2013-02-18?15:55??WPFVisifire3.6.8\WpfProcessesMonitor\bin\Debug\ja\System.Windows.Interactivity.resources.dll
?????文件??????22688??2013-02-18?15:50??WPFVisifire3.6.8\WpfProcessesMonitor\bin\Debug\ko\System.Windows.Interactivity.resources.dll
?????文件??????23216??2013-02-18?15:58??WPFVisifire3.6.8\WpfProcessesMonitor\bin\Debug\ru\System.Windows.Interactivity.resources.dll
?????文件??????55904??2013-02-18?15:30??WPFVisifire3.6.8\WpfProcessesMonitor\bin\Debug\System.Windows.Interactivity.dll
?????文件?????227840??2016-10-23?18:05??WPFVisifire3.6.8\WpfProcessesMonitor\bin\Debug\WpfProcessesMonitor.exe
?????文件????????189??2016-10-18?13:04??WPFVisifire3.6.8\WpfProcessesMonitor\bin\Debug\WpfProcessesMonitor.exe.config
?????文件??????52736??2016-10-23?18:05??WPFVisifire3.6.8\WpfProcessesMonitor\bin\Debug\WpfProcessesMonitor.pdb
?????文件??????22696??2016-10-23?18:05??WPFVisifire3.6.8\WpfProcessesMonitor\bin\Debug\WpfProcessesMonitor.vshost.exe
?????文件????????189??2016-10-18?13:04??WPFVisifire3.6.8\WpfProcessesMonitor\bin\Debug\WpfProcessesMonitor.vshost.exe.config
?????文件????????490??2016-07-16?19:44??WPFVisifire3.6.8\WpfProcessesMonitor\bin\Debug\WpfProcessesMonitor.vshost.exe.manifest
?????文件????1221632??2016-10-20?15:17??WPFVisifire3.6.8\WpfProcessesMonitor\bin\Debug\WPFVisifire.Charts.dll
?????文件????2151936??2016-10-20?15:17??WPFVisifire3.6.8\WpfProcessesMonitor\bin\Debug\WPFVisifire.Charts.pdb
?????文件??????22176??2013-02-18?16:06??WPFVisifire3.6.8\WpfProcessesMonitor\bin\Debug\zh-Hans\System.Windows.Interactivity.resources.dll
?????文件??????22176??2013-02-18?16:01??WPFVisifire3.6.8\WpfProcessesMonitor\bin\Debug\zh-Hant\System.Windows.Interactivity.resources.dll
?????文件???????5812??2016-10-23?17:37??WPFVisifire3.6.8\WpfProcessesMonitor\MainWindow.xaml
?????文件???????3805??2016-10-22?18:23??WPFVisifire3.6.8\WpfProcessesMonitor\MainWindow.xaml.cs
?????文件???????1016??2016-10-23?18:05??WPFVisifire3.6.8\WpfProcessesMonitor\obj\Debug\App.baml
?????文件???????2847??2016-10-23?18:05??WPFVisifire3.6.8\WpfProcessesMonitor\obj\Debug\App.g.cs
?????文件???????2847??2016-10-23?18:07??WPFVisifire3.6.8\WpfProcessesMonitor\obj\Debug\App.g.i.cs
............此處省略466個文件信息
- 上一篇:ASP.NET項目
- 下一篇:基于C#開發的開源GIS項目 KLMap
評論
共有 條評論