66 lines
3.1 KiB
Plaintext
66 lines
3.1 KiB
Plaintext
|
|
<Window x:Class="WCTDataMiner.Wpf.MainWindow"
|
||
|
|
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:WCTDataMiner.Wpf"
|
||
|
|
xmlns:views="clr-namespace:WCTDataMiner.Wpf.Views"
|
||
|
|
xmlns:viewmodels="clr-namespace:WCTDataMiner.Wpf.ViewModels"
|
||
|
|
xmlns:lvc="clr-namespace:LiveChartsCore.SkiaSharpView.WPF;assembly=LiveChartsCore.SkiaSharpView.WPF"
|
||
|
|
mc:Ignorable="d"
|
||
|
|
Title="WCTDataMiner - FOD 数据分析工具" Height="600" Width="900"
|
||
|
|
WindowStartupLocation="CenterScreen">
|
||
|
|
<Window.DataContext>
|
||
|
|
<viewmodels:MainViewModel/>
|
||
|
|
</Window.DataContext>
|
||
|
|
|
||
|
|
<Grid>
|
||
|
|
<Grid.ColumnDefinitions>
|
||
|
|
<ColumnDefinition Width="200"/>
|
||
|
|
<ColumnDefinition Width="*"/>
|
||
|
|
</Grid.ColumnDefinitions>
|
||
|
|
|
||
|
|
<!-- 左侧导航栏 -->
|
||
|
|
<Border Grid.Column="0" Background="#F5F5F5" BorderBrush="#DDD" BorderThickness="0,0,1,0">
|
||
|
|
<StackPanel Margin="10">
|
||
|
|
<TextBlock Text="导航" FontSize="16" FontWeight="Bold" Margin="0,0,0,15"/>
|
||
|
|
|
||
|
|
<Button Content="场景列表" Command="{Binding NavigateToScenariosCommand}"
|
||
|
|
Margin="0,5" Padding="10,5" HorizontalAlignment="Stretch"/>
|
||
|
|
|
||
|
|
<TextBlock Text="筛选条件" FontSize="14" FontWeight="Bold" Margin="0,20,0,10"/>
|
||
|
|
|
||
|
|
<TextBlock Text="TX 面板:" Margin="0,5"/>
|
||
|
|
<ComboBox ItemsSource="{Binding TxPanels}" SelectedItem="{Binding SelectedTxPanel}"
|
||
|
|
Margin="0,0,0,10"/>
|
||
|
|
|
||
|
|
<TextBlock Text="TX 硬件:" Margin="0,5"/>
|
||
|
|
<ComboBox ItemsSource="{Binding TxHardwares}" SelectedItem="{Binding SelectedTxHardware}"
|
||
|
|
Margin="0,0,0,10"/>
|
||
|
|
|
||
|
|
<TextBlock Text="TX 软件:" Margin="0,5"/>
|
||
|
|
<ComboBox ItemsSource="{Binding TxSoftwares}" SelectedItem="{Binding SelectedTxSoftware}"
|
||
|
|
Margin="0,0,0,10"/>
|
||
|
|
|
||
|
|
<TextBlock Text="RX 类型:" Margin="0,5"/>
|
||
|
|
<ComboBox ItemsSource="{Binding RxTypes}" SelectedItem="{Binding SelectedRxType}"
|
||
|
|
Margin="0,0,0,10"/>
|
||
|
|
</StackPanel>
|
||
|
|
</Border>
|
||
|
|
|
||
|
|
<!-- 右侧内容区域 -->
|
||
|
|
<ContentControl Grid.Column="1" Content="{Binding CurrentView}">
|
||
|
|
<ContentControl.Resources>
|
||
|
|
<DataTemplate DataType="{x:Type viewmodels:ScenarioListViewModel}">
|
||
|
|
<views:ScenarioListView/>
|
||
|
|
</DataTemplate>
|
||
|
|
<DataTemplate DataType="{x:Type viewmodels:PlossChartViewModel}">
|
||
|
|
<views:PlossChartView/>
|
||
|
|
</DataTemplate>
|
||
|
|
<DataTemplate DataType="{x:Type viewmodels:QfodChartViewModel}">
|
||
|
|
<views:QfodChartView/>
|
||
|
|
</DataTemplate>
|
||
|
|
</ContentControl.Resources>
|
||
|
|
</ContentControl>
|
||
|
|
</Grid>
|
||
|
|
</Window>
|