Back to Devexpress

PopupBuilder.Content(RazorBlock) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-popupbuilder-dot-content-x28-devextreme-dot-aspnet-dot-mvc-dot-razorblock-x29.md

latest1.3 KB
Original Source

PopupBuilder.Content(RazorBlock) Method

Specifies content for a Popup control.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public PopupBuilder Content(
    RazorBlock content
)

Parameters

NameTypeDescription
contentRazorBlock

The Razor @<text> block that specifies content.

|

Returns

TypeDescription
PopupBuilder

A reference to this instance after the method is called.

|

Remarks

Refer to Use Markup to Specify Content for more information.

cshtml
@(Html.DevExtreme().Popup()
    .Content(@<text>
        <p>Popup content</p>
    </text>)
)

See Also

PopupBuilder Class

PopupBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace