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