<Window x:Class="Specialized2DChartControlTest.StemChart"      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    xmlns:local="clr-namespace:Specialized2DChartControl;                 assembly=Specialized2DChartControl"    Title="StemChart" Height="350" Width="400">    <Grid x:Name="rootGrid" SizeChanged="rootGrid_SizeChanged">        <local:StemControl x:Name="myStemChart"/>    </Grid></Window>

Here is the corresponding code-behind file:

using System;using System.Collections.Generic;using System.Windows;using System.Windows.Controls;using System.Windows.Media;namespace Specialized2DChartControlTest{    public partial class StemChart : Window    {        public StemChart() ...

Get Practical WPF Charts and Graphics now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.