WidgetSize Enum

Definition

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

public enum class WidgetSize
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.Widgets.WidgetContract, 65536)]
enum class WidgetSize
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.Widgets.WidgetContract), 65536)]
public enum WidgetSize
var value = Microsoft.Windows.Widgets.WidgetSize.small
Public Enum WidgetSize
Inheritance
WidgetSize
Attributes

Fields

Large 2

Large.

Medium 1

Medium.

Small 0

Small.

Remarks

Query the currently displayed size of widget by calling WidgetManager.GetWidgetInfo(String) or WidgetManager.GetWidgetInfos(). The IWidgetProvider.OnWidgetContextChanged(WidgetContextChangedArgs) callback is called when the current display size of the widget changes.

Applies to