WidgetContext.Size Property

Definition

Gets a value indicating the currently displayed size of the widget.

public:
 property WidgetSize Size { WidgetSize get(); };
WidgetSize Size();
public WidgetSize Size { get; }
var widgetSize = widgetContext.size;
Public ReadOnly Property Size As WidgetSize

Property Value

A <Microsoft.Windows.Widgets.WidgetSize> indicating the currently displayed size of the widget.

Remarks

When the size of the widget changes, the widget host initiates a call to the IWidgetProvider.OnWidgetContextChanged(WidgetContextChangedArgs) callback.

Applies to