<Window x:Class="WpfApp1.ColumnRangeExample"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
        xmlns:local="clr-namespace:WpfApp1"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <Grid >
        <lvc:CartesianChart x:Name="chart" Series="{Binding SeriesCollection}" LegendLocation="Left" 
                            DisableAnimations="True" Hoverable="False" DataTooltip="{x:Null}">

            <lvc:CartesianChart.AxisX>
                <lvc:Axis MinValue="{Binding XMin}" MaxValue="{Binding XMax}"></lvc:Axis>
            </lvc:CartesianChart.AxisX>
            <lvc:CartesianChart.AxisY>
                <lvc:Axis Title="Sold Apps" LabelFormatter="{Binding Formatter}"></lvc:Axis>
            </lvc:CartesianChart.AxisY>
        </lvc:CartesianChart>
        <StackPanel Orientation="Vertical" HorizontalAlignment="Left" Background="#08000000" VerticalAlignment="Top">
            <StackPanel Orientation="Horizontal" Margin="5">
                <TextBlock Text="XMin"/>
                <TextBox Text="{Binding XMin}"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Margin="5">
                <TextBlock Text="XMax"/>
                <TextBox Text="{Binding XMax}"/>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Margin="5">
                <TextBlock Text="运行中"/>
                <TextBlock Text="{Binding IsRunning,Mode=OneWay}"/>
            </StackPanel>
            <Button Content="定时更新" Width="80" Padding="5" Click="Button_Click"/>
            <Button Content="清空" Width="80" Padding="5" Click="ButtonClear_Click"/>
            <Button Content="GC" Width="80" Padding="5" Click="ButtonGC_Click"/>
        </StackPanel>
    </Grid>
</Window>