WidgetContext.IsActive 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 the activation state of the widget.
public:
property bool IsActive { bool get(); };
bool IsActive();
public bool IsActive { get; }
var boolean = widgetContext.isActive;
Public ReadOnly Property IsActive As Boolean
Property Value
bool
True if the widget is active; otherwise, false.
Remarks
Widget providers are notified when a widget enters and leaves the active state through the Microsoft.Windows.Widgets.Providers.IWidgetProvider.Activate and Microsoft.Windows.Widgets.Providers.IWidgetProvider.Deactivate methods. Widgets are in an active state immediate after Microsoft.Windows.Widgets.Providers.IWidgetProvider.CreateWidget is called.