Solved

Scroll down pictures

Posted on 2010-11-27
2
358 Views
Last Modified: 2012-05-10
Hi,

I have a bunch of pictures on my screen, but not all are visible on the actual screen that I am designing the interface, but I have alligned them through code. I want to be able to scroll down all 8 pictures, currently only 2 pictures show and the scroll viewer is not working. I am not sure how it works...

currenly I have a groupBox that has all the 8 pictures and the scroll viewer is inside the group box.. I might be doing this wrong I think...
0
Comment
Question by:Trying_to_Learn
  • 2
2 Comments
 

Accepted Solution

by:
Trying_to_Learn earned 0 total points
ID: 34224242
Figured it out
<Window x:Class="Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="UseScrollViewer" Height="300" Width="300">
    <Grid>
        <ScrollViewer Name="ScrollViewer1" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
            <StackPanel  Margin="0,0,0,0" Name="StackPanel1" VerticalAlignment="Top">
                <Image Margin="0,0,0,0" Name="Image1" Source="smile.bmp" Stretch="None" />
                <Label Height="Auto" Margin="0,0,0,0" Name="Label1" VerticalAlignment="Bottom" HorizontalContentAlignment="Center">Have a nice day!</Label>
            </StackPanel>
        </ScrollViewer>
    </Grid>
</Window>

Open in new window

0
 

Author Closing Comment

by:Trying_to_Learn
ID: 34224244
Figured out the soln myself
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question