WidgetContext.Size Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 Microsoft.Windows.Widgets.Providers.IWidgetProvider.OnWidgetContextChanged callback.