[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

scrollviewer

Posted on 2009-05-06
3
Medium Priority
?
261 Views
Last Modified: 2013-11-12
HI,

I want to add a number of thumb size photos to a scrollable area.

q1)How do i do style the scroll viewer  as the scrollbars dont look that good ?

 q2) I have an image in the scrollviewer and want to invoke the click event of the image but click event doesnt appear anymore?

 img2 = New Image
        url2 = New Uri("images/armythumb.png", UriKind.Relative)
        uu2 = New BitmapImage(url)
        uu2.UriSource = url2
        img2.Source = uu2
        Canvas.SetLeft(img2, 20)
        Canvas.SetTop(img2, 5)


        sv = New ScrollViewer
        sv.Height = 80
        sv.Width = 200
        Canvas.SetLeft(sv, 100)
        Canvas.SetTop(sv, 100)
        sv.HorizontalScrollBarVisibility = ScrollBarVisibility.Visible
        sv.VerticalScrollBarVisibility = ScrollBarVisibility.Visible
        sv.Content = img1
        LayoutRoot.Children.Add(sv)
0
Comment
Question by:jagguy
  • 2
3 Comments
 

Author Comment

by:jagguy
ID: 24313464
i want to style the tab where you scroll  with the mouse and the scrollbar width
0
 
LVL 9

Accepted Solution

by:
peterdungan earned 2000 total points
ID: 24314690
If you want to add several photos to the same scrollviewer, you need to place a canvas or a grid as the content element of the scrollviewer, and add the images to that.
The click event is only for buttons. You need to use MouseLeftButtonDown instead.
0
 

Author Comment

by:jagguy
ID: 24320912
OK  i can add photos and click on them .
I really just needed to know how to style the scrollbars and the tab?
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
Artificial Intelligence comes in many forms, and for game developers, Path-Finding is an important ability for making an NPC (Non-Playable Character) maneuver through terrain.  A* is a particularly easy way to approach it.  I’ll start with the algor…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

830 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