SIlverlight: how to add scrollbars to ItemsControl?
Ok, maybe it's ridiculously simple, but all the time I has to stop and think about it! Here is the solution:
<ItemsControl ItemsSource="{Binding MyItemsSource}"> <ItemsControl.Template> <ControlTemplate> <ScrollViewer x:Name="ScrollViewer"> <ItemsPresenter /> </ScrollViewer> </ControlTemplate> </ItemsControl.Template> </ItemsControl>
Commenti
Posta un commento