VisualDayViewGroupByResource 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 resources.

Namespace: DevExpress.Xpf.Scheduler.Drawing

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

Declaration

public class VisualDayViewGroupByResource :
    VisualDayViewResourcesBasedViewInfo
Public Class VisualDayViewGroupByResource
    Inherits VisualDayViewResourcesBasedViewInfo

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 VisualDayViewGroupByResource 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 resources (the SchedulerControl.GroupType property is set to SchedulerGroupType.Resource).

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

The VisualDayViewGroupByResource 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="CustomDayViewGroupByResourceStyle" TargetType="{x:Type dxschd:VisualDayViewGroupByResource}">
    <Setter Property="Template">
        <Setter.Value>
            <ControlTemplate TargetType="{x:Type dxschd:VisualDayViewGroupByResource}">
                <dxschd:SharedGroupSizeContainer x:Name="DayViewContainer">
                    <!-- Set the width of the view to 400 px-->
                    <dxschd:DayViewAppointmentInfoContainer x:Name="VisibleAptInfoContainer" Width="400">
See Also