Class CustomViewDefinition
Represents a custom View
Inherited Members
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.ScheduleView.dll
Syntax
public class CustomViewDefinition : MultidayViewDefinition, INotifyPropertyChanged, ISlotConvertor
Constructors
CustomViewDefinition()
Initializes a new instance of the Custom
Declaration
public CustomViewDefinition()
Fields
CurrentVisibleRangeFormatProperty
Identifies the Current
Declaration
public static readonly DependencyProperty CurrentVisibleRangeFormatProperty
Field Value
System. The identifier for the Current |
Properties
CurrentVisibleRangeFormat
Gets or sets the format to be used for displaying the current visible range.
Declaration
public string CurrentVisibleRangeFormat { get; set; }
Property Value
System.
|
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
System.
|
Methods
CreateInstanceCore()
Creates a new instance of the CustomViewDefinition class.
Declaration
protected override Freezable CreateInstanceCore()
Returns
System. 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
System. The format info provider to be used for formatting. |
System. The start of the visible range. |
System. The end of the visible range. |
System. The current date. |
Returns
System. The formatted string to be displayed as current visible range. |
Overrides
GetGroupDescriptions()
Gets the group descriptions.
Declaration
protected override IEnumerable<GroupDescription> GetGroupDescriptions()
Returns
System. An enumerable set of GroupDescription objects that will be used for grouping. |