c# - Why XamlParseException has place while LiveCharts loading? -
i write c# wpf mvvm application using ms vs 2015 , .net framework 4.5.2. try use livecharts. when livecharts loading folowing error has place: xamlparseexception in presentationframework.dll. not load file or assembly "livecharts.wpf, publickeytoken=3b585c2a5f1a92c1" or 1 of dependencies. below present xaml:
<usercontrol x:class="devicereading.views.devicereadingview" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:prism="http://prismlibrary.com/" xmlns:lvc="clr-namespace:livecharts.wpf;assembly=livecharts.wpf" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" prism:viewmodellocator.autowireviewmodel="true"> <grid> <grid.rowdefinitions> <rowdefinition/> </grid.rowdefinitions> <grid.columndefinitions> <columndefinition/> </grid.columndefinitions> <lvc:cartesianchart grid.row="0" grid.column="0"> <lvc:cartesianchart.series> <lvc:lineseries values="{binding myobservablecolection}" pointgeometrysize="10" strokethickness="2"/> </lvc:cartesianchart.series> <lvc:cartesianchart.axisx> <lvc:axis labelformatter="{binding datetimeformatter}" maxvalue="{binding axismax}" minvalue="{binding axismin}" disableanimations="true"> <lvc:axis.separator> <lvc:separator step="{binding axisstep}"/> </lvc:axis.separator> </lvc:axis> </lvc:cartesianchart.axisx> </lvc:cartesianchart> </grid> </usercontrol>
here usercontrol prism usercontrol , myobservablecolection instance of
observablecollection<tuple<datetime, double>>
this collection comprises real-time data want show in cartesian chart. tryed remove code view model usercontrol bound abovementioned error continues occur. in references section of prismmodule usercontrol livecharts added folowing references: livecharts ver.0.7.10.0 , livecharts.wpf ver.0.7.10.0. started use livecharts today i'm green rookie in livecharts. please help.
Comments
Post a Comment