ChineseChess/ChineseChess.GUI/Contracts/Services/INavigationService.cs
2021-05-30 22:57:53 +08:00

23 lines
467 B
C#

using System;
using System.Windows.Controls;
namespace ChineseChess.GUI.Contracts.Services
{
public interface INavigationService
{
event EventHandler<string> Navigated;
bool CanGoBack { get; }
void Initialize(Frame shellFrame);
bool NavigateTo(string pageKey, object parameter = null, bool clearNavigation = false);
void GoBack();
void UnsubscribeNavigation();
void CleanNavigation();
}
}