scrollviewer

Scrolling is disabled/limited when keyboard is popped up in Windows Phone 7.5

北战南征 提交于 2019-12-24 10:49:49
问题 Based on the link scrollviewer to scroll to textbox position I tried to resolve scrolling issue when keyboard is launched but there is a problem in landscape mode. Problem in using (App.Current as App).RootFrame.RenderTransform = new CompositeTransform(); in landscape mode. Above solution helped me to generate a behaviour similar to New Appointment page as in the default calendar app for windows phone 7.5. But this (App.Current as App).RootFrame.RenderTransform = new CompositeTransform();does

Programmatically adding content to scrollviewer, scrollbar stops working

折月煮酒 提交于 2019-12-24 06:27:59
问题 Ok, so I am not that versed in the mighty WPF, but I attempted an interesting project to jump into it. I have made a simple RSS/ATOM feed viewer that pulls the HTML out of and RRS or ATOM feed and sticks it in a Browser control which is added to a stack panel... which is the content of a ScrollViewer. Whew. Anyways the problem is, I am doing this all in the code behind and have found that the ScrollViewer doesn't work, or isn't recognizing the size of the content, so there is no scrolling. I

Enable swipe scrolling on Textbox control in WPF Scrollviewer

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 03:37:10
问题 We are developing a touch application in WPF. Our ScrollViewers have the property PanningMode set to Both to enable swipe scrolling. This works fine when swiping in empty areas and even on CheckBox and ComboBox controls. However when swiping on a TextBox (hold the finger briefly on the textbox and move it up or down), the ScrollViewer doesn't scroll. Is there a way to enable swipe-scrolling on all controls and only focus them on tap? This behaviour can be reproduced with the following code:

Get Width Available for Children in a Scrollviewer

时光毁灭记忆、已成空白 提交于 2019-12-23 23:47:36
问题 How do I get the width available for the children of a scroll viewer in XAML? Thanks. 回答1: There's no direct way of doing this that I know of, since WPF automatically passes the available space in to the child controls' Measure() function so that they size to fit the available space. Note that, by default, it passes in infinity for the vertical direction, since content can scroll forever vertically. You can change the visibility of the scroll bars in both the vertical and horizontal direction

WPF ScrollViewer: tap=click, tap-and-hold/drag=scroll. How to achieve this?

拟墨画扇 提交于 2019-12-23 09:23:47
问题 I'm developping a WPF touch application. I have a scrollviewer containing buttons. I want to scroll the display when I touch-drag the buttons, and call the button's command when I tap. Here's some code to get started: <Window x:Class="wpf_Button_Scroll.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:my="clr-namespace:wpf_Button_Scroll" Title="MainWindow" Height="350" Width="200"> <Window.DataContext>

Tablet WPF Windows Desktop Application - Scrolling issue

∥☆過路亽.° 提交于 2019-12-23 08:58:10
问题 I'm running my desktop application WPF on tablet ASUS ME400 Intel Atom Z2760. All working properly, but when I use scrollviewer, scroll movement with finger (abilitate panning mode horizontalOnly) at the end of scroll with finger, the window moves and you see the taskbar for a moment. The effect is not seen if I scroll with my finger, did not arrive until founded in the scrollbar. How i can avoid this window movement? How I can lock my windows and do not permit to move when I scroll at the

Silverlight Vertical only ScrollViewer?

无人久伴 提交于 2019-12-23 07:19:28
问题 Is there a way to create a ScrollViewer which only allows content to scroll vertically? The horizontal (width) must be constrained in the same manner as a StackPanel's width is constrained to its parent (when HorizontalAlignment=Stretch). I have a resizable window which contains content I want to allow to scroll vertically. The window contains a ScrollViewer. Inside there is a lot of TextBoxs (a data entry form). When I type lots of text in a TextBox, the control just keeps growing to the

horizontal listbox that could be infinite circle scrolling

空扰寡人 提交于 2019-12-23 05:25:06
问题 I would like to make a horizontal listbox that could be infinite scrolling (looping listbox/scrollviewer, or circular listbox/scrollviewer), means that when I scroll to its end, its would scroll over from beginning. I have tried to make the listbox horizontal, but it wouldn't scroll so I put it inside a scrollviewer to have it scroll horizontally. However it's not the listbox that scroll and I need them somehow to scroll over from beginning. This is what I have so far: private void

WPF Scrollviewer DesiredSize does not increase when ScrollBar gets Visible

試著忘記壹切 提交于 2019-12-23 04:59:10
问题 I have a WPF UserControl (inside an ElementHost ) with a ScrollViewer that contains an ItemsControl . The HorizontalScrollbarVisibility is set to Auto , so if no scrolling is necessary, the ScrollBar gets hidden. My requirement is, that if the ScrollBar gets shown/hidden, the ElementHost does adjust it's height accordingly. To achieve that, I'm listening to the SizeChanged event, I get the DesiredSize of the ScrollViewer in the EventHandler , then I pass DesiredSize.Height to the ElementHost

when keyboard is show, scrolling is limited

痴心易碎 提交于 2019-12-23 04:41:23
问题 I have a problem with scrolling in windows phone. I have a lot of elements on page so to add ability to scroll I put this on ScrollViewer. Hovewer, when I foucesd on some text block and the keyborad shows up, the scroll in working but it cuts the top and bottom of the page so it's can't be reach by user. Have you had similar problem with your apps and know how to fix this ? I wil be really grateful for any help Link to image when I put screenshot with my problem The picture contains four