From 77feabd2f5d30fb77e31f20bdcb0cc4a251cc2cd Mon Sep 17 00:00:00 2001 From: Max Katz Date: Wed, 12 Apr 2023 18:35:57 -0700 Subject: [PATCH] Update WindowingPlatform.cs --- src/Browser/Avalonia.Browser/WindowingPlatform.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Browser/Avalonia.Browser/WindowingPlatform.cs b/src/Browser/Avalonia.Browser/WindowingPlatform.cs index 88e378bd79..be6e28f5cb 100644 --- a/src/Browser/Avalonia.Browser/WindowingPlatform.cs +++ b/src/Browser/Avalonia.Browser/WindowingPlatform.cs @@ -14,11 +14,11 @@ namespace Avalonia.Browser private bool _signaled; private static KeyboardDevice? s_keyboard; - public IWindowImpl CreateWindow() => throw new NotSupportedException(); + public IWindowImpl CreateWindow() => throw new NotSupportedException("Browser doesn't support windowing platform. In order to display a single-view content, set ISingleViewApplicationLifetime.MainView."); IWindowImpl IWindowingPlatform.CreateEmbeddableWindow() { - throw new NotImplementedException(); + throw new NotImplementedException("Browser doesn't support embeddable windowing platform."); } public ITrayIconImpl? CreateTrayIcon()