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. |
InstanceConfiguration |
Per-instance environment/controller defaults, including proxy settings on supported runtimes. |
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");
NativeWebViewPlatformImplementationStatusMatrix.Get(...) when you need to distinguish implemented dialog paths from unsupported mobile/browser targets.NativeWebView hosts, so per-instance storage and proxy options flow through InstanceConfiguration.