VisualDayViewGroupByDate Class

Provides information on visual elements displayed within the SchedulerControl, when Day View or Work-Week View is the currently active view and appointments are grouped by dates.

Namespace: DevExpress.Xpf.Scheduler.Drawing

Assembly: DevExpress.Xpf.Scheduler.v20.1.dll

Declaration

public class VisualDayViewGroupByDate :
    VisualIntervalsBasedViewInfo,
    IVisualDayView,
    IAppointmentsInfoChangedListener<DayViewAppointmentInfo>
Public Class VisualDayViewGroupByDate
    Inherits VisualIntervalsBasedViewInfo
    Implements IVisualDayView,
               IAppointmentsInfoChangedListener(Of DayViewAppointmentInfo)

Remarks

IMPORTANT

You are viewing documentation for the legacy WPF Scheduler control. If you're starting a new project, we strongly recommend that you use a new control declared in the DevExpress.Xpf.Scheduling namespace. If you decide to upgrade an existing project in order to switch to the updated scheduler control, see the Migration Guidelines document.

The VisualDayViewGroupByDate class instance can be accessed via the SchedulerViewBase.VisualViewInfo property when the DayView or WorkWeekView is currently used by the SchedulerControl to show its data (the SchedulerControl.ActiveViewType property is set to SchedulerViewType.Day or SchedulerViewType.WorkWeek) and appointments are grouped by dates (the SchedulerControl.GroupType property is set to SchedulerGroupType.Date).

You can access the VisualDayViewGroupByDate class instance in the SchedulerControl.CustomizeVisualViewInfo event handler using the CustomizeVisualViewInfoEventArgs.VisualViewInfo property.

The VisualDayViewGroupByDate class instance can be created from a custom template. You can modify the template to adjust properties and settings as your need dictates.

Examples

The following code snippet illustrates how to change the width of the container that holds the Day view.

<Style x:Key="CustomDayViewGroupByDateStyle" TargetType="{x:Type dxschd:VisualDayViewGroupByDate}">
    <Setter Property="Template">
        <Setter.Value>
            <ControlTemplate TargetType="{x:Type dxschd:VisualDayViewGroupByDate}">
                <dxschd:SharedGroupSizeContainer x:Name="DayViewContainer">
                    <dxschd:DayViewAppointmentInfoContainer x:Name="VisibleAptInfoContainer" Width="300">
See Also