Page navigation, CogwheelConsole

This commit is contained in:
2025-11-29 00:35:35 -06:00
parent e1502b21ad
commit c8a7ec0f09
15 changed files with 328 additions and 7 deletions

View File

@@ -0,0 +1,10 @@
<UserControl xmlns="https://github.com/avaloniaui"
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" d:DesignWidth="800" d:DesignHeight="450"
x:Class="SessionZero.Pages.HomePage">
<StackPanel>
<Label FontSize="20">Home</Label>
</StackPanel>
</UserControl>

View File

@@ -0,0 +1,16 @@
using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
namespace SessionZero.Pages;
public partial class HomePage : UserControl, IPageBase
{
public string PageName { get; set; } = "Home";
public HomePage()
{
InitializeComponent();
}
}

View File

@@ -0,0 +1,6 @@
namespace SessionZero.Pages;
public interface IPageBase
{
public string PageName { get; set; }
}

View File

@@ -0,0 +1,10 @@
<UserControl xmlns="https://github.com/avaloniaui"
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" d:DesignWidth="800" d:DesignHeight="450"
x:Class="SessionZero.Pages.SessionsPage">
<StackPanel>
<Label FontSize="20">Sessions</Label>
</StackPanel>
</UserControl>

View File

@@ -0,0 +1,15 @@
using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
namespace SessionZero.Pages;
public partial class SessionsPage : UserControl, IPageBase
{
public string PageName { get; set; } = "Sessions";
public SessionsPage()
{
InitializeComponent();
}
}