Hi,
Im using a stackpanel containing itemcontrols and displaying some canvas'.
How do i make a scrollbar on the stackpanel so that i can see all the canvas' that I am using?
Thanks in advance.
Urema.
Scrollbars
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Sanjay Chauhan55 reputationPosted Aug 10, 2009, 3:24 AM EDT
Hi,
<StackPanel Grid.Row="1" Grid.Column="1" Background="RoyalBlue" Height="400" ScrollViewer.VerticalScrollBarVisibility="Auto">
DataTemplate> StackPanel Orientation="Horizontal"> StackPanel Orientation="Vertical"> TextBlock Text="{Binding Path=FileName}" /> CheckBox IsChecked="{Binding Path=IsSavedInServer}" Content="exist in server" /> StackPanel> Image Source="{Binding Path=ImageSource}" Height="100" Width="150" Stretch="Fill" /> StackPanel> DataTemplate> ItemsControl > StackPanel>ScrollViewer.VerticalScrollBarVisibility="Auto"
For vertical scrollbar. Check the above code.
person91 reputationPosted Aug 11, 2009, 7:49 AM EDT
Thanks for the reply it helped significantly!!
Urema.