76 lines
3.2 KiB
XML
76 lines
3.2 KiB
XML
<Window x:Class="ConeCalorimeter.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"
|
|
mc:Ignorable="d"
|
|
Title="锥形量热仪"
|
|
Height="1024"
|
|
Width="1028"
|
|
MinHeight="720"
|
|
MinWidth="1100"
|
|
WindowStartupLocation="CenterScreen"
|
|
WindowState="Maximized"
|
|
FontFamily="Microsoft YaHei UI">
|
|
<Grid Background="#F4F6F5">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="102" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid Grid.Row="0"
|
|
Background="#ECEFEE">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="76" />
|
|
<RowDefinition Height="26" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<ItemsControl ItemsSource="{Binding NavigationItems}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<UniformGrid Rows="1" />
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<Button Content="{Binding Title}"
|
|
Command="{Binding DataContext.SelectPageCommand, RelativeSource={RelativeSource AncestorType=Window}}"
|
|
CommandParameter="{Binding}"
|
|
Style="{StaticResource NavigationButtonStyle}" />
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
|
|
<Border Grid.Row="1"
|
|
Background="#DDE3E0"
|
|
BorderBrush="#C3CAC6"
|
|
BorderThickness="0,1,0,1"
|
|
Padding="14,0">
|
|
<StackPanel Orientation="Horizontal"
|
|
VerticalAlignment="Center">
|
|
<Ellipse Width="10"
|
|
Height="10"
|
|
Margin="0,0,8,0">
|
|
<Ellipse.Style>
|
|
<Style TargetType="Ellipse">
|
|
<Setter Property="Fill" Value="#B3261E" />
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding IsDeviceConnected}" Value="True">
|
|
<Setter Property="Fill" Value="#247A4A" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Ellipse.Style>
|
|
</Ellipse>
|
|
<TextBlock Text="{Binding DeviceStatusText}"
|
|
FontSize="14"
|
|
Foreground="#172320"
|
|
VerticalAlignment="Center" />
|
|
</StackPanel>
|
|
</Border>
|
|
</Grid>
|
|
|
|
<ContentControl Grid.Row="1" Content="{Binding CurrentPage}" />
|
|
</Grid>
|
|
</Window>
|