287 lines
24 KiB
XML
287 lines
24 KiB
XML
<Window x:Class="BmsMonitor.App.MainWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Title="BMS Monitor" Height="820" Width="1280" MinHeight="680" MinWidth="1080"
|
|
Background="#F3F2F6" Foreground="#2D2933" Closing="Window_Closing"
|
|
FontFamily="Microsoft YaHei UI">
|
|
<Window.Resources>
|
|
<SolidColorBrush x:Key="Pink" Color="#E8589C"/>
|
|
<SolidColorBrush x:Key="PinkSoft" Color="#C63D82"/>
|
|
<SolidColorBrush x:Key="Purple" Color="#7653A6"/>
|
|
<SolidColorBrush x:Key="TextPrimary" Color="#2D2933"/>
|
|
<SolidColorBrush x:Key="TextSecondary" Color="#6F6878"/>
|
|
<SolidColorBrush x:Key="Panel" Color="#FAFFFFFF"/>
|
|
<SolidColorBrush x:Key="PanelLight" Color="#F8F8F4FA"/>
|
|
<SolidColorBrush x:Key="Stroke" Color="#FFD8D3DD"/>
|
|
|
|
<Style TargetType="Button">
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="Background" Value="#E8589C"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="Padding" Value="16,7"/>
|
|
<Setter Property="Margin" Value="5,0"/>
|
|
<Setter Property="FontWeight" Value="SemiBold"/>
|
|
<Setter Property="Cursor" Value="Hand"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border x:Name="ButtonBorder" Background="{TemplateBinding Background}" CornerRadius="4" Padding="{TemplateBinding Padding}">
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True"><Setter TargetName="ButtonBorder" Property="Opacity" Value="0.86"/></Trigger>
|
|
<Trigger Property="IsPressed" Value="True"><Setter TargetName="ButtonBorder" Property="Opacity" Value="0.68"/></Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style TargetType="ComboBox">
|
|
<Setter Property="MinWidth" Value="105"/>
|
|
<Setter Property="Height" Value="32"/>
|
|
<Setter Property="Margin" Value="7,0"/>
|
|
<Setter Property="Padding" Value="9,4"/>
|
|
<Setter Property="Background" Value="White"/>
|
|
<Setter Property="Foreground" Value="#2D2933"/>
|
|
<Setter Property="BorderBrush" Value="#FFCBC5D2"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
</Style>
|
|
<Style TargetType="ComboBoxItem">
|
|
<Setter Property="Background" Value="White"/>
|
|
<Setter Property="Foreground" Value="#2D2933"/>
|
|
<Setter Property="Padding" Value="10,7"/>
|
|
</Style>
|
|
|
|
<Style x:Key="Card" TargetType="Border">
|
|
<Setter Property="Background" Value="{StaticResource Panel}"/>
|
|
<Setter Property="BorderBrush" Value="{StaticResource Stroke}"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
<Setter Property="CornerRadius" Value="5"/>
|
|
<Setter Property="Padding" Value="13"/>
|
|
<Setter Property="Margin" Value="4"/>
|
|
</Style>
|
|
<Style x:Key="Value" TargetType="TextBlock">
|
|
<Setter Property="FontSize" Value="24"/>
|
|
<Setter Property="FontWeight" Value="SemiBold"/>
|
|
<Setter Property="Foreground" Value="#B52E72"/>
|
|
<Setter Property="Margin" Value="0,5,0,0"/>
|
|
</Style>
|
|
<Style x:Key="CardLabel" TargetType="TextBlock">
|
|
<Setter Property="Foreground" Value="{StaticResource TextSecondary}"/>
|
|
<Setter Property="FontSize" Value="13"/>
|
|
</Style>
|
|
|
|
<Style TargetType="TabControl">
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
</Style>
|
|
<Style TargetType="TabItem">
|
|
<Setter Property="Foreground" Value="{StaticResource TextSecondary}"/>
|
|
<Setter Property="FontWeight" Value="SemiBold"/>
|
|
<Setter Property="Padding" Value="17,8"/>
|
|
<Setter Property="Margin" Value="0,0,2,6"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="TabItem">
|
|
<Border x:Name="TabBorder" Background="#FFE8E5EC" BorderBrush="#FFD3CED8" BorderThickness="1" CornerRadius="4,4,0,0" Padding="{TemplateBinding Padding}">
|
|
<ContentPresenter ContentSource="Header" HorizontalAlignment="Center"/>
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter TargetName="TabBorder" Property="Background" Value="#FFE8589C"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
</Trigger>
|
|
<Trigger Property="IsMouseOver" Value="True"><Setter TargetName="TabBorder" Property="Opacity" Value="0.84"/></Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style TargetType="DataGrid">
|
|
<Setter Property="Background" Value="White"/>
|
|
<Setter Property="Foreground" Value="#2D2933"/>
|
|
<Setter Property="BorderBrush" Value="{StaticResource Stroke}"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
<Setter Property="RowBackground" Value="White"/>
|
|
<Setter Property="AlternatingRowBackground" Value="#FFF8F4FA"/>
|
|
<Setter Property="HorizontalGridLinesBrush" Value="#FFE4E0E7"/>
|
|
<Setter Property="VerticalGridLinesBrush" Value="Transparent"/>
|
|
<Setter Property="RowHeight" Value="34"/>
|
|
<Setter Property="HeadersVisibility" Value="Column"/>
|
|
</Style>
|
|
<Style TargetType="DataGridColumnHeader">
|
|
<Setter Property="Background" Value="#FFECE8EF"/>
|
|
<Setter Property="Foreground" Value="#6D3B62"/>
|
|
<Setter Property="FontWeight" Value="SemiBold"/>
|
|
<Setter Property="Padding" Value="10,9"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
</Style>
|
|
<Style TargetType="DataGridCell">
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="Padding" Value="8,5"/>
|
|
<Setter Property="Foreground" Value="#2D2933"/>
|
|
</Style>
|
|
</Window.Resources>
|
|
|
|
<Grid Background="#F3F2F6" ClipToBounds="True">
|
|
<Image Source="Assets/taffy-fan-background.jpg" Stretch="UniformToFill" HorizontalAlignment="Right" Opacity="0.22"/>
|
|
<Rectangle>
|
|
<Rectangle.Fill>
|
|
<LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
|
|
<GradientStop Color="#F8F3F1F6" Offset="0"/>
|
|
<GradientStop Color="#EAF3F1F6" Offset="0.62"/>
|
|
<GradientStop Color="#55F3F1F6" Offset="1"/>
|
|
</LinearGradientBrush>
|
|
</Rectangle.Fill>
|
|
</Rectangle>
|
|
<Grid Margin="14">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Border Grid.Row="0" Height="82" CornerRadius="6" Padding="12,8" Margin="0,0,0,9" Background="#F8FFFFFF" BorderBrush="#FFE0D9E3" BorderThickness="1" ClipToBounds="True">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions><ColumnDefinition Width="Auto"/><ColumnDefinition Width="Auto"/><ColumnDefinition Width="*"/><ColumnDefinition Width="Auto"/></Grid.ColumnDefinitions>
|
|
<Ellipse Grid.Column="0" Width="54" Height="54" Stroke="#FFF0B8D3" StrokeThickness="2" Margin="0,0,12,0">
|
|
<Ellipse.Fill><ImageBrush ImageSource="Assets/taffy-chibi-portrait.jpg" Stretch="UniformToFill"/></Ellipse.Fill>
|
|
</Ellipse>
|
|
<StackPanel Grid.Column="1" VerticalAlignment="Center" Margin="0,0,22,0">
|
|
<TextBlock Text="BMS Monitor" FontSize="20" FontWeight="SemiBold" Foreground="#453D49"/>
|
|
<TextBlock Text="CAN 电池监控" FontSize="12" Foreground="#8B7182" Margin="0,2,0,0"/>
|
|
</StackPanel>
|
|
<StackPanel Grid.Column="2" Orientation="Horizontal" VerticalAlignment="Center">
|
|
<TextBlock Text="设备" VerticalAlignment="Center" Foreground="#5D5365"/>
|
|
<ComboBox x:Name="DeviceCombo" SelectedIndex="0"><ComboBoxItem Content="ZLG USBCAN #0"/></ComboBox>
|
|
<TextBlock Text="通道" VerticalAlignment="Center" Foreground="#5D5365" Margin="7,0,0,0"/>
|
|
<ComboBox x:Name="ChannelCombo" SelectedIndex="0"><ComboBoxItem Content="CAN1"/><ComboBoxItem Content="CAN2"/></ComboBox>
|
|
<TextBlock Text="波特率" VerticalAlignment="Center" Foreground="#5D5365" Margin="7,0,0,0"/>
|
|
<ComboBox x:Name="BaudRateCombo" SelectedIndex="0">
|
|
<ComboBoxItem Content="250 kbit/s" Tag="250"/>
|
|
<ComboBoxItem Content="500 kbit/s" Tag="500"/>
|
|
</ComboBox>
|
|
</StackPanel>
|
|
<StackPanel Grid.Column="3" Orientation="Horizontal" VerticalAlignment="Center">
|
|
<Button x:Name="ConnectButton" Content="连接设备" Click="ConnectButton_Click"/>
|
|
<Button Content="清空报文" Background="#8A718F" Click="ClearButton_Click"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<TabControl Grid.Row="1">
|
|
<TabItem Header="概览">
|
|
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
|
<Grid Margin="0,4,0,10">
|
|
<Grid.ColumnDefinitions><ColumnDefinition Width="*"/><ColumnDefinition Width="320"/></Grid.ColumnDefinitions>
|
|
<StackPanel Grid.Column="0" Margin="0,0,8,0">
|
|
<TextBlock Text="电池状态总览" FontSize="18" FontWeight="SemiBold" Foreground="#554A59" Margin="6,6,6,8"/>
|
|
<UniformGrid Columns="4">
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="总电压" Style="{StaticResource CardLabel}"/><TextBlock x:Name="PackVoltageText" Text="--.- V" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}" BorderBrush="#FFE8A1C6"><StackPanel><TextBlock Text="总电流 I" Style="{StaticResource CardLabel}"/><TextBlock x:Name="PackCurrentText" Text="--.- A" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="SOC" Style="{StaticResource CardLabel}"/><TextBlock x:Name="SocText" Text="-- %" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="工作状态" Style="{StaticResource CardLabel}"/><TextBlock x:Name="BmsStateText" Text="等待报文" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
</UniformGrid>
|
|
<UniformGrid Columns="5">
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="最高单体" Style="{StaticResource CardLabel}"/><TextBlock x:Name="MaxCellText" Text="-.--- V" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="最低单体" Style="{StaticResource CardLabel}"/><TextBlock x:Name="MinCellText" Text="-.--- V" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="最高温度" Style="{StaticResource CardLabel}"/><TextBlock x:Name="MaxTempText" Text="-- °C" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="最低温度" Style="{StaticResource CardLabel}"/><TextBlock x:Name="MinTempText" Text="-- °C" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="低压电池" Style="{StaticResource CardLabel}"/><TextBlock x:Name="LowBatteryText" Text="--.- V" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
</UniformGrid>
|
|
<Border Style="{StaticResource Card}" Margin="6,14,6,6">
|
|
<Grid><Grid.ColumnDefinitions><ColumnDefinition Width="Auto"/><ColumnDefinition Width="*"/></Grid.ColumnDefinitions>
|
|
<Border Width="6" Background="#FFFF72B6" CornerRadius="3" Margin="0,0,14,0"/>
|
|
<StackPanel Grid.Column="1"><TextBlock Text="当前故障" FontSize="15" FontWeight="SemiBold"/><TextBlock x:Name="FaultText" Text="等待数据" Foreground="#C83E78" FontSize="18" Margin="0,9,0,0" TextWrapping="Wrap"/></StackPanel>
|
|
</Grid>
|
|
</Border>
|
|
</StackPanel>
|
|
<Border Grid.Column="1" Margin="4,6,4,6" CornerRadius="6" BorderBrush="#FFE1B2CA" BorderThickness="1" ClipToBounds="True">
|
|
<Border.Background>
|
|
<ImageBrush ImageSource="Assets/taffy-fan-background.jpg" Stretch="UniformToFill" AlignmentX="Right"/>
|
|
</Border.Background>
|
|
</Border>
|
|
</Grid>
|
|
</ScrollViewer>
|
|
</TabItem>
|
|
|
|
<TabItem Header="电芯与温度">
|
|
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
|
<StackPanel Margin="0,2,0,12">
|
|
<Grid Height="70" Margin="6,2,6,5">
|
|
<TextBlock Text="16 路电芯电压" FontSize="17" FontWeight="SemiBold" Foreground="{StaticResource PinkSoft}" VerticalAlignment="Center"/>
|
|
<Image Source="Assets/taffy-chibi-umbrella.jpg" Width="68" Height="68" Stretch="UniformToFill" HorizontalAlignment="Right"/>
|
|
</Grid>
|
|
<UniformGrid Columns="4">
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="电芯 01" Style="{StaticResource CardLabel}"/><TextBlock x:Name="Cell01Text" Text="-- V" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="电芯 02" Style="{StaticResource CardLabel}"/><TextBlock x:Name="Cell02Text" Text="-- V" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="电芯 03" Style="{StaticResource CardLabel}"/><TextBlock x:Name="Cell03Text" Text="-- V" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="电芯 04" Style="{StaticResource CardLabel}"/><TextBlock x:Name="Cell04Text" Text="-- V" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="电芯 05" Style="{StaticResource CardLabel}"/><TextBlock x:Name="Cell05Text" Text="-- V" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="电芯 06" Style="{StaticResource CardLabel}"/><TextBlock x:Name="Cell06Text" Text="-- V" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="电芯 07" Style="{StaticResource CardLabel}"/><TextBlock x:Name="Cell07Text" Text="-- V" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="电芯 08" Style="{StaticResource CardLabel}"/><TextBlock x:Name="Cell08Text" Text="-- V" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="电芯 09" Style="{StaticResource CardLabel}"/><TextBlock x:Name="Cell09Text" Text="-- V" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="电芯 10" Style="{StaticResource CardLabel}"/><TextBlock x:Name="Cell10Text" Text="-- V" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="电芯 11" Style="{StaticResource CardLabel}"/><TextBlock x:Name="Cell11Text" Text="-- V" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="电芯 12" Style="{StaticResource CardLabel}"/><TextBlock x:Name="Cell12Text" Text="-- V" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="电芯 13" Style="{StaticResource CardLabel}"/><TextBlock x:Name="Cell13Text" Text="-- V" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="电芯 14" Style="{StaticResource CardLabel}"/><TextBlock x:Name="Cell14Text" Text="-- V" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="电芯 15" Style="{StaticResource CardLabel}"/><TextBlock x:Name="Cell15Text" Text="-- V" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="电芯 16" Style="{StaticResource CardLabel}"/><TextBlock x:Name="Cell16Text" Text="-- V" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
</UniformGrid>
|
|
<Grid Height="74" Margin="6,14,6,5">
|
|
<TextBlock Text="10 路温度采集" FontSize="17" FontWeight="SemiBold" Foreground="{StaticResource Purple}" VerticalAlignment="Center"/>
|
|
<Image Source="Assets/taffy-chibi-wave.png" Width="72" Height="72" Stretch="Uniform" HorizontalAlignment="Right"/>
|
|
</Grid>
|
|
<UniformGrid Columns="5">
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="温采 01" Style="{StaticResource CardLabel}"/><TextBlock x:Name="Temp01Text" Text="-- °C" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="温采 02" Style="{StaticResource CardLabel}"/><TextBlock x:Name="Temp02Text" Text="-- °C" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="温采 03" Style="{StaticResource CardLabel}"/><TextBlock x:Name="Temp03Text" Text="-- °C" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="温采 04" Style="{StaticResource CardLabel}"/><TextBlock x:Name="Temp04Text" Text="-- °C" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="温采 05" Style="{StaticResource CardLabel}"/><TextBlock x:Name="Temp05Text" Text="-- °C" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="温采 06" Style="{StaticResource CardLabel}"/><TextBlock x:Name="Temp06Text" Text="-- °C" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="温采 07" Style="{StaticResource CardLabel}"/><TextBlock x:Name="Temp07Text" Text="-- °C" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="温采 08" Style="{StaticResource CardLabel}"/><TextBlock x:Name="Temp08Text" Text="-- °C" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="温采 09" Style="{StaticResource CardLabel}"/><TextBlock x:Name="Temp09Text" Text="-- °C" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
<Border Style="{StaticResource Card}"><StackPanel><TextBlock Text="温采 10" Style="{StaticResource CardLabel}"/><TextBlock x:Name="Temp10Text" Text="-- °C" Style="{StaticResource Value}"/></StackPanel></Border>
|
|
</UniformGrid>
|
|
</StackPanel>
|
|
</ScrollViewer>
|
|
</TabItem>
|
|
|
|
<TabItem Header="CAN 报文">
|
|
<Grid Margin="0,2,0,10">
|
|
<Grid.ColumnDefinitions><ColumnDefinition Width="*"/><ColumnDefinition Width="180"/></Grid.ColumnDefinitions>
|
|
<Border Grid.Column="0" Style="{StaticResource Card}" Padding="0" Margin="0,0,8,0">
|
|
<DataGrid x:Name="FrameGrid" IsReadOnly="True" AutoGenerateColumns="False" CanUserAddRows="False" GridLinesVisibility="Horizontal">
|
|
<DataGrid.Columns>
|
|
<DataGridTextColumn Header="时间" Binding="{Binding Timestamp, StringFormat=HH:mm:ss.fff}" Width="150"/>
|
|
<DataGridTextColumn Header="ID" Binding="{Binding IdText}" Width="120"/>
|
|
<DataGridTextColumn Header="类型" Binding="{Binding FrameType}" Width="100"/>
|
|
<DataGridTextColumn Header="DLC" Binding="{Binding Dlc}" Width="70"/>
|
|
<DataGridTextColumn Header="数据" Binding="{Binding DataText}" Width="*"/>
|
|
</DataGrid.Columns>
|
|
</DataGrid>
|
|
</Border>
|
|
<Border Grid.Column="1" Style="{StaticResource Card}" Padding="8" ClipToBounds="True">
|
|
<Image Source="Assets/taffy-chibi-wave.png" Stretch="Uniform" VerticalAlignment="Bottom"/>
|
|
</Border>
|
|
</Grid>
|
|
</TabItem>
|
|
</TabControl>
|
|
|
|
<Border Grid.Row="2" Background="#FFFDF7FA" BorderBrush="{StaticResource Stroke}" BorderThickness="1" CornerRadius="5" Padding="12,9" Margin="0,8,0,0">
|
|
<Grid>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Ellipse x:Name="StatusDot" Width="10" Height="10" Fill="#FF806D87" Margin="0,0,9,0" VerticalAlignment="Center"/>
|
|
<TextBlock x:Name="StatusText" Text="未连接" Foreground="{StaticResource TextSecondary}" VerticalAlignment="Center"/>
|
|
</StackPanel>
|
|
<TextBlock x:Name="CounterText" Text="接收 0 帧" Foreground="{StaticResource PinkSoft}" HorizontalAlignment="Right" VerticalAlignment="Center"/>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|