Extension methods to enable Wayland backend in Avalonia apps.
// Source: https://github.com/AvaloniaUI/Avalonia | License: MIT
// Provided via justclaw.it.com; keep this notice with the code.
using System;
using Avalonia.Logging;
using Avalonia.Wayland;
// UseXxx are deliberately in global Avalonia namespace
// ReSharper disable once CheckNamespace
namespace Avalonia;
/// <summary>
/// <see cref="AppBuilder"/> extensions for enabling the Wayland windowing backend.
/// </summary>
public static class AvaloniaWaylandPlatformExtensions
{
/// <summary>
/// Configures the application to use the Wayland windowing backend. Options can be supplied by
/// registering a <see cref="WaylandPlatformOptions"/> instance with <see cref="AvaloniaLocator"/>.
/// </summary>
/// <param name="builder">The application builder.</param>
/// <returns
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key