It is not possible for a child to be larger than its parent, unless its contents are larger. If you want to trim text, you can use TextBlock.TextTrimming = WordEllipsis/CharacterEllipsis . This will lead to the desired behavior if my interpretation of the question is correct.
However, this does not work with StackPanel . As the other answer suggests, you can use a DockPanel or Grid to host content.
Alternatively, you can wrap the StackPanel in a ScrollViewer and use the scroll bar to handle overflow.
Update This should fix it.
<DockPanel> <Border DockPanel.Dock="Left" BorderBrush="Black" BorderThickness="1" Width="{ Binding BorderScreenShot }" Margin="0,-8,0,0"> <Image ToolTip="Some Text" Cursor="Hand" Source="{ Binding Image }" Stretch="Fill" Visibility="{ Binding ImageVisibility }" MouseLeftButtonUp="Image_MouseLeftButtonUp" /> </Border> <StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal"> <TextBlock Text="{ Binding Category }" /> <TextBlock Text="{ Binding Version }" /> </StackPanel> <TextBlock DockPanel.Dock="Top" Text="{ Binding Name }" TextWrapping="Wrap" /> <TextBlock Text="{ Binding LongText }" TextTrimming="WordEllipsis" TextWrapping="Wrap" /> </DockPanel>
source share