WidgetSize Enum

Definition

Specifies the display size of a widget within the widget host.

C#
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.Widgets.WidgetContract), 65536)]
public enum WidgetSize
Inheritance
WidgetSize
Attributes

Fields

Name Value Description
Small 0

Small.

Medium 1

Medium.

Large 2

Large.

Remarks

Query the currently displayed size of widget by calling Microsoft.Windows.Widgets.Providers.WidgetManager.GetWidgetInfo or Microsoft.Windows.Widgets.Providers.WidgetManager.GetWidgetInfos. The Microsoft.Windows.Widgets.Providers.IWidgetProvider.OnWidgetContextChanged callback is called when the current display size of the widget changes.

Applies to

Proizvod Verzije
Windows App SDK 1.2, 1.3, 1.4, 1.5, 1.6