Skip to main content

WaylandProperties Class

Definition​

Assembly:Avalonia.Controls
Package:Avalonia

Set of Wayland specific properties and events that allow deeper customization of the application per platform.

public class WaylandProperties

Inheritance: object -> WaylandProperties

Methods​

NameDescription
GetAppIdGets the value of the AppId attached property of the specified window.
SetAppIdSets the value of the AppId attached property of the specified window.

GetAppId Method​

Gets the value of the AppId attached property of the specified window.

public string GetAppId(Avalonia.Controls.Window obj)

Parameters​

obj Avalonia.Controls.Window

The window.

Returns​

string

The application ID for obj.

SetAppId Method​

Sets the value of the AppId attached property of the specified window.

public void SetAppId(Avalonia.Controls.Window obj, string value)

Parameters​

obj Avalonia.Controls.Window

The window.

value string

The application ID value to set.

Fields​

NameDescription
AppIdPropertyDefines the AppId attached property.

AppIdProperty Field​

Defines the AppId attached property.

public Avalonia.AttachedProperty<string> AppIdProperty

Remarks​

Specifies the application ID (app_id) sent to the Wayland compositor via xdg_toplevel for window management, application identification, and window grouping.

In Wayland environments, client windows do not directly provide their own window icons. Instead, compositors, docks, and taskbars resolve the application icon, launcher identity, and notifications by matching the AppId against the filename of the application's installed .desktop file (for example, using org.example.myapp to match org.example.myapp.desktop).