Skip to main content

AppointmentControl.ImageBoxTemplate Property

Gets or sets a data template visualized in the appointment’s bottom right corner where recurrence and reminder icons are located. This is a dependency property.

Namespace: DevExpress.Xpf.Scheduling.Visual

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

NuGet Package: DevExpress.Wpf.Scheduling

Declaration

public DataTemplate ImageBoxTemplate { get; set; }

Property Value

Type Description
DataTemplate

A DataTemplate object that is the data template displayed in the appointment’s image panel.

Remarks

Use the ImageBoxTemplate property to display an image or other visual element in the AppointmentImagesPanel after the recurrence and reminder icons.

Example

This code snippet sets the AppointmentControl properties to display the appointment’s start and end time, location and description. It also demonstrates how to display an image in the appointment’s bottom right corner.

View Example

<DataTemplate x:Key="myImageBox">
    <Image Margin="2" Height="16" Width="16"
           Source="{Binding Appointment.CustomFields[FirstVisit], Converter={local:ConditionToImageSourceConverter}}" />
</DataTemplate>
<Style x:Key="appointmentStyle" TargetType="dxschv:AppointmentControl">
    <Setter Property="ShowInterval" Value="True"/>
    <Setter Property="ShowDescription" Value="True"/>
    <Setter Property="ImageBoxTemplate" Value="{StaticResource myImageBox}"/>
</Style>
See Also