Class
AppointmentView

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:

cs-api-definition
public class AppointmentView : View, IAppointmentView, IView, IElement, ITransform

Inheritance: objectAppointmentView

Implements: IAppointmentViewIElementITransformIView

Constructors

AppointmentView()

Initializes a new instance of the AppointmentView class.

Declaration

cs-api-definition
public AppointmentView()

Fields

BackgroundColorProperty

Identifies the BackgroundColor property.

Declaration

cs-api-definition
public static readonly BindableProperty BackgroundColorProperty

Field Value

BindableProperty

CornerRadiusProperty

Identifies the CornerRadius bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty CornerRadiusProperty

Field Value

BindableProperty

DeleteButtonTextColorProperty

Identifies the DeleteButtonTextColor bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty DeleteButtonTextColorProperty

Field Value

BindableProperty

PaddingProperty

Identifies the Padding bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty PaddingProperty

Field Value

BindableProperty

SubjectFontAttributesProperty

Identifies the SubjectFontAttributes bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty SubjectFontAttributesProperty

Field Value

BindableProperty

SubjectFontFamilyProperty

Identifies the SubjectFontFamily bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty SubjectFontFamilyProperty

Field Value

BindableProperty

SubjectFontSizeProperty

Identifies the SubjectFontSize bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty SubjectFontSizeProperty

Field Value

BindableProperty

SubjectProperty

Identifies the Subject bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty SubjectProperty

Field Value

BindableProperty

SubjectTextColorProperty

Identifies the SubjectTextColor bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty SubjectTextColorProperty

Field Value

BindableProperty

Properties

BackgroundColor

Declaration

cs-api-definition
public Color BackgroundColor { get; set; }

Property Value

Color

CornerRadius

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.

Declaration

cs-api-definition
public double CornerRadius { get; set; }

Property Value

double

Implements IAppointmentView.CornerRadius

DeleteButtonTextColor

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.

Declaration

cs-api-definition
public Color DeleteButtonTextColor { get; set; }

Property Value

Color

Implements IAppointmentView.DeleteButtonTextColor

Padding

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.

Declaration

cs-api-definition
public Thickness Padding { get; set; }

Property Value

Thickness

Implements IAppointmentView.Padding

Subject

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.

Declaration

cs-api-definition
public string Subject { get; set; }

Property Value

string

Implements IAppointmentView.Subject

SubjectFontAttributes

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.

Declaration

cs-api-definition
public FontAttributes SubjectFontAttributes { get; set; }

Property Value

FontAttributes

SubjectFontFamily

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.

Declaration

cs-api-definition
public string SubjectFontFamily { get; set; }

Property Value

string

SubjectFontSize

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.

Declaration

cs-api-definition
public double SubjectFontSize { get; set; }

Property Value

double

SubjectTextColor

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.

Declaration

cs-api-definition
public Color SubjectTextColor { get; set; }

Property Value

Color

Implements IAppointmentView.SubjectTextColor

Methods

OnBindingContextChanged()

Declaration

cs-api-definition
protected override void OnBindingContextChanged()