How to simply bind this to ConverterParameter?

I have problem and i don't know how to solve this simple, i have many points like this, then solution should be not complicated.

I have main project with Settings and main XAML.

I have dependency project with Binding Converter and XAML File looks like:

<TextBlock Text="{Binding X.Y.Z, 
                 Converter={StaticResource ProbabilityConverter},                 
                 ConverterParameter=??????????????, Mode=OneWay}"

This XAML file is loading by main XAML file from main project.

I must pass value of one property from Setting's to ConverterParameter, this parameter can be changing at runtime, then this is must be Binding, Binding i can do only for DependencyProperty in this case.

I must do DependencyProperty wrapper for this Setting property to solve this problem?

When i try set Binding in ConverterParameter i will get this exception at runtime:

A 'Binding' cannot be set on the 'ConverterParameter' property of type 'Binding'. A 'Binding' can only be set on a DependencyProperty of a DependencyObject.

задан JiBéDoublevé 23 October 2019 в 10:21