scrollviewer

Windows phone 7 scrollviewer problem

戏子无情 提交于 2019-12-04 01:30:15
I am not able to scroll through the page in wp7 . eventhough i have added scrollview it still doesnt work. <phone:PhoneApplicationPage xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="860" x

How to put image “placemarkers” inside a scrollbar in WPF?

本秂侑毒 提交于 2019-12-04 01:25:20
I have a long Scroll Viewer and I want to mark important spots with small images on the scroll bar. If the the image is clicked the scroll bar will jump to the corresponding content. I've seen this functionality in a few applications such as Eclipse and Chrome and was wondering how to reproduce it with WPF. japf Short answer is "change the template of the ScrollBar". Long answer is... That I would add an ItemsControl in the template of the ScrollBar control. I would put this ItemsControl on top of the template with its IsHitTestVisible set to false so that it does not capture mouse events.

how best to create a single scrollable view in famo.us?

。_饼干妹妹 提交于 2019-12-03 17:29:12
Famo.us has a "Scrollview" but it only scrolls if you have multiple surfaces inside it. I would like a single long page of text, but this doesn't respond to scrolling. Given that famo.us deliberately overrides normal native scrolling views ( https://github.com/Famous/views/issues/45 ), what is the best method to get famous to scroll a long page of content? I'm considering breaking all the content html apart (eg div by div), and adding a bunch of surfaces into a normal scrollview. this may work for some simple content but would be complex for anything non-trivial - JS would have to parse the

WPF detect scrolling parent Control

荒凉一梦 提交于 2019-12-03 12:39:28
Imagine the situation you open a WPF Popup (e.g. through ButtonClick ). You have a ListBox directly in the Popup with some items, so you have to be able to scroll. Imagine that this is your Custom Control and it's located in the ScrollViewer . Now if you move with your mouse outside from the Popup surface and scroll, what happens? You scroll up and down but with the Popup opened ! And that's the problem. The question is, how to detect from inside the Control, that some other unknown Parent Control in the VisualTree has started to scroll ? and consecutively set IsDropDownOpen = false ? We can

How can I make the Silverlight ScrollViewer scroll to show a child control with focus?

喜夏-厌秋 提交于 2019-12-03 11:51:01
问题 I have a ScrollViewer which contains a Grid with multiple controls in it. The user can tab through the controls, but eventually they tab to a control that isn't in view - so they have to manully scroll to make the control visible again. Is there any way to make the ScrollViewer scroll automatically so that the focussed control is always visible. Failing that, is there any way I can make this work, short of listening to a GotFocus event on every control and then scrolling the ScrollViewer to

How can I make WPF ScrollViewer middle-click-scroll?

回眸只為那壹抹淺笑 提交于 2019-12-03 11:09:32
Clicking the middle mouse button (aka: mouse wheel) and then moving the mouse down slightly lets users scroll in IE, and most Windows apps. This behavior appears to be missing in WPF controls by default? Is there a setting, a workaround, or something obvious that I'm missing? I have found how to achieve this using 3 mouse events ( MouseDown , MouseUp , MouseMove ). Their handlers are attached to the ScrollViewer element in the xaml below: <Grid> <ScrollViewer MouseDown="ScrollViewer_MouseDown" MouseUp="ScrollViewer_MouseUp" MouseMove="ScrollViewer_MouseMove"> <StackPanel x:Name=

Touch Scrolling ScrollViewer in WPF App with RealTimeStylus Disabled

泪湿孤枕 提交于 2019-12-03 09:34:39
We are working on a WPF 4.5 application that will be run on Windows 8 computers with touchscreen monitors. We have disabled support for the RealTimeStylus following the directions on the MSDN , since we have some views that need multitouch support through WM_TOUCH. The problem is that disabling the RealTimeStylus support seems to also disable the user's ability to scroll a ScrollViewer using touch - normally the user can pan around ScrollViewers with their fingers, but if RealTimeStylus support is disabled, it does not seem possible to do this. The ScrollViewer's PanningMode is set to "Both".

How can I make a Windows 8 Metro scrollviewer respond to mousewheel?

久未见 提交于 2019-12-03 07:13:45
I'm currently writing an app for Windows 8 using Metro and C#. In my app I use a combination of scrollviewer and gridview to show my data. My problem is however, how can I make it scrollable with a mouse wheel? In my searching I found MouseWheelParameters located in System.Windows.Input, but when I try to use the get_pageTranslation, it gives an error stating I can't explicitly use the get method. The "get_pageTranslation" is actually the " PageTranslation " property on the MouseWheelParameters, you access it by saying: wheelParameters.PageTranslation this: get_PageTranslation() is the name of

How to enable horizontal scrolling with mouse?

我们两清 提交于 2019-12-03 06:01:26
问题 I cannot determine how to scroll horizontally using the mouse wheel. Vertical scrolling works well automatically, but I need to scroll my content horizontally. My code looks like this: <ListBox x:Name="receiptList" Margin="5,0" Grid.Row="1" ItemTemplate="{StaticResource receiptListItemDataTemplate}" ItemsSource="{Binding OpenReceipts}" ScrollViewer.VerticalScrollBarVisibility="Disabled"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Horizontal" ScrollViewer

How can I make the Silverlight ScrollViewer scroll to show a child control with focus?

不羁岁月 提交于 2019-12-03 03:12:24
I have a ScrollViewer which contains a Grid with multiple controls in it. The user can tab through the controls, but eventually they tab to a control that isn't in view - so they have to manully scroll to make the control visible again. Is there any way to make the ScrollViewer scroll automatically so that the focussed control is always visible. Failing that, is there any way I can make this work, short of listening to a GotFocus event on every control and then scrolling the ScrollViewer to make the control visible? At present I'm using Silverlight 2. I tested this using Silverlight 3. I am