scrollviewer

How to determine when the scrollviewer has ended scrolling?

纵然是瞬间 提交于 2019-12-12 19:17:26
问题 I need to adjust the scrollviewer to some point after the users has completed scrolling. For that i need to get to listen to when the scrolling has ended. iOS's UIScrollView has some similar methods - (void)scrollViewDidEndScrollingAnimation:(UIScrollView *)scrollView that is called when the scrollview - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView - (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate I tried ViewChanging and ViewChanged

Scrollviewer doesnt show data when its beyond parent window in wpf

☆樱花仙子☆ 提交于 2019-12-12 04:56:08
问题 There are some 6 contentcontrols within a single grid with 6 expanders(each contentcontrol in one expander) on my mainwindow which calls various usercontrols to fill the mainwindow for each upper tab/left menu selection. One expander would be active at a time and rest would be collapsed. Each new window would be on a contentcontrol. The problem was when i have larger data thats loading dynamically my content exceeds beyond the parent control and even when i use scrollviewer ,scrollviewer

Wpf binding to a function

雨燕双飞 提交于 2019-12-12 04:23:26
问题 I've a created a simple scrollviewer (pnlDayScroller) and want to have a separate horizontal scrollbar (associated scroller) to do the horizontal scrolling. All works with the below code accept I need to bind the visibility of the associated scroller. I can't simply bind this to the visibility property of the horizontal template part of the scroll viewer as I've set this to be always hidden. The only way I can think to do this is to bind the visibility of the associated scroller to a function

How to get the ScrollViewer to scroll after statically set index containing List inside?

寵の児 提交于 2019-12-12 01:37:27
问题 I am using Silverlight 5 and C# to create a scroll bar. I am have ListBox and I create a scrollbar and inside that scrollbar I display a List of items like this: (My code shows all the 7 items but I just want to display 3 items without scrolling rest 4 by scrolling) TextBlock txtblkShowStatus = null; ListBox lines = new ListBox(); ScrollViewer scrollViewer = new ScrollViewer(); scrollViewer.VerticalScrollBarVisibility = ScrollBarVisibility.Visible; lines.ItemsSource = param.Component

wp7, How to block scrolling in ScrollViewer

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 01:34:33
问题 I wont to move UIElements in ScrollViewer. I have somthink like this: <ScrollViewer x:Name="scroll"> <Canvas x:Name="sheet" Width="480" Height="10000"> <Rectangle Canvas.Left="51" Canvas.Top="116" Height="114" Width="337"/> </Canvas> </ScrollViewer> I move the rectangle using ManipulationDelta event. However when I do it the scrollViewer scrolls as well. How to lock scrolling of ScrollViewer? that code doesn't help at all. ScrollBarVisibility.Disabled; I've lost 3 days to find solution and I

ScrollViewer keeps snapping back to top

对着背影说爱祢 提交于 2019-12-11 19:29:25
问题 So I have this user control that contains a ListView, wrapped by a ScrollViewer. I set up my layout in the DataTemplate and it's displaying fine, but when you try to scroll down, it just snaps back to the top; it won't hold its position. Here is the xaml: <Border BorderThickness="1" BorderBrush="Black" Grid.Column="0" Grid.Row="0" Grid.RowSpan="2" Height="80" Width="80" VerticalAlignment="Top"> <Rectangle> <Rectangle.Fill> <ImageBrush Stretch="Fill" ImageSource="{Binding ImageUri}"/> <

Make scrollbar fade in / out

两盒软妹~` 提交于 2019-12-11 19:27:58
问题 I set my scroll bar to be hidden when you are not over the ScrollViewer and only shows when you hover over This is the code I am using - it works great <ControlTemplate.Triggers> <Trigger Property="IsMouseOver" Value="False"> <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden"/> </Trigger> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Visible"/> </Trigger> </ControlTemplate.Triggers> My question is, how

Pinch to Zoom on ListBox on windows phone 7

谁都会走 提交于 2019-12-11 18:48:51
问题 I am trying to add pinch to zoom feature to a data bound ListBox. What is the most efficient way to do this? I have placed the ListBox inside a Grid control and made it scrollable. This is my current code. <Grid x:Name="ContentPanel" Grid.Row="1" Margin="10,0,10,10" Background="Black" > <ListBox Name="lstText" FontSize="24" Foreground="White" SelectionMode="Single" Margin="10,0,10,10" ScrollViewer.VerticalScrollBarVisibility="Visible" > <ListBox.ItemTemplate> <DataTemplate> <StackPanel >

WPF: How to prevent scrollbar from overlaying headers in list type views

浪子不回头ぞ 提交于 2019-12-11 15:55:24
问题 I have made a ScrollViewer style which is designed to show scrollbars overlaying the scrollable content. I produced it based on other stackoverflow posts such as this. The difference between a lot of other scenarios and MY scenario, is that I am applying my scrollviewer style to a ListView which includes a header. Generally, users would expect a scrollviewer to not overlay the headers as in my image below. (I've highlighted the bar in orange to make it more obvious) (The bar should stop

Infinite Scrolling - Windows Phone 7/8

梦想与她 提交于 2019-12-11 11:46:58
问题 I'm trying to implement the "infinite scrolling" within a Windows Phone 7.1 project. Most other posts point to this MSDN Blog link. I'm struggling to implement this though, because it doesn't really give much away as to how it works or where to put the code. Also, when I paste the code, it appears to have spaces missing, so I have been through the code and added missing spaces and editing it to the best of my knowledge. I have added the XAML code to the <Application.Resources> of the App.xaml