scrollviewer

WPF - ScrollView Confusion

孤人 提交于 2021-02-19 02:36:33
问题 I am new to WPF and the ScrollViewer is frustrating me. Either I just don't "get" it, or it is a limited control. Here are my Frustrations: Bad Horizontal Scrolling The horizontal scroll bar is only visible at the bottom of the list (I have to scroll to the bottom to see it) Bad Borders I have a ListBox in my ScrollViewer. When I start the bottom of the list has no border and when I scroll down, the top border (line) of the list box disappears. I can kind of understand this, but attempts to

WPF Datagrid virtualization getting disabled when placed in a scrollviewer

╄→尐↘猪︶ㄣ 提交于 2021-01-29 06:11:42
问题 I have a scenario where in I am using two datagrids basically to achieve grouping as shown below. For achieving synchronized scrolling between two grids I am using a scrollviewer. Using scroll viewer is disabling the virtualization and loading data in datagrids is getting affected drastically. below is the sample code I am using. Any suggestions whould be of gr8 help. <Grid Name="Test" Background="White"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> <ColumnDefinition Width="*" /> <

ScrollViewer.ScrollToBottom not completely scrolling

限于喜欢 提交于 2021-01-29 02:56:18
问题 I have created a WPF Control that will allow users of the application I'm developing to easily select a SQL Server in which to connect. On the control, there are three different categories of SQL Servers: Local, Recent, and More Servers on Network. Local : The SQL Server instance on the machine in which the application is running. Recent : SQL Servers instances the user has connected to recently. More Servers on Network : SQL Server instances that are discovered by sending out a search

Disable the vertical scroll-behavior of the scrollviewer in windows phone

吃可爱长大的小学妹 提交于 2021-01-27 05:44:43
问题 I am using a scrollviewer to show some buttons displayed horizontally, I can use the scrollviewer to scroll from left to right, and visa versa. But the user can still drag and scroll downward, though the scrollViewer wil scroll back to the top automatically. This provides a bad UX, thus I want to disable the vertical scroll-behavior of the scrollviewer, user can just scroll horizontally. any thoughts? thanks. <ScrollViewer Grid.Row="2" HorizontalScrollBarVisibility="Hidden" Width="auto"

WPF accessing scrollviewer of a listview codebehind

♀尐吖头ヾ 提交于 2021-01-27 05:27:33
问题 I need to access the scrollviewer of a listview from the codebehind. here is the definition of my listview <ListView Grid.Row="1" ItemsSource="{Binding Path=SpecList, UpdateSourceTrigger=PropertyChanged}" Name="mylistview" ItemTemplate="{StaticResource SpecElementTemplate}" Background="{StaticResource EnvLayout}" ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Disabled" ItemContainerStyle="{StaticResource MyStyle}" BorderBrush="Blue"

WPF accessing scrollviewer of a listview codebehind

这一生的挚爱 提交于 2021-01-27 05:27:19
问题 I need to access the scrollviewer of a listview from the codebehind. here is the definition of my listview <ListView Grid.Row="1" ItemsSource="{Binding Path=SpecList, UpdateSourceTrigger=PropertyChanged}" Name="mylistview" ItemTemplate="{StaticResource SpecElementTemplate}" Background="{StaticResource EnvLayout}" ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Disabled" ItemContainerStyle="{StaticResource MyStyle}" BorderBrush="Blue"

WPF accessing scrollviewer of a listview codebehind

不打扰是莪最后的温柔 提交于 2021-01-27 05:27:08
问题 I need to access the scrollviewer of a listview from the codebehind. here is the definition of my listview <ListView Grid.Row="1" ItemsSource="{Binding Path=SpecList, UpdateSourceTrigger=PropertyChanged}" Name="mylistview" ItemTemplate="{StaticResource SpecElementTemplate}" Background="{StaticResource EnvLayout}" ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Disabled" ItemContainerStyle="{StaticResource MyStyle}" BorderBrush="Blue"