title: ScrollViewer in StackPanel
body: <pre><code>&lt;StackPanel Name="mypanel"&gt;
     &lt;ScrollViewer Height="{Binding ElementName=mypanel, Path=ActualHeight}"&gt;
  </code></pre>
  
  <p>I need, <code>Height = mypanel.ActualHeight-60</code>.</p>
  
  <p>How can I do it?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <pre><code>&lt;StackPanel Name="mypanel"&gt;
      &lt;ContentControl Content="{Binding HeaderPart}" /&gt; &lt;= here must be Expander
      &lt;ScrollViewer Height="{Binding ElementName=mypanel, Path=ActualHeight, Converter={StaticResource HeightConverter}}" &gt;
          &lt;StackPanel&gt;
          &lt;/StackPanel&gt;
      &lt;/ScrollViewer&gt;
  </code></pre>
  
  <p>When there is no <code>Expander</code>, all is working. When the <code>Expander</code> is, <code>mypanel.ActualHeight</code>, <code>HeightAdjustmentConverter = 0</code>.</p>
  
  <p>What happened?</p>