У меня проблема, и я не знаю, как решить эту проблему, у меня есть много таких точек, тогда решение должно быть не сложно.
У меня есть основной проект с настройками и основным XAML.
У меня есть проект зависимости с Binding Converter и XAML File выглядит так:
<TextBlock Text="{Binding X.Y.Z, Converter={StaticResource ProbabilityConverter}, ConverterParameter=??????????????, Mode=OneWay}"/>
Этот файл XAML загружается основным файлом XAML из основного проекта.
Мне нужно передать значение одного свойства из параметра Setting to ConverterParameter
, этот параметр может меняться во время выполнения, тогда это должно быть Binding
, Binding
, в этом случае я могу сделать только для DependencyProperty
.
Я должен сделать обертку DependencyProperty
для этого свойства Setting для решения этой проблемы?
Когда я пытаюсь установить Binding
в ConverterParameter
, я получаю это исключение во время выполнения:
"Связывание" не может быть установлено на Свойство "ConverterParameter" типа 'Binding'. "Связывание" может быть установлено только на DependencyProperty DependencyObject.