Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

VisualAllDayAreaCell.IsEdgeItem Property

Gets or sets whether the current cell is a stub cell placed in the all-day area above the scrollbar.

Namespace: DevExpress.Xpf.Scheduler.Drawing

Assembly: DevExpress.Xpf.Scheduler.v24.2.dll

NuGet Package: DevExpress.Wpf.Scheduler

#Declaration

public bool IsEdgeItem { get; set; }

#Property Value

Type Description
Boolean

true if the cell is a last stub cell; otherwise, false.

#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.

Use the IsEdgeItem property when creating a cell template for the all-day area cells. If you have to display an item (e.g. a checkbox) in a cell, you probably have to hide it in the stub cell above the scrollbar.

The following XAML snippet illustrates this approach:

<Style x:Key="{dxscht:DayViewThemeKey ResourceKey=AllDayAreaCellStyle}" TargetType="{x:Type dxschd:VisualAllDayAreaCell}" />
<Setter Property="Template">
<Setter.Value>
    <ControlTemplate TargetType="{x:Type dxschd:VisualAllDayAreaCell}">
        <Grid dxsch:SchedulerControl.HitTestType="AllDayArea" IsHitTestVisible="True">
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <dxe:CheckEdit IsReadOnly="True" 
                HorizontalAlignment="Center" 
                Visibility="{TemplateBinding IsEdgeItem, Converter={dx:BooleanToVisibilityConverter Invert=True}}" />
        </Grid>
    </ControlTemplate>
</Setter.Value>
</Setter>
See Also