Class
FormattedSubjectConverter

A multi-value converter that formats appointment subjects for display in the agenda view of the RadScheduler. This converter is used to ensure that the formatted subject updates reactively when the underlying appointment's subject property changes.

Definition

Namespace:Telerik.Maui.Controls.Scheduler

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public class FormattedSubjectConverter : IMultiValueConverter

Inheritance: objectFormattedSubjectConverter

Implements: IMultiValueConverter

Constructors

FormattedSubjectConverter()

Declaration

cs-api-definition
public FormattedSubjectConverter()

Methods

Convert(object[], Type, object, CultureInfo)

Converts the source values to a formatted subject string for display in the agenda view.

Declaration

cs-api-definition
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)

Parameters

values

object[]

An array of values where:

  • values[0] should be an AgendaAppointmentNode instance.
  • values[1] should be the appointment's subject (used to trigger binding updates).

targetType

Type

The type of the binding target property. This parameter is not used.

parameter

object

An optional parameter to be used in the converter logic. This parameter is not used.

culture

CultureInfo

The culture to use in the converter. This parameter is not used.

Returns

object

A formatted subject string from the FormattedSubject property, or an empty string if the values are invalid.

ConvertBack(object, Type[], object, CultureInfo)

This method is not supported and will throw a NotImplementedException.

Declaration

cs-api-definition
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)

Parameters

value

object

The value that is produced by the binding target.

targetTypes

Type[]

The array of types to convert to.

parameter

object

The converter parameter to use.

culture

CultureInfo

The culture to use in the converter.

Returns

object[]

This method does not return a value.

Exceptions

NotImplementedException

This method is not implemented as two-way binding is not supported.