ClassCustomViewDefinition
Represents a custom ViewDefinitionBase that overrides the GroupDescriptions and allows custom visible range formatting.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.ScheduleView.dll
Syntax:
public class CustomViewDefinition : MultidayViewDefinition, INotifyPropertyChanged, ISlotConvertor
Inheritance: objectViewDefinitionBaseMultidayViewDefinitionCustomViewDefinition
Implements:
Inherited Members
Constructors
CustomViewDefinition()
Initializes a new instance of the CustomViewDefinition class.
Declaration
public CustomViewDefinition()
Fields
CurrentVisibleRangeFormatProperty
Identifies the CurrentVisibleRangeFormat property.
Declaration
public static readonly DependencyProperty CurrentVisibleRangeFormatProperty
Field Value
DependencyProperty
The identifier for the CurrentVisibleRangeFormat property.
Properties
CurrentVisibleRangeFormat
Gets or sets the format to be used for displaying the current visible range.
Declaration
public string CurrentVisibleRangeFormat { get; set; }
Property Value
Remarks
The format will be passed to String.Format to format the current visible range data, that is represented by the VisibleRangeStart, VisibleRangeEnd and CurrentDate properties of the ScheduleView in this order.
DateGroupDescription
Gets the date group description. This property return null so that GroupDescriptors are used to specify the grouping.
Declaration
protected override DateGroupDescription DateGroupDescription { get; }
Property Value
Overrides
GroupDescriptions
Gets or sets a collection of GroupDescription objects that describes how the items in the collection are grouped in the view.
Declaration
public ObservableCollection<GroupDescription> GroupDescriptions { get; }
Property Value
ObservableCollection<GroupDescription>
Methods
CreateInstanceCore()
Creates a new instance of the CustomViewDefinition class.
Declaration
protected override Freezable CreateInstanceCore()
Returns
Freezable
The new instance.
FormatVisibleRangeText(IFormatProvider, DateTime, DateTime, DateTime)
When overridden in a derived class, this method formats the string that represents the current visible range.
Declaration
protected override string FormatVisibleRangeText(IFormatProvider formatInfo, DateTime rangeStart, DateTime rangeEnd, DateTime currentDate)
Parameters
formatInfo
The format info provider to be used for formatting.
rangeStart
The start of the visible range.
rangeEnd
The end of the visible range.
currentDate
The current date.
Returns
The formatted string to be displayed as current visible range.
Overrides
GetGroupDescriptions()
Gets the group descriptions.
Declaration
protected override IEnumerable<GroupDescription> GetGroupDescriptions()
Returns
IEnumerable<GroupDescription>
An enumerable set of GroupDescription objects that will be used for grouping.
Overrides