DxScheduler.ChildContent Property
In This Article
Specifies the view collection.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
#Declaration
C#
[Parameter]
public RenderFragment ChildContent { get; set; }
#Property Value
Type | Description |
---|---|
Render |
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
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 on the component level:
- AppointmentCompactFormHeaderTemplate
- AppointmentCompactFormLayout
- AppointmentFormHeaderTemplate
- AppointmentFormLayout
- AppointmentTooltipHeaderTemplate
- AppointmentTooltipTemplate
- DateNavigatorTextTemplate
- RecurrenceSettingsFormHeaderTemplate
Razor
<DxScheduler @bind-StartDate="@StartDate"
DataStorage="@DataStorage">
<Views>
<DxSchedulerDayView />
<DxSchedulerWeekView />
<DxSchedulerWorkWeekView />
<DxSchedulerMonthView />
</Views>
<AppointmentTooltipTemplate>
@* Template content *@
</AppointmentTooltipTemplate>
</DxScheduler
See Also