1,182 questions
-1
votes
1
answer
95
views
Using Scrollviewer on UniformGrid
I'm struggling a lot finding a solution to my problem. I can't understand why my view is breaking as soon as I wrap it inside a scrollviewer.
The layout idea is the following:
<ScrollViewer>
...
0
votes
0
answers
34
views
Scroll the parent container inside of a DataGrid
I have this custom DataGrid. What I want to achieve is, when the user has the mouse inside of the DataGrid (which does not have max height), it should allow to scroll the whole parent component inside ...
0
votes
1
answer
36
views
WPF: In custom scroll viewer, vertical scroll bar is thicker than horizontal scroll bar
I am using WPF for an application. In the XAML code, I have defined the width & height of both horizontal scroll bar and vertical scroll bar. However, the vertical scroll bar is still thicker than ...
0
votes
0
answers
67
views
Custom DataGrid template column with ListView in ListView - ScrollViewer resize issue
I am currently developing a control that has a DataGrid as the main parent and one of the columns is a listview which has another listview inside.
I am trying to re-evaluate the scroll content when I ...
0
votes
0
answers
113
views
WPF datagrid shows horizontal scroll bar when the actual width of datagrid equals to the sum of actual width of all columns' actual width
I run into the problem as the title says. I have datagrid inside a scroll viewer in a wpf window. I tried using tools like Snoop to see the actual width of the datagrid and the actual width of each ...
1
vote
1
answer
55
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
1
answer
90
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 ...
1
vote
0
answers
52
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 ...
0
votes
1
answer
41
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
2
answers
95
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
0
answers
90
views
WPF ListView doesn't stick anymore
I have a fairly simple ListView:
<ListView DockPanel.Dock="Bottom"
HorizontalContentAlignment="Stretch"
SelectedItem="{Binding SelectedItem}"
...
0
votes
1
answer
1k
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&...
0
votes
1
answer
308
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....
0
votes
1
answer
858
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. ...
0
votes
1
answer
212
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
261
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 ...
-1
votes
1
answer
463
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&...
-2
votes
1
answer
681
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 ...
1
vote
1
answer
497
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
70
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="...
1
vote
1
answer
2k
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
2
answers
209
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....
0
votes
1
answer
219
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
0
answers
87
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
2k
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.