public interface IDesktopLayoutDirectionWindowHost : IDesktopWindowHost, IAsyncDisposable An optional native host that changes the direction of its window's native parts while it is open.
Remarks
Runic Desktop finds it by type and calls IDesktopLayoutDirectionWindowHost.SetLayoutDirectionAsync after DesktopWindow.SetLayoutDirectionAsync. Report DesktopWindowCapabilities.LayoutDirection in IDesktopWindowHost.Capabilities. The page keeps its own dir, as for DesktopWindowHostOptions.LayoutDirection.
Methods
SetLayoutDirectionAsync
ValueTask SetLayoutDirectionAsync(DesktopLayoutDirection layoutDirection, CancellationToken cancellationToken = default) Changes the direction of the window, its menu bar and the other native parts it draws.
Parameters
layoutDirectionThe direction to show.
DesktopLayoutDirection.Defaultreturns to the platform's.cancellationTokenCancels the queued native work.
Returns
A task that completes when the window shows the direction.