VPet/VPet.Solution/Views/MainWindow.xaml

101 lines
4.1 KiB
Plaintext
Raw Normal View History

2023-12-18 14:53:56 +00:00
<pu:WindowX
x:Class="VPet.Solution.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:ll="clr-namespace:LinePutScript.Localization.WPF;assembly=LinePutScript.Localization.WPF"
xmlns:local="clr-namespace:VPet.Solution"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:pu="https://opensource.panuon.com/wpf-ui"
xmlns:system="clr-namespace:System;assembly=mscorlib"
2023-12-20 12:51:58 +00:00
xmlns:vm="clr-namespace:VPet.Solution.ViewModels"
2023-12-18 14:53:56 +00:00
Title="{ll:Str 'VPET 问题解决工具'}"
Width="800"
Height="450"
2023-12-20 12:51:58 +00:00
d:DataContext="{d:DesignInstance Type=vm:MainWindowVM}"
2023-12-18 14:53:56 +00:00
mc:Ignorable="d">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid>
<ListBox x:Name="ListBox_Saves" />
</Grid>
<Grid Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition MinWidth="200" />
<ColumnDefinition MinWidth="100" />
</Grid.ColumnDefinitions>
<Grid Grid.Column="1">
<TextBox
x:Name="tb_seach_menu"
Margin="3,6,6,0"
VerticalAlignment="Top"
2023-12-20 12:51:58 +00:00
d:TextChanged="tb_seach_menu_textchange"
2023-12-18 14:53:56 +00:00
pu:TextBoxHelper.Watermark="{ll:Str 搜索设置}"
FontSize="16"
2023-12-20 12:51:58 +00:00
Style="{DynamicResource StandardTextBoxStyle}" />
2023-12-18 14:53:56 +00:00
<ListBox
x:Name="ListMenu"
Margin="3,40,6,3"
pu:ListBoxHelper.CornerRadius="5"
pu:ListBoxHelper.ItemsHoverBackground="{DynamicResource Primary}"
pu:ListBoxHelper.ItemsSelectedBackground="{DynamicResource SecondaryLight}"
Background="{DynamicResource SecondaryLighter}"
BorderBrush="{DynamicResource Primary}"
BorderThickness="2"
ScrollViewer.HorizontalScrollBarVisibility="Auto"
ScrollViewer.VerticalScrollBarVisibility="Auto" />
</Grid>
<GridSplitter Width="3" Background="{DynamicResource PrimaryDarker}" />
<Grid>
<TabControl
x:Name="MainTab"
Grid.Column="1"
Margin="5"
2023-12-20 12:51:58 +00:00
d:SelectionChanged="MainTab_SelectionChanged"
2023-12-18 14:53:56 +00:00
pu:TabControlHelper.CanHeaderPanelScroll="True"
pu:TabControlHelper.ItemsCornerRadius="4"
pu:TabControlHelper.ItemsHeight="NaN"
pu:TabControlHelper.ItemsHoverBackground="{DynamicResource PrimaryLight}"
pu:TabControlHelper.ItemsPadding="10,7"
pu:TabControlHelper.ItemsSelectedBackground="{DynamicResource PrimaryDark}"
pu:TabControlHelper.ItemsSelectedForeground="{DynamicResource DARKPrimaryText}"
Background="Transparent"
BorderThickness="0"
2023-12-20 12:51:58 +00:00
Foreground="{DynamicResource PrimaryText}">
2023-12-18 14:53:56 +00:00
<TabControl.ContentTemplate>
<DataTemplate>
<Border
Margin="0,5,0,10"
Background="{DynamicResource DARKPrimaryText}"
CornerRadius="15">
<ContentControl Margin="10,5" Content="{Binding}" />
</Border>
</DataTemplate>
</TabControl.ContentTemplate>
<TabItem
BorderBrush="{DynamicResource PrimaryDarker}"
Foreground="{DynamicResource PrimaryText}"
2023-12-20 12:51:58 +00:00
Header="{ll:Str 图形}" />
<TabItem BorderBrush="{DynamicResource PrimaryDarker}" Header="{ll:Str 系统}" />
<TabItem BorderBrush="{DynamicResource PrimaryDarker}" Header="{ll:Str 互动}" />
<TabItem BorderBrush="{DynamicResource PrimaryDarker}" Header="{ll:Str 自定}" />
<TabItem BorderBrush="{DynamicResource PrimaryDarker}" Header="{ll:Str 诊断}" />
<TabItem BorderBrush="{DynamicResource PrimaryDarker}" Header="{ll:Str MOD管理}" />
2023-12-18 14:53:56 +00:00
</TabControl>
<Label
x:Name="GameVerison"
Grid.ColumnSpan="2"
HorizontalAlignment="Right"
VerticalAlignment="Bottom"
Background="{x:Null}"
Content="版本v1.0 (655366666)"
FontSize="10"
Foreground="Green" />
</Grid>
</Grid>
</Grid>
</pu:WindowX>