Как выполнить привязку внутри вызова конвертера в WPF XAML?C#

Место общения программистов C#
Ответить
Гость
 Как выполнить привязку внутри вызова конвертера в WPF XAML?

Сообщение Гость »


Это должно быть очень просто, но я не могу его найти.

В настоящее время у меня есть следующий триггер: As you can see, there is a comparison to a fix value (185), but I'd like this to be variable, so I tried something like this: (I've added some whitespace for readability reasons.
Although this should be extremely simple, I don't seem to find it.
Does anybody have an idea?

Thanks in advance
P.s. you were very fast to mark this question as a duplicate, but the duplicated question is based on

Код: Выделить всё

ConverterParameter
.

As a result, I tried to convert my situation in a situation, using such a

Код: Выделить всё

ConverterParameter
, but no success: => This seems not to work. Can anybody tell me how to convert my situation in one, using a

Код: Выделить всё

ConverterParameter
?
When opening the "Create Data Binding" dialog box, this is what I see:
Изображение
As you can see, no trace of that value 185, although it is crucial in my solution. When I fill it in as the

Код: Выделить всё

ConverterParameter
, this is what I get: ... and again no way to declare any multibinding (as I couldn't get it done by trying to type it, I tried to get it using the Visual Studio "Properties" editor).
Edit: a new day, a new attempt

Again a try, this time trying to introduce the

Код: Выделить всё

MultiBinding
: => It yields two error messages:

XLS0413 : The property 'Value' was not found in type 'Binding'.

XDG0012 : The member "Value" is not recognised or is not accessible.

Thanks again


Источник: https://stackoverflow.com/questions/780 ... n-wpf-xaml
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «C#»