WidgetSize Enum
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.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for