Skip to content

Commit

Permalink
设置支持快捷导航 (未完成)
Browse files Browse the repository at this point in the history
  • Loading branch information
LorisYounger committed Oct 11, 2023
1 parent c643183 commit 1a44fdf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 9 additions & 5 deletions VPet-Simulator.Windows/WinDesign/winGameSetting.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,30 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:pu="clr-namespace:Panuon.WPF.UI;assembly=Panuon.WPF.UI"
xmlns:system="clr-namespace:System;assembly=mscorlib"
Width="{ll:Dbe SettingWidth, DefValue=500}" Height="550" Closing="WindowX_Closing" FontSize="16"
Width="{ll:Dbe SettingWidth, DefValue=650}" Height="550" Closing="WindowX_Closing" FontSize="16"
Style="{DynamicResource BaseWindowXStyle}" Topmost="True" WindowStartupLocation="CenterScreen" mc:Ignorable="d">
<!--<pu:WindowX.Resources>
<DataTemplate x:Key="DIYDataTemplate">
</DataTemplate>
</pu:WindowX.Resources>-->
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="150" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<TabControl x:Name="MainTab" Margin="5" 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" Foreground="{DynamicResource PrimaryText}"
SelectionChanged="MainTab_SelectionChanged">
SelectionChanged="MainTab_SelectionChanged" Grid.Column="1">
<TabControl.ContentTemplate>
<DataTemplate>
<Border Margin="5,10,5,20" Background="{DynamicResource DARKPrimaryText}" CornerRadius="15">
<ContentControl Margin="15,10" Content="{Binding}" />
<Border Margin="0,5,0,10" Background="{DynamicResource DARKPrimaryText}" CornerRadius="15">
<ContentControl Margin="10,5" Content="{Binding}" />
</Border>
</DataTemplate>
</TabControl.ContentTemplate>
Expand Down Expand Up @@ -957,6 +961,6 @@
</TabItem>
</TabControl>
<Label x:Name="GameVerison" HorizontalAlignment="Left" VerticalAlignment="Bottom" Background="{x:Null}"
Content="版本v1.0 (655366666)" FontSize="10" Foreground="Green" />
Content="版本v1.0 (655366666)" FontSize="10" Foreground="Green" Grid.ColumnSpan="2" />
</Grid>
</pu:WindowX>
2 changes: 2 additions & 0 deletions VPet-Simulator.Windows/WinDesign/winGameSetting.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1327,5 +1327,7 @@ private void SwitchHideFromTaskControl_OnChecked(object sender, RoutedEventArgs
mw.Set.HideFromTaskControl = SwitchHideFromTaskControl.IsChecked == true;
ButtonRestartGraph.Visibility = Visibility.Visible;
}


}
}

0 comments on commit 1a44fdf

Please sign in to comment.