Mega Code Archive

 
Categories / VB.Net / WPF
 

Handling overflow

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   HorizontalAlignment="Center" VerticalAlignment="Center" Width="168"> <Grid Background="Yellow" ShowGridLines="True">   <Grid.RowDefinitions>     <RowDefinition />     <RowDefinition />   </Grid.RowDefinitions>   <StackPanel Height="100" Orientation="Horizontal">     <TextBlock TextWrapping="Wrap" FontSize="20">       This is some text that is too long to fit.     </TextBlock>   </StackPanel>   <TextBlock Grid.Row="1" TextWrapping="Wrap" FontSize="20">     This is some text that is too long to fit.   </TextBlock> </Grid> </Page>