Skip to main content
A newer version of this page is available. .

AppointmentContentPanel Class

A panel that contains elements displaying appointment data.

Namespace: DevExpress.Xpf.Scheduling.Visual

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Scheduling, DevExpress.Wpf.Scheduling

Declaration

public class AppointmentContentPanel :
    Panel

Remarks

An appointment content panel, which is originally used to visualize the appointment, is composed of sections with different layouts. A section contains an element which visualizes appointment data, as shown in the table:

Section Element
AppointmentContentPanel.IntervalSubject AppointmentIntervalSubjectPresenter
AppointmentContentPanel.Location AppointmentLocationPresenter
AppointmentContentPanel.Description AppointmentDescriptionPresenter
AppointmentContentPanel.Images AppointmentImagesPanel

The following picture demonstrates the element locations and properties which determine their visibility.

AppointmentControl

Example

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.

View Example

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

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AppointmentContentPanel class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also