<UserControl Width="{Binding RelativeSource= {RelativeSource FindAncestor, AncestorType={x:Type ListView}}, Path=ActualWidth}" Height="{Binding RelativeSource= {RelativeSource FindAncestor, AncestorType={x:Type ListView}}, Path=ActualHeight}"> <!-- Content --> </UserControl>
<hc:ScrollViewer x:Name="scrList" > <WrapPanel Orientation="Horizontal" Width="{Binding ElementName=scrList, Path=Width, Mode=OneWay}" HorizontalAlignment="Center">
注意綁定 Mode = OneWay(a => b, b ≠> a)