IDesktopLayoutDirectionWindowHost interface

Namespace Runic.Desktop in Runic.Desktop 0.23.0

public interface IDesktopLayoutDirectionWindowHost : IDesktopWindowHost, IAsyncDisposable

Inherits or implements 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

layoutDirection

The direction to show. DesktopLayoutDirection.Default returns to the platform's.

cancellationToken

Cancels the queued native work.

Returns

A task that completes when the window shows the direction.