2023-11-15 05:34:33 +00:00
|
|
|
<Window
|
|
|
|
|
x:Class="_20230724_MBJC_upperpc.FirstWindow"
|
|
|
|
|
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:local="clr-namespace:_20230724_MBJC_upperpc"
|
|
|
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
|
Title="FirstWindow"
|
|
|
|
|
Width="1600"
|
2023-11-15 05:59:43 +00:00
|
|
|
Height="300"
|
2023-11-15 05:34:33 +00:00
|
|
|
Background="{DynamicResource MaterialDesignPaper}"
|
|
|
|
|
FontFamily="Microsoft YaHei"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
FontWeight="ExtraLight"
|
|
|
|
|
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
|
|
|
|
|
WindowStartupLocation="CenterScreen"
|
|
|
|
|
WindowStyle="None"
|
2023-11-15 05:59:43 +00:00
|
|
|
Name="Window"
|
2023-11-15 05:34:33 +00:00
|
|
|
mc:Ignorable="d">
|
|
|
|
|
<Grid>
|
|
|
|
|
<!-- 背景颜色 -->
|
|
|
|
|
<!--
|
|
|
|
|
<Grid.Background>
|
|
|
|
|
<RadialGradientBrush>
|
|
|
|
|
<GradientStop Offset="0" Color="#FF285173" />
|
|
|
|
|
<GradientStop Offset="0.3" Color="#FF244967" />
|
|
|
|
|
<GradientStop Offset="1" Color="#FF14273A" />
|
|
|
|
|
</RadialGradientBrush>
|
|
|
|
|
</Grid.Background>-->
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="45" />
|
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
|
<RowDefinition Height="20" />
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<!-- 标题栏部分 -->
|
|
|
|
|
<Border BorderBrush="Blue" BorderThickness="0,0,0,1">
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="45" />
|
|
|
|
|
<ColumnDefinition Width="auto" />
|
|
|
|
|
<ColumnDefinition />
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Image Source="Assets/Images/Logo.png" />
|
|
|
|
|
<StackPanel
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
Margin="10,0,0,0"
|
|
|
|
|
VerticalAlignment="Center">
|
|
|
|
|
<TextBlock
|
|
|
|
|
Margin="0,-2"
|
|
|
|
|
FontSize="17"
|
|
|
|
|
Foreground="Black"
|
|
|
|
|
Text="锚点监测项目" />
|
|
|
|
|
<TextBlock
|
|
|
|
|
Margin="0,2,0,0"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
Foreground="LightGray"
|
|
|
|
|
Text="不忘初心 方得始终" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
<StackPanel
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
VerticalAlignment="Bottom">
|
|
|
|
|
<materialDesign:Card>
|
|
|
|
|
<TabControl
|
|
|
|
|
HorizontalContentAlignment="Left"
|
|
|
|
|
ItemsSource="{Binding CustomTabs}"
|
|
|
|
|
SelectedItem="{Binding SelectedTab}">
|
|
|
|
|
<TabControl.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
<TextBlock Text="{Binding CustomHeader}" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</TabControl.ItemTemplate>
|
|
|
|
|
<TabControl.ContentTemplate>
|
|
|
|
|
<DataTemplate>
|
2023-11-15 05:59:43 +00:00
|
|
|
<ContentControl Content="{Binding PageContent}" Width="{Binding Width,ElementName=Window}"/>
|
2023-11-15 05:34:33 +00:00
|
|
|
</DataTemplate>
|
|
|
|
|
</TabControl.ContentTemplate>
|
|
|
|
|
</TabControl>
|
|
|
|
|
</materialDesign:Card>
|
|
|
|
|
</StackPanel>
|
2023-11-15 05:59:43 +00:00
|
|
|
<Grid Grid.Row="2" Background="Blue"/>
|
2023-11-15 05:34:33 +00:00
|
|
|
</Grid>
|
|
|
|
|
</Window>
|