Share via


ZoomLevelConverter.Convert(Object, Type, Object, CultureInfo) Method

Definition

Converts the value from Double to its String representation.

public:
 virtual System::Object ^ Convert(System::Object ^ value, Type ^ targetType, System::Object ^ parameter, System::Globalization::CultureInfo ^ culture);
public object Convert (object value, Type targetType, object parameter, System.Globalization.CultureInfo culture);
abstract member Convert : obj * Type * obj * System.Globalization.CultureInfo -> obj
override this.Convert : obj * Type * obj * System.Globalization.CultureInfo -> obj
Public Function Convert (value As Object, targetType As Type, parameter As Object, culture As CultureInfo) As Object

Parameters

value
Object

The zoom level as Double

targetType
Type

The type of the binding target property.

parameter
Object

The converter parameter to use.

culture
CultureInfo

The culture to use in the converter.

Returns

The String representation of the zoom level. Returns UnsetValue if the conversion fails.

Implements

Remarks

The zoom level is represented as a number %. This converter takes in a double value and formats it with a % symbol.

Applies to