I want to add scroll view to my program and I tried ScrollView control but that don't take effect. It's my first time dealing with scrolls please help me :).
My xaml Code:
<DockPanel Grid.Row="1" Background="#FF695887"> <ScrollViewer VerticalScrollBarVisibility="Auto" Height="795"> <Canvas Name="zemelapis" Height="Auto" Width="Auto"> <Image Name="pav_kelias" /> <Image Name="car1" /> </Canvas> </ScrollViewer> </DockPanel> Because these 2 images is not fitting here I need a scroll for them. Maybe I should use ScrollBar?
My program example: https://gyazo.com/a4ba7e4d5004632e2229a87e686c4c09 , as you can see bottom image is not fitting in range of window.
Canvasto aGrid, or some other type of control or setting a defined height on theCanvas?