wpf - Modern UI Pie Chart Doesn't Show Data -


i following steps listed on link, https://modernuicharts.codeplex.com/documentation gives below error , title , subtitle show no chart

severity code description project file line suppression state error 'chartbase' targettype not match type of element 'piechart'. mterochartsmodern c:\users\sesa388372\documents\visual studio 2015\projects\mterochartsmodern\mterochartsmodern\application.xaml 9

my xaml code:

    mc:ignorable="d"     title="mainwindow" height="350" width="525"> <grid>     <chart:piechart     style="{staticresource minimalchartstyle}"     charttitle="minimal pie chart"     chartsubtitle="chart fixed width , height"     selecteditem="{binding path=selecteditem, mode=twoway}" >         <chart:piechart.series>             <chart:chartseries             seriestitle="errors"             displaymember="category"             valuemember="number"             itemssource="{binding path=errors}" />         </chart:piechart.series>     </chart:piechart> </grid> </window> 

application.xaml

startupuri="mainwindow.xaml"> <application.resources>     <resourcedictionary >         <style x:key="minimalchartstyle" targettype="chart:chartbase">             <setter property="width" value="500"/>             <setter property="height" value="500"/>         </style>     </resourcedictionary> </application.resources>  

the issue caused since defining style targettype="chart:chartbase" , using chart:piechart.

please define style chart:piechart :

startupuri="mainwindow.xaml"> <application.resources>     <resourcedictionary >         <style x:key="minimalchartstyle" targettype="chart:piechart">             <setter property="width" value="500"/>             <setter property="height" value="500"/>         </style>     </resourcedictionary> </application.resources>  

Comments