Use IValueConverter locally inside MultiDataTrigger
<p>I want to create a MultiDataTrigger. Inside one of the conditions I need to use a converter. Since it is only used there, I do not want to define the converter as a resource but only use it locally.</p>

<p>So I made this MultiDataTrigger:</p>

<pre><code>&lt;MultiDataTrigger&gt;
    &lt;MultiDataTrigger.Conditions&gt;
        &lt;Condition Binding="Property1" Value="Value1" /&gt;
        &lt;Condition ... /&gt;
    &lt;/MultiDataTrigger.Conditions&gt;
    &lt;Setter Property="SomeProp" Value="SomeVal"/&gt;
&lt;/MultiDataTrigger&gt;
</code></pre>

<p>and this binding to avoid defining the converter as resource (based on <a href="https://stackoverflow.com/a/2304330/5333340">https://stackoverflow.com/a/2304330/5333340</a>):</p>

<pre><code>&lt;Binding Path="Property2"&gt;
    &lt;Binding.Converter&gt;
        &lt;converterNamespace:MyConverter/&gt;
    &lt;/Binding.Converter&gt;
&lt;/Binding&gt;
</code></pre>

<p>and put the two pieces together:</p>

<pre><code>&lt;MultiDataTrigger&gt;
    &lt;MultiDataTrigger.Conditions&gt;
        &lt;Condition Binding="Property1" Value="Value1" /&gt;
        &lt;Condition Value="Value2"&gt;
            &lt;Binding Path="Property2"&gt;                 &lt;!-- Compiler --&gt;
                &lt;Binding.Converter&gt;                    &lt;!-- does     --&gt;
                    &lt;converterNamespace:MyConverter/&gt;  &lt;!-- not      --&gt;
                &lt;/Binding.Converter&gt;                   &lt;!-- like     --&gt;
            &lt;/Binding&gt;                                 &lt;!-- this!    --&gt;
        &lt;/Condition&gt;
    &lt;/MultiDataTrigger.Conditions&gt;
    &lt;Setter Property="SomeProp" Value="SomeVal"/&gt;
&lt;/MultiDataTrigger&gt;
</code></pre>

<p>But the compiler complains: "Type 'Condition' does not support direct content." (original: "Der Typ 'Condition' unterstützt keine direkten Inhalte.")</p>

<p>Is there a way to get the MultiDataTrigger working without needing to define the converter as resource?</p>