CsWebUiPlatformServices class

Namespace Runic.Application.Views.CsWebUi in Runic.Application.Views.CsWebUi 0.23.0-preview.1

public static class CsWebUiPlatformServices

Reaches the CS-WebUI window of a Runic Window opened by RunicCsWebUiHost.

Methods

GetWebUiWindow

public static WebUiWindow? GetWebUiWindow(IRunicWindow window)

Gets the CS-WebUI window that presents a Runic Window, without naming its ViewModel type.

Parameters

window

The Window, on any host. It must have opened; it may have closed since.

Returns

The CsWebUiBridgeWindow.Window of IRunicWindow.Host, or null for a Window on another host, such as Runic Desktop.

Exceptions

InvalidOperationException

The Window has not opened.

Remarks

The counterpart of DesktopPlatformServices.GetDesktopWindow on Runic Desktop, for code that holds an IRunicWindow, such as a navigation service, and needs WebUI's own window API. The window belongs to the host: do not close or dispose it; close the Runic Window instead.