<StackPanel Name="mypanel">
<ScrollViewer Height="{Binding ElementName=mypanel, Path=ActualHeight}">
が必要ですHeight = mypanel.ActualHeight-60
。
どうすればいいですか?
編集:
<StackPanel Name="mypanel">
<ContentControl Content="{Binding HeaderPart}" /> <= here must be Expander
<ScrollViewer Height="{Binding ElementName=mypanel, Path=ActualHeight, Converter={StaticResource HeightConverter}}" >
<StackPanel>
</StackPanel>
</ScrollViewer>
がない場合Expander
、すべてが機能しています。Expander
が、mypanel.ActualHeight
、の場合HeightAdjustmentConverter = 0
。
どうしたの?