<Window x:Class="PieDemo.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:oxy="clr-namespace:OxyPlot.Wpf;assembly=OxyPlot.Wpf" Title="PieDemo" Height="480" Width="640">
    <TabControl>
        <TabItem Header="Binding to PlotModel">
            <oxy:PlotView Model="{Binding PieModel}"/>
        </TabItem>
        <TabItem Header="Define plot in XAML">
            <oxy:Plot Title="World population by continent">
                <oxy:PieSeries
                    InnerDiameter="0.2"
                    ExplodedDistance="0"
                    Stroke="Black" StrokeThickness="1"
                    StartAngle="0" AngleSpan="360"
                    ItemsSource="{Binding Continents}"
                    LabelField="Name" ValueField="PopulationInMillions" IsExplodedField="IsExploded" />
            </oxy:Plot>
        </TabItem>
    </TabControl>
</Window>
