Files
paoxiaoqi/CurveWindow.xaml
2026-01-16 20:55:07 +08:00

45 lines
1.6 KiB
XML

<Window x:Class="EmptyLoadTest.CurveWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:oxy="http://oxyplot.org/wpf"
Title="扭矩-转速曲线"
Height="750"
Width="1024"
WindowStartupLocation="CenterScreen"
Closing="Window_Closing">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<!-- 标题栏 -->
<StackPanel Grid.Row="0" Orientation="Horizontal" Margin="10">
<TextBlock Text="实时扭矩-转速曲线"
FontSize="18"
FontWeight="Bold"
VerticalAlignment="Center"/>
<TextBlock x:Name="dataCountText"
Margin="20,0,0,0"
Foreground="Gray"
VerticalAlignment="Center"/>
</StackPanel>
<!-- 图表 -->
<oxy:PlotView x:Name="plotView"
Grid.Row="1"
Margin="10"/>
<!-- 状态栏 -->
<StatusBar Grid.Row="2">
<StatusBarItem>
<TextBlock x:Name="statusText" Text="等待数据..."/>
</StatusBarItem>
<Separator/>
<StatusBarItem>
<TextBlock x:Name="updateTimeText" Text="最后更新: --"/>
</StatusBarItem>
</StatusBar>
</Grid>
</Window>