NativeWebDialog is the desktop dialog or window facade for browser workflows that do not belong inside the main Avalonia visual tree.
| Property | Purpose |
|---|---|
IsVisible, CurrentUrl |
Dialog visibility and current URL. |
CanGoBack, CanGoForward |
Navigation history state. |
IsDevToolsEnabled, IsContextMenuEnabled, IsStatusBarEnabled, IsZoomControlEnabled |
Desktop browser UI toggles where supported. |
ZoomFactor, HeaderString, UserAgentString |
Runtime dialog browser configuration. |
LifecycleState |
Backend controller state. |
Show, Close, Move, ResizeNavigate, Reload, Stop, GoBack, GoForwardExecuteScriptAsyncPostWebMessageAsJsonAsync, PostWebMessageAsStringAsyncOpenDevToolsWindowPrintAsync, ShowPrintUiAsyncSetZoomFactor, SetUserAgent, SetHeaderTryGetPlatformHandle, TryGetDialogHandle, TryGetHostWindowHandleShown, ClosedNavigationStarted, NavigationCompletedWebMessageReceived, NewWindowRequested, WebResourceRequested, ContextMenuRequestedusing NativeWebView.Dialog;
using NativeWebView.Core;
NativeWebViewRuntime.EnsureCurrentPlatformRegistered();
using var dialog = new NativeWebDialog();
dialog.Show(new NativeWebDialogShowOptions
{
Title = "NativeWebView Sample Dialog",
Width = 900,
Height = 640
});
dialog.Navigate("https://example.com/dialog");