WidgetInfo.Template 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 a string containing the current Adaptive Card JSON visual template for the widget.
public:
property Platform::String ^ Template { Platform::String ^ get(); };
winrt::hstring Template();
public string Template { get; }
var string = widgetInfo.template;
Public ReadOnly Property Template As String
Property Value
A JSON string.
Remarks
Set the visual template for a widget by calling Microsoft.Windows.Widgets.Providers.WidgetManager.UpdateWidget.