<UserControl x:Class="FLY.HeatingHelper.UI.UIModule.UC_FrameDiff" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:FLY.HeatingHelper.UI.UIModule" xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf" mc:Ignorable="d" d:DesignHeight="450" d:DesignWidth="800"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="*"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <lvc:CartesianChart Grid.Row="0" x:Name="myChart" Series="{Binding MySeries}" DisableAnimations="True" Hoverable="False" DataTooltip="{x:Null}" LegendLocation="Top" FontSize="16" Margin="2,2,2,2"> <lvc:CartesianChart.AxisY> <lvc:Axis Foreground="DodgerBlue" Title="厚度变化量"> </lvc:Axis> <lvc:Axis x:Name="yax2" Foreground="IndianRed" Position="RightTop" Title="加热变化量"> <lvc:Axis.Separator> <lvc:Separator IsEnabled="False"></lvc:Separator> </lvc:Axis.Separator> </lvc:Axis> </lvc:CartesianChart.AxisY> </lvc:CartesianChart> <StackPanel Orientation="Horizontal" Grid.Row="1"> <TextBlock Text="{Binding FrameIdx1, StringFormat=第一幅号:{0}}"/> <TextBlock Text="{Binding FrameIdx2, StringFormat=第二幅号:{0}}" Margin="3,0,0,0"/> </StackPanel> </Grid> </UserControl>