---
title: "ScrollViewer does not scroll Image WPF"  
description: "ScrollViewer does not scroll Image WPF"  
author: "Anonymous User"  
published: 2014-01-30  
updated: 2014-01-30  
canonical: https://www.mindstick.com/forum/1927/scrollviewer-does-not-scroll-image-wpf  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# ScrollViewer does not scroll Image WPF

I have an [image](https://www.mindstick.com/articles/23551/an-investigate-distinctive-seafood-restaurant-for-your-image-stamp-character) that is bigger than it's [window](https://www.mindstick.com/forum/161285/how-does-the-window-console-object-work-in-javascript) [container](https://www.mindstick.com/forum/159610/how-to-connect-a-windows-container-to-a-service-running-on-localhost) and it is placed in a ScrollViewer, however, the image does not scroll at all. I've tried putting the image in a container with no luck. What [settings](https://www.mindstick.com/blog/63563/steps-to-change-the-wireless-settings-using-linksys-cloud-account) am I [missing](https://answers.mindstick.com/qa/52138/international-missing-children-s-day-2019-was-observed-on) here? (I copied the [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii) straight from MS, but they have it [wrong](https://answers.mindstick.com/qa/48468/who-wrote-the-the-wrong-enemy-america-in-afghanistan-2001-2014-and-when))

## Here's the code:

```
<Windowxmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:h="http://helixtoolkit.codeplex.com"
x:Class="TileLayout"Title="TileLayout" Height="1000"
Width="845" WindowStartupLocation="CenterScreen"
WindowStyle="ThreeDBorderWindow"><StackPanel HorizontalAlignment="center"
VerticalAlignment="Top">    <StackPanel
Orientation="Horizontal"   >        <TextBox
x:Name="txtSourceFilePath" Width="500"
Margin="10" Height="22"
TextChanged="TextBox_TextChanged"
Text="E:\projects\Test3D\SavedSnapshots\snapshot.png"/>        <Button
x:Name="btnPickFile" Width="100"
Margin="0,10,10,10" Content="Pick File" ></Button>   
</StackPanel>    <ScrollViewer
VerticalScrollBarVisibility="Auto" >        <Image
x:Name="imgFinal" Source="SteelMotion_chevron2.png"/>   
</ScrollViewer></StackPanel>
```

## Replies

### Reply by Pravesh Singh

Hi Jacob,\

<Window

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

xmlns:h="http://helixtoolkit.codeplex.com" x:Class="TileLayout"

Title="TileLayout" Height="1000" Width="845" WindowStartupLocation="CenterScreen" WindowStyle="ThreeDBorderWindow">

<Grid>

<Grid.RowDefinitions>

<RowDefinition Height="50"/>

<RowDefinition Height="*"/>

</Grid.RowDefinitions>

<StackPanel Orientation="Horizontal" Height="50" HorizontalAlignment="Center" VerticalAlignment="Top" Grid.Row="0">

<TextBox x:Name="txtSourceFilePath" Width="500" Margin="10" Height="22" TextChanged="TextBox_TextChanged" Text=""/>

<Button x:Name="btnPickFile" Width="100" Margin="0,10,10,10" Content="Pick File" ></Button>

</StackPanel>

<ScrollViewer VerticalScrollBarVisibility="Auto" Grid.Row="1" >

<Image x:Name="imgFinal" Source="SteelMotion_chevron2.png" Width="768" Height="1408"/>

</ScrollViewer>

</Grid>


---

Original Source: https://www.mindstick.com/forum/1927/scrollviewer-does-not-scroll-image-wpf

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
