Class SlotGenerationBehavior
A class that retrieves filtered slots.
Inheritance
Namespace: Telerik.Windows.Controls.ScheduleView
Assembly: Telerik.Windows.Controls.ScheduleView.dll
Syntax
public class SlotGenerationBehavior : Freezable
Constructors
SlotGenerationBehavior()
Declaration
public SlotGenerationBehavior()
Methods
CreateInstanceCore()
Declaration
protected override Freezable CreateInstanceCore()
Returns
System.Windows.Freezable
|
GetSlots(SlotGenerationData)
Gets all visible slots.
Declaration
public IEnumerable<Slot> GetSlots(SlotGenerationData data)
Parameters
SlotGenerationData
data
The slot data. |
Returns
System.Collections.Generic.IEnumerable<Slot>
The slots. |
GetSlots(SlotGenerationData, Nullable<DateTime>, Func<IDateSpan, Slot>)
Declaration
protected virtual IEnumerable<Slot> GetSlots(SlotGenerationData data, Nullable<DateTime> start, Func<IDateSpan, Slot> createSlot)
Parameters
SlotGenerationData
data
|
System.Nullable<System.DateTime>
start
|
System.Func<IDateSpan, Slot>
createSlot
|
Returns
System.Collections.Generic.IEnumerable<Slot>
|
GetSlots(SlotGenerationData, TimeZoneInfo)
Gets all slots in the current time zone.
Declaration
public IEnumerable<Slot> GetSlots(SlotGenerationData data, TimeZoneInfo timeZone)
Parameters
SlotGenerationData
data
The data source. |
System.TimeZoneInfo
timeZone
The time zone. |
Returns
System.Collections.Generic.IEnumerable<Slot>
The filtered slots. |
GetSlotsAtTime(SlotGenerationData, Slot)
Gets all slots by time.
Declaration
public IEnumerable<Slot> GetSlotsAtTime(SlotGenerationData data, Slot slot)
Parameters
SlotGenerationData
data
The data source. |
Slot
slot
The slot. |
Returns
System.Collections.Generic.IEnumerable<Slot>
The filtered slots. |
GetSlotsInGroup(SlotGenerationData, IGroupIdentifier)
Gets all slots in the current group.
Declaration
public IEnumerable<Slot> GetSlotsInGroup(SlotGenerationData slotData, IGroupIdentifier group)
Parameters
SlotGenerationData
slotData
The data source. |
IGroupIdentifier
group
The group. |
Returns
System.Collections.Generic.IEnumerable<Slot>
The filtered slots. |
GetSlotsInGroupsIntersectingWith(SlotGenerationData, Slot)
Gets all slots in current group which intersects with current slot.
Declaration
public IEnumerable<Slot> GetSlotsInGroupsIntersectingWith(SlotGenerationData data, Slot target)
Parameters
SlotGenerationData
data
The data source. |
Slot
target
The slot. |
Returns
System.Collections.Generic.IEnumerable<Slot>
The filtered slots. |