IWidgetProvider.CreateWidget(WidgetContext) Method

Definition

Notifies the widget provider that a new widget has been created, for example, when a user adds a widget to a widget host.

public:
 void CreateWidget(WidgetContext ^ widgetContext);
void CreateWidget(WidgetContext const& widgetContext);
public void CreateWidget(WidgetContext widgetContext);
function createWidget(widgetContext)
Public Sub CreateWidget (widgetContext As WidgetContext)

Parameters

widgetContext
WidgetContext

A WidgetContext object that identifies the widget that is being created and provides information about the configuration of the widget.

Remarks

As soon as this method has been called you can start providing content for that widget and be prepared to handle actions raised as a result of user interaction with your widget.

Objects passed into this callback method are only guaranteed to be valid within the callback. You should not store references to these objects because their behavior outside of the context of the callback is undefined.

Applies to