mirror of
https://github.com/PacktPublishing/Learn-WinUI-3-Second-Edition.git
synced 2026-06-20 12:23:09 +00:00
35 lines
506 B
C#
35 lines
506 B
C#
using Microsoft.UI.Xaml.Controls;
|
|
using Microsoft.Web.WebView2.Core;
|
|
|
|
namespace TemplateStudioSampleApp.Contracts.Services;
|
|
|
|
public interface IWebViewService
|
|
{
|
|
Uri? Source
|
|
{
|
|
get;
|
|
}
|
|
|
|
bool CanGoBack
|
|
{
|
|
get;
|
|
}
|
|
|
|
bool CanGoForward
|
|
{
|
|
get;
|
|
}
|
|
|
|
event EventHandler<CoreWebView2WebErrorStatus>? NavigationCompleted;
|
|
|
|
void Initialize(WebView2 webView);
|
|
|
|
void GoBack();
|
|
|
|
void GoForward();
|
|
|
|
void Reload();
|
|
|
|
void UnregisterEvents();
|
|
}
|