Skip to main content

AppointmentControl.EditTemplate Property

Gets or sets the inplace editor data template for the AppointmentControl descendants. 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 EditTemplate { get; set; }

Property Value

Type Description
DataTemplate

A DataTemplate object that is the data template displayed as an inplace editor.

Remarks

Use this property to specify a data template to visualize an inplace appointment editor in AppointmentControl descendants - DayAppointmentControl, TimelineAppointmentControl, MonthAppointmentControl.

Example

View Example

<Window.Resources>
    <DataTemplate x:Key="myEditor">
        <dxsch:AppointmentInplaceEditorControl Content="{Binding}">
            <dxsch:AppointmentInplaceEditorControl.ContentTemplate>
                <DataTemplate>
                    <dxe:TextEdit
                        HorizontalContentAlignment="Center"
                        Background="AliceBlue"
                        Name="PART_Editor"
                        SelectAllOnGotFocus="False"
                        Text="{Binding Subject, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                        TextWrapping="Wrap" />
                </DataTemplate>
            </dxsch:AppointmentInplaceEditorControl.ContentTemplate>
        </dxsch:AppointmentInplaceEditorControl>
    </DataTemplate>
    <Style TargetType="dxschv:DayAppointmentControl">
        <Setter Property="EditTemplate" Value="{StaticResource myEditor}" />
    </Style>
</Window.Resources>
See Also