Back to Devexpress

DxScheduler.ChildContent Property

blazor-devexpress-dot-blazor-dot-dxscheduler-de4f0334.md

latest2.9 KB
Original Source

DxScheduler.ChildContent Property

Specifies the view collection.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public RenderFragment ChildContent { get; set; }

Property Value

TypeDescription
RenderFragment

The view collection.

|

Remarks

Blazor automatically generates the ChildContent property when you specify views between <DxScheduler><DxScheduler> tags:

razor
<DxScheduler @bind-StartDate="@StartDate"
             DataStorage="@DataStorage">
    <DxSchedulerDayView />
    <DxSchedulerWeekView />
    <DxSchedulerWorkWeekView />
    <DxSchedulerMonthView />
</DxScheduler

Note

Since ChildContent contains nested markup of its parent class, the template content must conform to HTML semantics.

This property is equivalent to the Views property. However, we recommend that you explicitly specify Views in the markup. This notation allows you to specify the following templates and collections at the component level:

razor
<DxScheduler @bind-StartDate="@StartDate"
             DataStorage="@DataStorage">
    <Views>
        <DxSchedulerDayView />
        <DxSchedulerWeekView />
        <DxSchedulerWorkWeekView />
        <DxSchedulerMonthView />
    </Views>
    <AppointmentTooltipTemplate>
        @* Template content *@
    </AppointmentTooltipTemplate>
</DxScheduler

See Also

DxScheduler Class

DxScheduler Members

DevExpress.Blazor Namespace