Page navigation, CogwheelConsole
This commit is contained in:
10
SessionZero/Pages/HomePage.axaml
Normal file
10
SessionZero/Pages/HomePage.axaml
Normal 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>
|
||||
16
SessionZero/Pages/HomePage.axaml.cs
Normal file
16
SessionZero/Pages/HomePage.axaml.cs
Normal 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();
|
||||
}
|
||||
|
||||
}
|
||||
6
SessionZero/Pages/IPageBase.cs
Normal file
6
SessionZero/Pages/IPageBase.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace SessionZero.Pages;
|
||||
|
||||
public interface IPageBase
|
||||
{
|
||||
public string PageName { get; set; }
|
||||
}
|
||||
10
SessionZero/Pages/SessionsPage.axaml
Normal file
10
SessionZero/Pages/SessionsPage.axaml
Normal 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>
|
||||
15
SessionZero/Pages/SessionsPage.axaml.cs
Normal file
15
SessionZero/Pages/SessionsPage.axaml.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user