RSS

ScrollViewer for ItemsControl

18 Sep

In a ItemsControl the ScrollViewer is not visible, not by setting ScrollViewer.HorizontalScrollBarVisibility to “Auto” nor by setting it to “Visible”.
The only solution is to wrap the ItemsControl into a ScrollViewer:

<ScrollViewer VerticalScrollBarVisibility="Auto">
     <ItemsControl ItemsSource="{Binding Path=MyList}"/>
</ScrollViewer>
Advertisements
 
Leave a comment

Posted by on September 18, 2012 in WPF

 

Tags:

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: