Tuesday, June 17, 2014

Automatic vertical scroll bar in WPF TextBlock?

Automatic vertical scroll bar in WPF TextBlock?

<TextBox Name="myTextBox"
ScrollViewer.HorizontalScrollBarVisibility="Auto"
ScrollViewer.VerticalScrollBarVisibility="Visible"
ScrollViewer.CanContentScroll="True">SOME TEXT
</TextBox>

These are attached property of wpf. For more information

http://wpfbugs.blogspot.in/2014/02/wpf-layout-controls-scrollviewer.html

No comments: