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 IWidgetProvider.Activate(WidgetContext) and IWidgetProvider.Deactivate(String) methods. Widgets are in an active state immediate after IWidgetProvider.CreateWidget(WidgetContext) is called.
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