Questions tagged [scrollviewer]

A scroll viewer is a user interface construct that provides a scrolling area to any control(or hierarchy of controls) that is placed within it.

A scroll viewer is a user interface construct that provides a scrolling area to any control(or hierarchy of controls) that is placed within it. May refer specifically to the wpf/silverlight ScrollViewer.

1187 questions
16
votes
6 answers

How to enable horizontal scrolling with mouse?

I cannot determine how to scroll horizontally using the mouse wheel. Vertical scrolling works well automatically, but I need to scroll my content horizontally. My code looks like this:
vts123
  • 1,736
  • 6
  • 27
  • 41
15
votes
2 answers

WPF: ScrollViewer in grid

I have a grid: The second row is with scrollviewer:
Shoki
  • 151
  • 1
  • 1
  • 3
15
votes
3 answers

WPF Image Pan, Zoom and Scroll with layers on a canvas

I'm hoping someone can help me out here. I'm building a WPF imaging application that takes live images from a camera allowing users to view the image, and subsequently highlight regions of interest (ROI) on that image. Information about the ROIs…
KyleLib
  • 774
  • 3
  • 9
  • 26
14
votes
2 answers

When using ScrollViewer as part of template for some control, the left click is handled

Consider first version of code (MainWindow.xaml): where CustomControl1 derived from ItemsControl. Inside CustomControl1 , I overriding…
Illidan
  • 4,047
  • 3
  • 39
  • 49
14
votes
2 answers

WPF - Animate ListBox.ScrollViewer.HorizontalOffset?

I have a collection of Visuals in a ListBox. I need to find the XPosition of an element inside it and then animate the HorizontalOffset of the ListBox's ScrollViewer. Essentially I want to created an animated ScrollIntoView method. This gives me a…
EightyOne Unite
  • 11,665
  • 14
  • 79
  • 105
13
votes
2 answers

How can I make WPF ScrollViewer middle-click-scroll?

Clicking the middle mouse button (aka: mouse wheel) and then moving the mouse down slightly lets users scroll in IE, and most Windows apps. This behavior appears to be missing in WPF controls by default? Is there a setting, a workaround, or…
Tion
  • 1,470
  • 17
  • 27
13
votes
1 answer

WPF ScrollViewer: Horizontal scrolling doesn't work

Why won't this support horizontal scrolling?
Jonathan Allen
  • 68,373
  • 70
  • 259
  • 447
13
votes
6 answers

ScrollViewer is not working in WPF WindowsFormHost

I have WindowsFormHost with a RichTextBox in my WPF form, i have given ScrollViewer for that WindowsFormHost but its not working, WindowsFormHost going outside of ScrollViewer... My XAML is..
Avinash Singh
  • 2,697
  • 11
  • 44
  • 72
13
votes
4 answers

Putting ListBox in ScrollViewer: mouse wheel does not work

My mouse wheel does not work when putting a ListBox in a ScrollViewer. Does the ListBox somehow "steal" this event? Test 1
Robbert Dam
  • 4,027
  • 10
  • 39
  • 58
13
votes
4 answers

How can I make the Silverlight ScrollViewer scroll to show a child control with focus?

I have a ScrollViewer which contains a Grid with multiple controls in it. The user can tab through the controls, but eventually they tab to a control that isn't in view - so they have to manully scroll to make the control visible again. Is there any…
Craig Shearer
  • 14,222
  • 19
  • 64
  • 95
12
votes
1 answer