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
0
votes
1 answer

WPF Scrollviewer DesiredSize does not increase when ScrollBar gets Visible

I have a WPF UserControl (inside an ElementHost) with a ScrollViewer that contains an ItemsControl . The HorizontalScrollbarVisibility is set to Auto, so if no scrolling is necessary, the ScrollBargets hidden. My requirement is, that if the…
Mike Fuchs
  • 12,081
  • 6
  • 58
  • 71
0
votes
2 answers

Winrt & Xaml: Grid with Scrollbar ... tried Stackpanel, Scrollviewer, can't see to get it to work

I am trying to get a scrollbar on on a grid for WinRT app with Xaml. Basic page setup has an overal grid for the top and middle sections. Inside the middle section I put another grid with 2 rows and 2 columns. Inside row 1 col 1 of that grid, I…
RallyRabbit
  • 433
  • 1
  • 8
  • 20
0
votes
0 answers

Autoscaling to parent object within a ScrollViewer?

I am having an autoscaling issue with my pages. The pages are displayed within a ScrollViewer, which usually contains a column on the ~33% right and a grid on the ~66% left. I want to only autoscale the grid's Height (ie. independantly from the…
SylvainB
  • 4,765
  • 2
  • 26
  • 39
0
votes
1 answer

How to Auto scroll scrollviewer to specefic position

I have a custom user control ExpanderListUC, it contains a list of expanders each expander has a stackpanel which contains a list of labels. I've added a scrollviewer to scroll up and down through the expanders content. In some cases I've to…
Cracker
  • 916
  • 2
  • 7
  • 16
0
votes
1 answer

WinRT ScrollViewer inheritance

I have an issue with the Windows.UI.Xaml.Controls.ScrollViewer. It does not work as I'd like it to (doh). If I put a Canvas inside and want to draw on it I can't as all the events from Canvas are passed down to the ScrollViewer. So my solution to…
Puhek
  • 475
  • 3
  • 13
0
votes
1 answer

How to access ScrollViewer in DevExpress GridControl?

I have to access to ScrollViewer in GridControl to do a synchronization with my other GridControls on scrolling. Before I used vanilla DataGrid and it was quite easy to get ScrollViewer via VisualTreeHelper and then to subscribe to the ScrollChanged…
Sergey Kuznetsov
  • 518
  • 4
  • 10
0
votes
1 answer

wpf - how can I hit test the scrollbars in the scrollviewer?

Can someone please tell me how to hit test the scrollbars of a scrollviewer in WPF? Thanks, Andy
Andy Clarke
  • 3,234
  • 5
  • 39
  • 66
0
votes
0 answers

ScrollViewer not to scroll when content does not exceed parent's height

In this XAML I can scroll Contents grid up and down a bit even though it does not exceed the ScrollViewer height.
src091
  • 2,807
  • 7
  • 44
  • 74
0
votes
1 answer

WPF element outside a Scrollviewer ignores the ZIndex

If i have an element transformed outside the bounds of the WPF scrollviewer I can't seem to render it on top. Consider the following example:
0
votes
0 answers

WPF Virtualized ItemsControl ScrollChanged behavior changed in .Net 4.5?

One of our applications contains a UserControl where we have multiple layers of ItemsControls that are kept in sync when scrolling. The ItemsControl is virtualized. The application is targetting .Net 4.0, not 4.5 and the control works fine on…
Colin B
  • 734
  • 1
  • 6
  • 13
0
votes
1 answer

Scroll bar is not visible

I have a WPF user control. It contains several Expanders separated with GridSplitters. In the code below, you can see that the second Expander contains a TabControl Items. One of the tabs has a DataGrid. My problem is that when that Expander is…
David Shochet
  • 5,035
  • 11
  • 57
  • 105
0
votes
1 answer

Autoresize ListBox inside ScrollViewer

In my application I have a Window. It contains a left side menu, a header and a place for content. This content is being loaded dynamically - a UserControl is put in there. These UserControls are various. From just a TextBlock to quite complex…
Andrzej Gis
  • 13,706
  • 14
  • 86
  • 130
0
votes
0 answers

Override ScrollViewer ContentTemplate WPF

I have a custom ScrollViewer template that I use to customize DocumentViewer control.