DayViewDefinition
Class
Represents a definition of a view that shows a single day in day view mode. This view provides a detailed timeline view of a single day with hourly time slots, allowing users to see appointments throughout the day with precise time positioning.
Definition
Namespace:Telerik.Maui.Controls
Assembly:Telerik.Maui.Controls.dll
Syntax:
C#
public class DayViewDefinition : MultidayViewDefinitionBase, INotifyPropertyChanged
Inheritance: objectViewDefinitionBaseMultidayViewDefinitionBaseDayViewDefinition
Implements:
Inherited Members
Example:
csharp
// Code-behind configuration (TimeOnly properties must be set in code)
var dayView = new DayViewDefinition
{
DayStartTime = new TimeOnly(8, 0), // 8:00 AM
DayEndTime = new TimeOnly(18, 0), // 6:00 PM
MajorTickLength = TimeSpan.FromHours(1), // 1-hour major ticks
MinorTickLength = TimeSpan.FromMinutes(30), // 30-minute minor ticks
Title = "Day View"
};
scheduler.ViewDefinitions.Add(dayView);
// XAML configuration (TimeOnly properties set via code-behind)
// <telerik:RadScheduler x:Name="scheduler">
// <telerik:RadScheduler.ViewDefinitions>
// <telerik:DayViewDefinition x:Name="dayViewDefinition" />
// </telerik:RadScheduler.ViewDefinitions>
// </telerik:RadScheduler>
// Then in code-behind:
// dayViewDefinition.DayStartTime = new TimeOnly(8, 0);
// dayViewDefinition.DayEndTime = new TimeOnly(18, 0);
Constructors
C#
public DayViewDefinition()
Methods
Creates the default title for the view definition.