Skip to main content

StringFormatConverter Class

Definition

Assembly:Avalonia.Controls.PdfViewer
Package:Avalonia.Controls.PdfViewer

Formats the first value (a string.Format(IFormatProvider,string,object[]) pattern from Avalonia.Controls.PdfViewerStrings) with the remaining values, in the binding's culture. Lets the template compose "of 5" from a translatable pattern rather than from fragments whose word order is fixed.

public class StringFormatConverter

Inheritance: object -> StringFormatConverter

Constructors

NameDescription
StringFormatConverterNo summary available.

StringFormatConverter Constructor

public StringFormatConverter()

Methods

NameDescription
ConvertNo summary available.

Convert Method

public object Convert(System.Collections.Generic.IList<object> values, Type targetType, object parameter, System.Globalization.CultureInfo culture)

Parameters

values System.Collections.Generic.IList<object>

targetType Type

parameter object

culture System.Globalization.CultureInfo

Returns

object

Fields

NameDescription
InstanceThe shared instance.

Instance Field

The shared instance.

public Avalonia.Controls.Pdf.Converters.StringFormatConverter Instance