Binding.ConverterParameter Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
property Platform::Object ^ ConverterParameter { Platform::Object ^ get(); void set(Platform::Object ^ value); };
IInspectable ConverterParameter();
void ConverterParameter(IInspectable value);
public object ConverterParameter { get; set; }
var object = binding.converterParameter;
binding.converterParameter = object;
Public Property ConverterParameter As Object
<Binding ConverterParameter="parameter"/>
-or-
<Binding ConverterParameter="parameterReference"/>
Property Value
A parameter to be passed to the Converter. This can be used in the conversion logic. The default is null.
Remarks
Passing parameters to a converter is a relatively advanced and uncommon scenarios. Most converters used for data binding simply type-convert a source object to a desired target type based solely on the characteristics of the source object, and knowing what the intended destination type is for a particular binding scenario.
If a value for ConverterParameter is specified, this value is used for the parameter value when invoking the converter logic. Specifically, this provides the value of the parameter parameter of the Convert or ConvertBack methods of the specific converter that is requested with the Converter property.
You can't set the property values of a Binding object after that binding has been attached to a target element and target property. If you attempt this you'll get a run-time exception.