New to Telerik UI for WPFStart a free 30-day trial

Represents basic implementation of IReadOnlyBehavior.

Definition

Namespace:Telerik.Windows.Controls.ScheduleView

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Syntax:

C#
public class ReadOnlyBehavior : IReadOnlyBehavior

Inheritance: objectReadOnlyBehavior

Implements: IReadOnlyBehavior

Constructors

Initializes a new instance of the ReadOnlyBehavior class.

C#
public ReadOnlyBehavior()

Methods

Determines whether this occurrence or appointment can be deleted when it resides in read-only range.

C#
public virtual bool CanDeleteAppointment(IReadOnlySettings readOnlySettings, IOccurrence occurrence)
Parameters:readOnlySettingsIReadOnlySettings

The settings for the behavior.

occurrenceIOccurrence

The occurrence or appointment object.

Returns:

bool

true if this occurrence can be deleted otherwise, false.

Implements: IReadOnlyBehavior.CanDeleteAppointment(IReadOnlySettings, IOccurrence)

Determines whether this occurrence or appointment can be dragged when it resides in read-only range.

C#
public virtual bool CanDragAppointment(IReadOnlySettings readOnlySettings, IOccurrence occurrence)
Parameters:readOnlySettingsIReadOnlySettings

The settings for the behavior.

occurrenceIOccurrence

The occurrence or appointment object.

Returns:

bool

true if this occurrence can be dragged otherwise, false.

Implements: IReadOnlyBehavior.CanDragAppointment(IReadOnlySettings, IOccurrence)

Determines whether this occurrence or appointment can be edit via edit dialog.

C#
public virtual bool CanEditAppointment(IReadOnlySettings readOnlySettings, IOccurrence occurrence)
Parameters:readOnlySettingsIReadOnlySettings

The settings for the behavior.

occurrenceIOccurrence

The occurrence or appointment object.

Returns:

bool

true if this occurrence can be edit; otherwise, false.

Implements: IReadOnlyBehavior.CanEditAppointment(IReadOnlySettings, IOccurrence)

Determines whether this the specified slot allows appointments to be added.

C#
public virtual bool CanEditSlot(IReadOnlySettings readOnlySettings, Slot slot)
Parameters:readOnlySettingsIReadOnlySettings

The settings for the behavior.

slotSlot

The slot.

Returns:

bool

true if the specified slot allows appointments to be added; otherwise, false.

Implements: IReadOnlyBehavior.CanEditSlot(IReadOnlySettings, Slot)

Determines whether this occurrence or appointment can be resized when it resides in read-only range.

C#
public virtual bool CanResizeAppointment(IReadOnlySettings readOnlySettings, IOccurrence occurrence)
Parameters:readOnlySettingsIReadOnlySettings

The settings for the behavior.

occurrenceIOccurrence

The occurrence or appointment object.

Returns:

bool

true if this occurrence can be resized otherwise, false.

Implements: IReadOnlyBehavior.CanResizeAppointment(IReadOnlySettings, IOccurrence)

Determines whether this occurrence or appointment can be saved via edit dialog.

C#
public virtual bool CanSaveAppointment(IReadOnlySettings readOnlySettings, IOccurrence occurrence)
Parameters:readOnlySettingsIReadOnlySettings

The settings for the behavior.

occurrenceIOccurrence

The occurrence or appointment object.

Returns:

bool

true if this occurrence can be saved; otherwise, false.

Implements: IReadOnlyBehavior.CanSaveAppointment(IReadOnlySettings, IOccurrence)