Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
swdev:dotnet:wpf:charting [2010/11/16 15:14]
smayr [Using MS Chart]
swdev:dotnet:wpf:charting [2010/11/16 15:55] (current)
smayr
Line 2: Line 2:
  
 == Using MS Chart == == Using MS Chart ==
-  * Create a WPF project.+  * Create a WPF (.NET 4.0) project.
   * Add Assembly references:   * Add Assembly references:
     * ''WindowsFormsIntegrations''     * ''WindowsFormsIntegrations''
     * ''System.Windows.Forms''     * ''System.Windows.Forms''
     * ''System.Windows.Controls.DataVisualization.Toolkit''     * ''System.Windows.Controls.DataVisualization.Toolkit''
-  * Place a ''WindowsFormsHost'' inside a ''Grid'' (in XAML).+  * Place a ''WindowsFormsHost'' control inside a ''Grid'' (in XAML)
 +  * Place a ''Chart'' control inside.
  
 Create a bar chart: Create a bar chart:
Line 19: Line 20:
     <Grid>     <Grid>
         <Grid>         <Grid>
-            <WindowsFormsHost> +            <WindowsFormsHost Width="300" Height="200" Background="WhiteSmoke"
-                <charting:Chart x:Name="chart1" BackColor="WhiteSmoke" Height="100" Width="200" />+                <charting:Chart x:Name="chart1" />
             </WindowsFormsHost>             </WindowsFormsHost>
         </Grid>         </Grid>
Line 125: Line 126:
  
 Source: [[http://blogs.msdn.com/b/wpfsdk/archive/2009/06/25/new-chart-controls-for-wpf.aspx|Chart Controls for WPF ship in the Toolkit]]          Source: [[http://blogs.msdn.com/b/wpfsdk/archive/2009/06/25/new-chart-controls-for-wpf.aspx|Chart Controls for WPF ship in the Toolkit]]         
 +
 +== References ==
 +  * [[http://weblogs.asp.net/scottgu/archive/2010/02/07/built-in-charting-controls-vs-2010-and-net-4-series.aspx|Built-in Charting Controls (VS2010 and .NET 4 Series)]]
 +  * [[http://www.smallworkarounds.net/2009/07/microsoft-charting-controls-how-to.html|MS Charting Controls HOW TO]]
 +  * [[http://code.msdn.microsoft.com/mschart|MS Chart]]
 +  * [[http://code.msdn.microsoft.com/mschart/Release/ProjectReleases.aspx?ReleaseId=1591|Download MS Chart Windows Forms sample projects]]
 +  * [[http://www.microsoft.com/downloads/en/details.aspx?FamilyId=EE8F6F35-B087-4324-9DBA-6DD5E844FD9F&displaylang=en|Download MS Chart CHM Documentation]]