AppTaskContent.MaxButtons Property

Definition

Gets the maximum number of buttons that can be added to task content.

public:
 static property unsigned int MaxButtons { unsigned int get(); };
/// [Windows.Foundation.Metadata.Experimental]
/// [get: Windows.Foundation.Metadata.Experimental]
static uint32_t MaxButtons();
[Windows.Foundation.Metadata.Experimental]
public static uint MaxButtons { [Windows.Foundation.Metadata.Experimental] get; }
var uInt32 = AppTaskContent.maxButtons;
Public Shared ReadOnly Property MaxButtons As UInteger

Property Value

UInt32

unsigned int

uint32_t

The maximum number of buttons that can be added using AddButton.

Attributes

Remarks

Important

App task support will start gradually rolling out to Windows 11 starting May, 2026. The experiences enabled by Windows.UI.Shell.Tasks APIs require that the corresponding app task feature be present in the version of Windows where the app runs. Otherwise, these APIs will not have any effect.

Applies to