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

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

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