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.
1,188
questions
0
votes
1
answer
44
views
Accessing the implicit ScrollViewer of a Flyout in WinUI in code
I have a Flyout with content that is longer than the length of the Flyout, so a vertical scrollbar is activated. I wish to get the underlying ScrollViewer so that I can reset the scroll position ...
0
votes
1
answer
27
views
Scrollviewer in a complicated grid/datagrid scenario not working correctly
I have looked at every related answer I can find I have tried most of the offered solutions but nothing is working. First the visual...
The inner TabControl and the ScrollViewer are added in code (...
0
votes
0
answers
31
views
Logical Scrolling without Virtualization
Is it possible, to make a logical scrolling (per item) while turning virtualization off? The problem I have is that when I open new tabitems and they are outside of visible area, their content aren't ...
0
votes
0
answers
22
views
List of UserControls in ScrollViewer very slow to be visualized [duplicate]
I need to visualize a list of UserControls with a DataGrid within a ScrollViewer in the MainWindow but it seems that the rendering of the scrollable list takes a long time and I don't know where I am ...
0
votes
0
answers
23
views
Parent ScrollViewer Interaction with Child ScrollViewer in WPF
have a simplified XAML code snippet that involves nested ScrollViewer controls within a Grid and a ContentControl. The scenario is as follows:
<ScrollViewer x:Name="ParentScrollViewer">...
-1
votes
1
answer
58
views
Wpf. Scroll DataGrid inside ScrollViewer
Current realization
Hello there.
Currently I have the following application:
If you can see, when my cursor on blue or red zone I`am scrolling only the main ScrollViewer.
Expectations
I'am expecting ...
0
votes
1
answer
47
views
WPF Scrollviewer arrange make it go up
SETUP:
In my canvas, I'm trying to take a picture of my canvas elements that are all contained in a grid. There is "Photo" button inside a row in the grid that will open the dialog and take ...
0
votes
1
answer
49
views
AvalonEdit - Allowing user to scroll past end of the document
I'm using https://github.com/icsharpcode/AvalonEdit library in my WPF project.
I ran into a problem, tho - users cannot scroll past the last line, so it's often hard to edit.
I want it to work like in ...
1
vote
0
answers
30
views
How to image zoom on ManipulationOrigin with LayoutTransformation and scrollviewer (WPF C#)
I'm working in a WPF project where I have to zoom an image, hence scrollviewer is needed when the image is zoomed.
I have achieved the zoom with delta manipulation matrix etc.
The problem is, using ...
1
vote
1
answer
129
views
How to make scrollable, resizable listview?
Originally I wanted to make listview dependant on window height parameter, but to be honest I find this solution impractical, believing it can be done better.
So, here is an object of my interest:
<...
0
votes
0
answers
54
views
ItemsControl arrow key navigation not working
When we use ScrollViewer Styles and Templates the default behavior of arrow keys (Up, Down) to navigate b/w next or previous items in the ItemsControl is not working.
If this Style is not there then ...
0
votes
0
answers
35
views
WPF ScrollViewer around DataGrid affects DataGridColumn width
I have a problem with a DataGrid in my UserConrol inside a ScrollViewer.
MainWindow has a ScrollViewer and a ContentControl in it to present multiple views (UserControls):
<Border Grid.Column="...
0
votes
1
answer
27
views
ScrollViewer stopped working after some changes in layout
do you know why my scrollviewer isn't working? (WPF)
<Grid Grid.Row="1" Grid.Column="1" Width="350">
<Grid.RowDefinitions>
<RowDefinition ...
0
votes
0
answers
18
views
How to scrolling while hovering over ListView within an expander?
I have a ScrollViewer with an Expander in it with a ListView in the Expander, however I can only scroll while hovering over the Expander and not when hovering in the ListView.
My current code looks ...
1
vote
2
answers
57
views
How can I make this scrollviewer in the grid cell work both horizontaly and verticaly?
I have a grid with some data and one of the cells contains rather long strings (and there could be quite a few). So to not use too much of the available window space, I'd like those strings to be ...
0
votes
2
answers
61
views
image gallery with scrollviewer - wrap panel does not respect boundaries of scroll viewer
I'm trying to create a gallery-style layout with a ScrollViewer and a WrapPanel in WPF, but the WrapPanel is extending beyond the boundaries of the ScrollViewer. I've tried setting the ...
0
votes
1
answer
142
views
WPF Make scrollviewer work always, not just when mouse is located ont it
I have a scrollviewer with a stackpanel and buttons inside. I can use the mouse wheel to scroll it if the mouse is hovering over the scrollviewer. Is there any way i could make it so the mousewheel ...
0
votes
0
answers
56
views
c# WinUI Task Cancellation involving Scrolling of BitampImage
I am trying to make simple control to preview Images in the directory.
Layout is simple as below.
The thumbnails below is a scrollViewer. With left and right arrow keyDown the thumbnail gets Focus. ...
0
votes
0
answers
85
views
WPF ListView doesn't stick anymore
I have a fairly simple ListView:
<ListView DockPanel.Dock="Bottom"
HorizontalContentAlignment="Stretch"
SelectedItem="{Binding SelectedItem}"
...
0
votes
0
answers
40
views
Click trough scrollviewer in wpf
Here's the thing, I have a canvas in which I can draw any type of elements but I want to be able to zoom in and out and to use a scroll bar if the canvas gets bigger than the viewport, I though I ...
0
votes
1
answer
482
views
WPF ScrollViewer with webview2 Content Overlap other elements
<Window x:Class="wpfsamples.Test"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml&...
1
vote
1
answer
126
views
What is the difference between ScrollViewer.ScrollToEnd() and ScrollViewer.ScrollToBottom()?
Does anyone know what is the difference between ScrollViewer.ScrollToEnd() and ScrollViewer.ScrollToBottom()?
In Visual Studio 2022, the description of ScrollToEnd() and ScrollToBottom() is the same:
&...
0
votes
1
answer
103
views
Setting WPF border visible or not depending on ScrollViewer's VerticalScrollBarVisibility property
I have a WPF TextBlock with a border applied. See below:
<Border BorderBrush="Transparent"
BorderThickness="0"
Visibility="Visible">
<Border....
1
vote
1
answer
594
views
C# WPF Set ScrollViewer vertical offset at item position
I'm using a ScrollViewer to scroll an ItemsControl with a variable number of TextBox.
<ScrollViewer extension:ScrollViewerExtension.ScrollOffset="{Binding TotalSearchOccurence}" ScrollViewer....
0
votes
1
answer
381
views
C# WPF MaterialDesign ScrollViewer hide block at right bottom
I am using the MaterialDesign XAML templates as the basis for my self styled ScrollViewer. When the horizontal, as well as the vertical ScrollBars are visible, this square appears at the bottom right. ...
1
vote
3
answers
365
views
WPF ScrollViewer starts scrolling to early
I need a way to make a button overlap a textblock when resizing horizontally to a smaller size.This works fine for the first example, but when i put the same code in a scrollviewer, the horizontal ...
0
votes
1
answer
141
views
WPF ScrollViewer + Grid and VisualTreeHelper.GetChildrenCount()
So I'm trying to get all controls from parent control (MainGrid) for it i use this:
public static List<Visual> GetChildrens(Visual iParent, bool iRecursive)
{
...
0
votes
1
answer
366
views
WPF Make ScrollViewer transparent
I would like to get scrollbar in ListBox see through.
Currently I managed to move contents under with negative margin, but I cannot make it visible under ScrollBar even setting its Opacity.
Any ideas?
...
0
votes
1
answer
162
views
ListBox with GroupStyle scrolls by group, not by item
I have a ListBox with a GroupStyle. If i use the GroupStyle the ScrollViewer of the ListBox scrolls by group rather that item. So if the group has more items than fit on the screen the user never sees ...
2
votes
1
answer
587
views
Xamarin: Elements are cut off/not rendered in ScrollViewer
I've following situation.
<ScrollView BackgroundColor="DeepPink">
...
<Grid HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
...
-1
votes
1
answer
327
views
Scrollviewer scrollbars not showing and needs to
Why do the scrollbars not appear with the following XAML?
<Window x:Class="GridViewsToImagePocApp.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation&...
0
votes
1
answer
213
views
Nested ScrollViewer ScrollChanged in ControlTemplate
I have a ScrollViewer bound with a ControlTemplate (which works fine), a Grid inside (which overrides the default ScrollViewer and sets the ScrollBars "above" the content and finally I have ...
-2
votes
1
answer
392
views
how to make ScrollViewer of Listbox to scroll to Top every time I Load it in WPF
I have a Listbox that contains Images as items. we can select the image and it will show the image in image viewer . Now the issue is when ever I load it the scrollViewer is moving to previously ...
0
votes
1
answer
26
views
Vertical Bar in ScrollViewer (VerticalScrollBar) do not show with UserControl like Expander in WPF XAML
I have an UserControl that contains an Expander and it contains a ContentControl. But when I call the control in the MainWindow, the vertical bar of the ScrollViewer does not appear, and the content ...
1
vote
1
answer
320
views
How to scroll to the first and last visible item of a WPF data grid?
I have a single data grid control in WPF. I use PreviewKeyDown event to override Home and End events to scroll to the first and last visible item in the data grid control respectively but neither ...
0
votes
1
answer
176
views
Prevent layout below max height and width size
I've got a simple layout:
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/...
0
votes
1
answer
53
views
WPF ScrollBar not showing up on Grid
Here is my Grid, no matter what I tried I can't get the VerticalScrollBar to show up.
<Grid>
<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="...
0
votes
1
answer
150
views
UWP independent scrollviews
The idea is to have a one column with lots of elements in a scrollable listview and a second column (not scrollable) with small details. The problem is that entire page is scrolling and as a result ...
1
vote
1
answer
1k
views
How to correctly synchronize WPF Scrollviewer and Canvas on Zooming in or out on Mouse Position
I'm using the following controls in WPF (XAML) code to create a canvas:
<ScrollViewer x:Name="CanvasScrollViewer" HorizontalScrollBarVisibility="Visible" ...
0
votes
1
answer
356
views
WPF ListBox Scrolling Dilemma
I ran into kind of a dilemma with WPF's scrolling behavior in a ListBox:
When I set ScrollViewer.VerticalScrollBarVisibility="Auto" inside the ListBox, scrolling works fine. But clicking on ...
0
votes
2
answers
99
views
Can't get ScrollViewer to work within ItemsControl>WrapPanel
I have the following code:
<ItemsControl
ItemsSource="{Binding ItemsList}"
Visibility="{Binding HmiState, Converter={StaticResource IsHmiViewState}}">
<ItemsControl....
-1
votes
1
answer
844
views
How to get vertical offset from bottom to top in scrollviewer in uwp?
I want scrollviewer vertical offset from bottom to top not top to bottom in uwp because it is only showing top to bottom as I increase the height of app from top it would'n work but when I decrease ...
0
votes
1
answer
159
views
How to get scrollbar height in scrollviewer in uwp?
how to get scollbar height in scrollviewer in uwp just like shown in this photo.
0
votes
2
answers
164
views
How to use DoubleToVisibilityConverter in uwp
DoubleToVisibilityConverter can be used to easily change a double value to a Visibility based one based on a given threshold value. If both GreaterThan and LessThan are set, the converter will set the ...
0
votes
0
answers
83
views
ScrollViewer not working on user control wpf
I have a User Control 1 and a Page 1, what I'm trying to do is adding a scrollViewer to the User Control 1, but it does not working.
I would like to know what's wrong in this case?
Page 1 :
<...
0
votes
1
answer
125
views
Scrollviewer with dynamic height and menu below
I cannot find any example how to implement a scrollviewer that contains a form, with the save/cancel buttons directly underneath and not separated at the bottom of the window here is a simple layout. ...
0
votes
1
answer
1k
views
How to scroll to the new element of a ScrollViewer automatically in Avalonia?
I have a chat app on Avaloni UI. Messages are displayed in the ScrollViewer. I need to scroll the list of messages to a new message when I receive or send a message.
0
votes
0
answers
103
views
Scrollbar of Scrollviewer only appears after resizing form or using GridSplitter
I have the problem, that the vertical scroll bar doesn't appear after application start.
I fill the ListPrinterButton in code behind and set the propertyChanged event. All button are visible in the ...
1
vote
1
answer
457
views
UWP Combobox items scrolls to mid for no reason
I noticed that in a combobox which has some itemsource attached to it, when there is no selected item it tends to scroll to middle of the item instead of starting at the top (first item) and when an ...
2
votes
1
answer
195
views
ScrollViewer.MeasureOverride settings ComputerScrollbarVisibility to Collapsed before setting it to the correct value
If VerticalScrollbarVisibility of a Scrollviewer is set to Auto, the MeasureOverride method of that ScrollViewer, first sets the ComputedVerticalScrollbarVisibility to Collapsed. Only then, it ...