ClassViewDefinitionBase
Provides the foundation for all view definitions in RadScheduler, establishing common properties and behavior for different calendar view types. This abstract class defines how dates, time slots, and appointments are organized and displayed in various scheduler views.
Definition
Namespace:Telerik.Maui.Controls
Assembly:Telerik.Maui.Controls.dll
Syntax:
public abstract class ViewDefinitionBase : StyleableElement, INotifyPropertyChanged
Inheritance: objectViewDefinitionBase
Derived Classes:
Implements:
Constructors
ViewDefinitionBase()
Declaration
protected ViewDefinitionBase()
Fields
HeaderTextFormatProperty
Identifies the HeaderTextFormat property.
Declaration
public static readonly BindableProperty HeaderTextFormatProperty
Field Value
BindableProperty
TitleProperty
Identifies the Title bindable property.
Declaration
public static readonly BindableProperty TitleProperty
Field Value
BindableProperty
Properties
HeaderTextFormat
Gets or sets the format string used to display the main header text for this view. This property controls how dates and time ranges are formatted in the scheduler's primary header area.
Declaration
public string HeaderTextFormat { get; set; }
Property Value
A format string compatible with DateTime formatting, or null to use the default format for this view type.
Remarks
The HeaderTextFormat property allows customization of the main date display in the scheduler header. Different view types have different default formats:
- Day view: Typically shows full date (e.g., "Monday, October 16, 2023")
- Week view: Shows date range (e.g., "October 16-22, 2023")
- Month view: Shows month and year (e.g., "October 2023")
The format string should be compatible with standard .NET DateTime format strings. You can use standard format specifiers (d, D, M, Y, etc.) or custom format patterns.
When null or empty, the view definition uses its default formatting logic, which may consider the current culture and localization settings.
Title
Gets or sets the display title for this view definition. This title appears in the scheduler header and view switcher controls, allowing users to identify and select this view.
Declaration
public string Title { get; set; }
Property Value
A string representing the user-friendly name for this view. If not explicitly set, a default title may be generated.
Remarks
If no title is explicitly set, derived classes may provide default titles through the CreateDefaultTitle method. For localization, you can bind this property to localized strings or set it programmatically based on the current culture.
Methods
CreateDefaultTitle()
Creates the default title for the view definition.