Skip to main content
All docs
V25.1

DxScheduler.ChildContent Property

Specifies the view collection.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v25.1.dll

NuGet Package: DevExpress.Blazor

Declaration

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

Property Value

Type Description
RenderFragment

The view collection.

Remarks

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

<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:

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