Share via


WidgetContext.IsActive Property

Definition

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

Boolean

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.

Applies to