Browse Source

Update WindowingPlatform.cs

pull/11002/head
Max Katz 3 years ago
committed by GitHub
parent
commit
77feabd2f5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/Browser/Avalonia.Browser/WindowingPlatform.cs

4
src/Browser/Avalonia.Browser/WindowingPlatform.cs

@ -14,11 +14,11 @@ namespace Avalonia.Browser
private bool _signaled; private bool _signaled;
private static KeyboardDevice? s_keyboard; 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() IWindowImpl IWindowingPlatform.CreateEmbeddableWindow()
{ {
throw new NotImplementedException(); throw new NotImplementedException("Browser doesn't support embeddable windowing platform.");
} }
public ITrayIconImpl? CreateTrayIcon() public ITrayIconImpl? CreateTrayIcon()

Loading…
Cancel
Save