title: Multibinding in RowDefinition Height
body: <p>I want to make converter for row height, that is dependent on 3 variables. Two of them are from view model and one is constant string. I made MultiValueConverter for this, but obviously its not setting the RowDefinition.Height value. </p>
  
  <p>The code looks like this:</p>
  
  <pre><code>&lt;RowDefinition Name="Row1"&gt;
      &lt;RowDefinition.Height&gt;
          &lt;MultiBinding Converter="{StaticResource MyConverter}"&gt;
              &lt;Binding Path="PropertyFromViewModel1" /&gt;
              &lt;Binding Source="{StaticResource DataGridName}" /&gt;
              &lt;Binding Path="PropertyFromViewModel2" /&gt;
          &lt;/MultiBinding&gt;
          &lt;/RowDefinition.Height&gt;
      &lt;/RowDefinition&gt;
  </code></pre>
  
  <p>Converter is working, it returns proper values (as strings).</p>
  
  <p>Code for multivalue converter:</p>
  
  <pre><code>public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
      {
          if (!((values[0]) is bool))
              throw new ArgumentException("First argument 'value' must be of type bool");
          if (values[1] == null)
              throw new ArgumentException("Secound argument must be diffrent then null");
          if (!((values[2]) is bool))
              throw new ArgumentException("Third argument 'value' must be of type bool");
  
          var showParkedTransactionDataGrid = (bool)values[0];
          var datagridName = values[1].ToString();
          var isCustomerDiscountShowed = (bool)values[2];
          if (showParkedTransactionDataGrid)
          {
              if (datagridName == "ProductListDataGrid")
              {
                  return isCustomerDiscountShowed ? "306" : "336";
              }
              else if (datagridName == "ParkedTransactionDataGrid")
              {
                  return "*";
              }
          }
          else
          {
              if (datagridName == "ProductListDataGrid")
              {
                  return "*";
              }
              else if (datagridName == "ParkedTransactionDataGrid")
              {
                  return "0";
              }
          }
          return "";
      }
  </code></pre>
  
  <p>I used before IValueConverter and it was working on RowDefinision Height property, but multibinding isnt.</p>