Automatic scroll bar in WPF TextBlock

Related URL:

 

http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/9d8cacbe-5d6c-40b1-9ba2-3eadfd5379f9

http://stackoverflow.com/questions/1192335/automatic-vertical-scroll-bar-in-wpf-textblock

 

 <Grid Grid.Row="1" Grid.Column="2"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> <ColumnDefinition Width="8"/> </Grid.ColumnDefinitions> <ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto" Grid.Column="0"> <TextBlock TextWrapping="Wrap" /> </ScrollViewer> </Grid>

你可能感兴趣的:(Automatic scroll bar in WPF TextBlock)