Exemplo n.º 1
0
 /// <summary>
 /// Display the specified widget.
 /// </summary>
 /// <returns>The widget view model</returns>
 /// <param name="widgetDisplayContext">WidgetDisplayContext.</param>
 public virtual WidgetViewModelPart Display(WidgetDisplayContext widgetDisplayContext)
 {
     return(widgetDisplayContext.ToWidgetViewModelPart());
 }
Exemplo n.º 2
0
 /// <summary>
 /// Display the specified widget. Return object will pass into widget template.
 /// </summary>
 /// <returns>The widget view model</returns>
 /// <param name="widgetDisplayContext">WidgetDisplayContext.</param>
 public virtual object Display(WidgetDisplayContext widgetDisplayContext)
 {
     return(widgetDisplayContext.Widget);
 }