Skip to main content
All docs
V25.1
  • DxSchedulerTimelineView.ChildContent Property

    Specifies the scale 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 scale collection.

    Remarks

    Blazor automatically generates the ChildContent property when you specify scales between <DxSchedulerTimelineView><DxSchedulerTimelineView> tags:

    <DxSchedulerTimelineView Duration="@TimeSpan.FromHours(48)">
        <ChildContent>
            <DxSchedulerTimeScale Unit="@SchedulerTimeScaleUnit.Day" UnitCount="1" />
            <DxSchedulerTimeScale Unit="@SchedulerTimeScaleUnit.Hour" UnitCount="2" />
        </ChildContent>
    </DxSchedulerTimelineView>
    

    Note

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

    This property is equivalent to the Scales property; however, we recommend that you explicitly specify Scales in the markup. This notation allows you to specify the following templates on the DxSchedulerTimelineView level:

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