I want that the height of my ScrollvViewer, be window height minus height others StackPanel. I get the height of the window with:
<ScrollViewer Height="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Border}}, Path=ActualHeight}" >
But I can't subtrac it 100, by example..
<ScrollViewer Height="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Border}}, Path=ActualHeight}" -100 >
or
<ScrollViewer Height="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Border}}, Path=ActualHeight} - {Binding ActualHeight, ElementName=parentElementName}">