new startup process UI for Windows
This commit is contained in:
24
windows/WinUI/Switcher.cs
Normal file
24
windows/WinUI/Switcher.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Controls;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WinUI
|
||||
{
|
||||
public static class Switcher
|
||||
{
|
||||
public static PageSwitcher pageSwitcher;
|
||||
|
||||
public static void Switch(UserControl newPage)
|
||||
{
|
||||
pageSwitcher.Navigate(newPage);
|
||||
}
|
||||
|
||||
public static void Switch(UserControl newPage, object state)
|
||||
{
|
||||
pageSwitcher.Navigate(newPage, state);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user