[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

scrollviewer

Posted on 2009-05-06
3
Medium Priority
?
260 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

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

zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
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…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

650 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