Question

how can i add pictures into scroll viewer in C#?

Was it helpful?

Solution

Something like this (ScrollViewer doc):

<ScrollViewer Height="200" Width="200" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Canvas.Top="60" Canvas.Left="340">
     <Image src="myImage.jpg" Width="50" Height="50" />
</ScrollViewer>

But you might also want to check out the StackPanel control.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top