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

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:

C#
public class FormattedSubjectConverter : IMultiValueConverter

Inheritance: objectFormattedSubjectConverter

Implements: IMultiValueConverter

Constructors

C#
public FormattedSubjectConverter()

Methods

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

C#
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
Parameters:valuesobject[]

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).
targetTypeType

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

parameterobject

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

cultureCultureInfo

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.

This method is not supported and will throw a NotImplementedException.

C#
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
Parameters:valueobject

The value that is produced by the binding target.

targetTypesType[]

The array of types to convert to.

parameterobject

The converter parameter to use.

cultureCultureInfo

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.