AppointmentImagesPanel Class

Container for images displayed in the visual appointment.

Namespace: DevExpress.Xpf.Scheduling.Visual

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

Declaration

public class AppointmentImagesPanel :
    AppointmentImagesPresenter
Public Class AppointmentImagesPanel
    Inherits AppointmentImagesPresenter

Remarks

The AppointmentImagesPanel is a default content of the appointment content panel's AppointmentContentPanel.Images section. It displays the regular occurrence icon WPFScheduler_Icon_Recurrence, changed occurrence icon WPFScheduler_Icon_ChangedRecurrence and reminder icon WPFScheduler_Icon_Reminder, when necessary and in the proper order and location.

TIP

You can set the AppointmentControlBase.ShowRecurrenceImage and AppointmentControlBase.ShowReminderImage to false to hide these icons.

Examples

This code describes a custom template used to display appointment information in the AppointmentControl. The template is applied explicitly in the Day View by assigning its x:Key to the DayViewBase.AppointmentContentTemplate property.

<DataTemplate x:Key="appointmentContentTemplate">
    <dxschv:AppointmentContentPanel>
        <dxschv:AppointmentContentPanel.Background>
            <LinearGradientBrush StartPoint="0,0" EndPoint="0, 1">
                <GradientStop Color="White" Offset="0" />
                <GradientStop Color="Transparent" Offset="0.5" />
            </LinearGradientBrush>
        </dxschv:AppointmentContentPanel.Background>
        <dxschv:AppointmentContentPanel.IntervalSubject>
            <dxschv:AppointmentIntervalSubjectPresenter/>
        </dxschv:AppointmentContentPanel.IntervalSubject>
        <dxschv:AppointmentContentPanel.Location>
            <dxschv:AppointmentLocationPresenter FontWeight="Normal" Foreground="Blue" />
        </dxschv:AppointmentContentPanel.Location>
        <dxschv:AppointmentContentPanel.Description>
            <StackPanel>
                <dxschv:FastTextBlock Text="{Binding Appointment.CustomFields[Note]}" FontWeight="Normal" Foreground="Red"/>
                <dxschv:AppointmentDescriptionPresenter FontWeight="Normal" Margin="0,1,0,0" WordWrap="True"/>
            </StackPanel>
        </dxschv:AppointmentContentPanel.Description>
        <dxschv:AppointmentContentPanel.Images>
            <dxschv:AppointmentImagesPanel/>
        </dxschv:AppointmentContentPanel.Images>
    </dxschv:AppointmentContentPanel>
</DataTemplate>

Inheritance

Object
DispatcherObject
DependencyObject
Visual
UIElement
FrameworkElement
Panel
DevExpress.Xpf.Scheduling.Panels.RotatablePanelBase
DevExpress.Xpf.Scheduling.Visual.AppointmentImagesPresenter
AppointmentImagesPanel
See Also