<Window x:Class="WpfApp1.WdSectionsCollectionTest"
        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:local="clr-namespace:WpfApp1" xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
        mc:Ignorable="d"
        Title="SectionsCollectionTest" Height="450" Width="800">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal">
            <Button Content="刷新 SectionsCollection" Margin="5" Command="{Binding UpdateCmd}"/>
        </StackPanel>
        <TabControl Grid.Row="1" Margin="5">
            <TabItem Header="01">
                <lvc:CartesianChart DisableAnimations="True" Margin="5" Hoverable="False" DataTooltip="{x:Null}" >
                    <lvc:CartesianChart.Series>
                        <lvc:LineSeries Values="{Binding ThicknessValues}" 
                                        Configuration="{Binding MapperTv}" />
                    </lvc:CartesianChart.Series>
                    <lvc:CartesianChart.AxisX>
                        <lvc:Axis x:Name="thickChart_xAxis" LabelFormatter="{Binding DateTimeFormatter}" 
                                              Foreground="DarkSlateBlue"
                                              />
                    </lvc:CartesianChart.AxisX>
                    <lvc:CartesianChart.AxisY>
                        <lvc:Axis LabelFormatter="{Binding YFormatter}"
                                              Foreground="DarkSlateBlue"
                                              />
                    </lvc:CartesianChart.AxisY>
                </lvc:CartesianChart>
            </TabItem>
            <TabItem Header="02"/>
        </TabControl>
    </Grid>
</Window>
