add configuration page
This commit is contained in:
1 parent
ad1adbff15
commit
7cb32d3eb9
8 files changed
+138
-4
No files matched your search
@@ -0,0 +1,29 @@
|
||||
<Page
|
||||
x:Class="GZStudio.Views.ConfigurationPage"
|
||||
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">
|
||||
|
||||
<Grid x:Name="ContentArea">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<!-- Row for the Button -->
|
||||
<RowDefinition Height="Auto"/>
|
||||
<!-- Row for the ListView -->
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="Python 配置" Grid.Row="0" Margin="0,0,0,8"/>
|
||||
<ComboBox IsEditable="True" Width="200" Grid.Row="1" Margin="0,0,0,8"/>
|
||||
|
||||
<TextBlock Text="计算机配置" Grid.Row="2" Margin="0,0,0,4"/>
|
||||
|
||||
<ComboBox IsEditable="True" Width="200" Grid.Row="3" Margin="0,0,0,8"/>
|
||||
|
||||
|
||||
|
||||
</Grid>
|
||||
</Page>
|
||||
@@ -0,0 +1,19 @@
|
||||
using GZStudio.ViewModels;
|
||||
|
||||
using Microsoft.UI.Xaml.Controls;
|
||||
|
||||
namespace GZStudio.Views;
|
||||
|
||||
public sealed partial class ConfigurationPage : Page
|
||||
{
|
||||
public ConfigurationViewModel ViewModel
|
||||
{
|
||||
get;
|
||||
}
|
||||
|
||||
public ConfigurationPage()
|
||||
{
|
||||
ViewModel = App.GetService<ConfigurationViewModel>();
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
@@ -48,6 +48,11 @@
|
||||
<FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}" Glyph=""/>
|
||||
</NavigationViewItem.Icon>
|
||||
</NavigationViewItem>
|
||||
<NavigationViewItem x:Uid="Shell_Configuration" helpers:NavigationHelper.NavigateTo="GZStudio.ViewModels.ConfigurationViewModel">
|
||||
<NavigationViewItem.Icon>
|
||||
<FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}" Glyph=""/>
|
||||
</NavigationViewItem.Icon>
|
||||
</NavigationViewItem>
|
||||
</NavigationView.MenuItems>
|
||||
<NavigationView.HeaderTemplate>
|
||||
<DataTemplate>
|
||||
|
||||
Reference in new issue
Block a user