WidgetSize Enum
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.
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
Name | Value | Description |
---|---|---|
Small | 0 | Small. |
Medium | 1 | Medium. |
Large | 2 | Large. |
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.
Proizvod | Verzije |
---|---|
Windows App SDK | 1.2, 1.3, 1.4, 1.5, 1.6 |