This commit is contained in:
TheXamlGuy
2024-02-15 20:59:36 +00:00
parent 6f5f6f8cfe
commit 41b9d5e0fc
5 changed files with 39 additions and 20 deletions
+24 -7
View File
@@ -6,11 +6,28 @@
<Window.SystemBackdrop>
<MicaBackdrop />
</Window.SystemBackdrop>
<NavigationView
x:Name="Settings"
IsBackButtonVisible="Collapsed"
IsPaneToggleButtonVisible="False"
IsSettingsVisible="False"
MenuItemTemplateSelector="{Binding ViewModelTemplateSelector}"
MenuItemsSource="{x:Bind ViewModel, Mode=OneWay}" />
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="43" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Border Grid.Row="0">
<TextBlock
Margin="15,0,0,0"
VerticalAlignment="Center"
Text="Settings" />
</Border>
<NavigationView
Grid.Row="1"
IsBackButtonVisible="Collapsed"
IsPaneToggleButtonVisible="False"
IsSettingsVisible="False"
MenuItemTemplateSelector="{Binding ViewModelTemplateSelector}"
MenuItemsSource="{x:Bind ViewModel, Mode=OneWay}">
<ContentControl
x:Name="Settings"
Margin="12"
HorizontalContentAlignment="Stretch" />
</NavigationView>
</Grid>
</Window>
+1
View File
@@ -1,5 +1,6 @@
using Hyperbar.UI.Windows;
using Microsoft.UI;
using Microsoft.UI.Windowing;
using Microsoft.UI.Xaml;
namespace Hyperbar.Windows;