New to Telerik UI for .NET MAUIStart a free 30-day trial

Represents a view that is used to visualize an appointment. This view provides the visual representation of appointments within the scheduler, handling layout, styling, and user interaction for individual appointment entries. AppointmentView supports customization through styling, templates, and data binding.

Definition

Namespace:Telerik.Maui.Controls.Scheduler

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class AppointmentView : View, IAppointmentView, IView, IElement, ITransform

Inheritance: objectAppointmentView

Implements: IAppointmentViewIElementITransformIView

Constructors

Initializes a new instance of the AppointmentView class.

C#
public AppointmentView()

Fields

BackgroundColorProperty

BindableProperty

Identifies the BackgroundColor property.

C#
public static readonly BindableProperty BackgroundColorProperty

CornerRadiusProperty

BindableProperty

Identifies the CornerRadius bindable property.

C#
public static readonly BindableProperty CornerRadiusProperty

Identifies the DeleteButtonTextColor bindable property.

C#
public static readonly BindableProperty DeleteButtonTextColorProperty

PaddingProperty

BindableProperty

Identifies the Padding bindable property.

C#
public static readonly BindableProperty PaddingProperty

Identifies the SubjectFontAttributes bindable property.

C#
public static readonly BindableProperty SubjectFontAttributesProperty

Identifies the SubjectFontFamily bindable property.

C#
public static readonly BindableProperty SubjectFontFamilyProperty

SubjectFontSizeProperty

BindableProperty

Identifies the SubjectFontSize bindable property.

C#
public static readonly BindableProperty SubjectFontSizeProperty

SubjectProperty

BindableProperty

Identifies the Subject bindable property.

C#
public static readonly BindableProperty SubjectProperty

SubjectTextColorProperty

BindableProperty

Identifies the SubjectTextColor bindable property.

C#
public static readonly BindableProperty SubjectTextColorProperty

Properties

C#
public Color BackgroundColor { get; set; }

Gets or sets the corner radius of the appointment. This property controls the roundness of the appointment's corners, allowing for modern, rounded appearance or sharp rectangular edges.

C#
public double CornerRadius { get; set; }

Implements: IAppointmentView.CornerRadius

Gets or sets the text color of the delete button that is visualized when appointment is hovered in WinUI and MacCatalyst. This property controls the appearance of the delete button that appears on appointment hover, providing platform-specific deletion functionality for desktop environments.

C#
public Color DeleteButtonTextColor { get; set; }

Implements: IAppointmentView.DeleteButtonTextColor

Padding

Thickness

Gets or sets the padding of the appointment. This property controls the internal spacing between the appointment's border and its content, affecting text positioning and overall visual appearance.

C#
public Thickness Padding { get; set; }

Implements: IAppointmentView.Padding

Gets or sets the subject of the appointment. This property represents the main text content displayed on the appointment, typically showing the appointment's title or description.

C#
public string Subject { get; set; }

Implements: IAppointmentView.Subject

SubjectFontAttributes

FontAttributes

Gets or sets the font attributes of the subject. This property controls the styling attributes of the subject text, such as bold, italic, or combinations thereof.

C#
public FontAttributes SubjectFontAttributes { get; set; }

Gets or sets the font family of the subject. This property allows customization of the typeface used for the subject text, enabling brand consistency or improved readability.

C#
public string SubjectFontFamily { get; set; }

Gets or sets the font size of the subject. This property controls the size of the subject text, allowing for emphasis or adaptation to different appointment sizes and display densities.

C#
public double SubjectFontSize { get; set; }

Gets or sets the text color of the subject. This property controls the color of the subject text, affecting readability and visual hierarchy within the appointment display.

C#
public Color SubjectTextColor { get; set; }

Implements: IAppointmentView.SubjectTextColor

Methods

C#
protected override void OnBindingContextChanged()