1
<StackPanel Name="mypanel">
<ScrollViewer Height="{Binding ElementName=mypanel, Path=ActualHeight}">
J'ai besoin, Height = mypanel.ActualHeight-60
.ScrollViewer dans StackPanel
Comment puis-je le faire?
EDIT:
<StackPanel Name="mypanel">
<ContentControl Content="{Binding HeaderPart}" /> <= here must be Expander
<ScrollViewer Height="{Binding ElementName=mypanel, Path=ActualHeight, Converter={StaticResource HeightConverter}}" >
<StackPanel>
</StackPanel>
</ScrollViewer>
Lorsqu'il n'y a pas Expander
, tout fonctionne. Lorsque le Expander
est, mypanel.ActualHeight
, HeightAdjustmentConverter = 0
.
Que s'est-il passé?
oh, merci =^^ = – Kira
En XAML il sera comme ça?
Kira
@Kira Oui, cela serait exact, avec une ligne quelque part pour créer réellement la ressource statique. –