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

A class that retrieves filtered slots.

Definition

Namespace:Telerik.Windows.Controls.ScheduleView

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Syntax:

C#
public class SlotGenerationBehavior : Freezable

Inheritance: objectSlotGenerationBehavior

Constructors

C#
public SlotGenerationBehavior()

Methods

C#
protected override Freezable CreateInstanceCore()
Returns:

Freezable

C#
protected virtual IEnumerable<Slot> GetSlots(SlotGenerationData data, DateTime? start, Func<IDateSpan, Slot> createSlot)
Parameters:dataSlotGenerationDatastartDateTime?createSlotFunc<IDateSpan, Slot>Returns:

IEnumerable<Slot>

Gets all slots in the current time zone.

C#
public IEnumerable<Slot> GetSlots(SlotGenerationData data, TimeZoneInfo timeZone)
Parameters:dataSlotGenerationData

The data source.

timeZoneTimeZoneInfo

The time zone.

Returns:

IEnumerable<Slot>

The filtered slots.

Gets all visible slots.

C#
public IEnumerable<Slot> GetSlots(SlotGenerationData data)
Parameters:dataSlotGenerationData

The slot data.

Returns:

IEnumerable<Slot>

The slots.

Gets all slots by time.

C#
public IEnumerable<Slot> GetSlotsAtTime(SlotGenerationData data, Slot slot)
Parameters:dataSlotGenerationData

The data source.

slotSlot

The slot.

Returns:

IEnumerable<Slot>

The filtered slots.

Gets all slots in the current group.

C#
public IEnumerable<Slot> GetSlotsInGroup(SlotGenerationData slotData, IGroupIdentifier group)
Parameters:slotDataSlotGenerationData

The data source.

groupIGroupIdentifier

The group.

Returns:

IEnumerable<Slot>

The filtered slots.

Gets all slots in current group which intersects with current slot.

C#
public IEnumerable<Slot> GetSlotsInGroupsIntersectingWith(SlotGenerationData data, Slot target)
Parameters:dataSlotGenerationData

The data source.

targetSlot

The slot.

Returns:

IEnumerable<Slot>

The filtered slots.