scrollviewer

when keyboard is show, scrolling is limited

一个人想着一个人 提交于 2019-12-23 04:41:22
问题 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

Scrollviewer & Canvas

流过昼夜 提交于 2019-12-23 02:59:29
问题 I am trying to load an image within a canvas such that, if the size of image overflows the canvas, the scroll bars should get activated (MS Paint style) <Window> <ScrollViewer> <Canvas ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible"> <Image Source="SampleImage.jpg" /> </Canvas> </ScrollViewer> </Window> Now as Canvas is stretched to Window 's size, scroll-bars won't appear as Canvas is not actually overflowing out of the Window .

Detect end of ScrollView programatically in Silverlight?

Deadly 提交于 2019-12-23 02:59:06
问题 I am new to WPF and I am having some issues with this. I have a ScrollView and a RepeatButton. I want to disable the RepeatButton programatically when the ScrollView has moved all the way left or all the way right. Is there an easy way to do this in Silverlight? I found this page: http://msdn.microsoft.com/en-us/library/system.windows.controls.scrollviewer.scrollchanged.aspx and was thinking of adding an event listener for this, but I don't know if that is the best way to tackle the problem.

Changing the width of a vertical scrollbar

只谈情不闲聊 提交于 2019-12-22 12:25:11
问题 in my Silverlight 4 application, I have a ScrollViewer. I want to change the width of the vertical Scrollbar of the Scrollviewer, to make it a bit thinner. I have searched for a simple solution, but I do not need/want to restyle the whole Scrollbar. I was thinking about something like: MyScrollViewer.VerticalScrollbar.Width = 8; But there is no such Property. Any idea, how to make the scroll bar thinner? Thanks in advance, Frank 回答1: There is no direct way of getting the vertical scrollbar of

Windows phone - Avoid scrolling of Web browser control placed inside scroll viewer

↘锁芯ラ 提交于 2019-12-22 11:25:02
问题 I have to show a web browser inside a scroll viewer in windows phone application, with these requirements : Web browser height should be adjusted based on its content . Web browser scrolling should be disabled , ( when user scrolls within web browser, scrolling of scroll viewer should take place ) Web browser can do pinch-zoom and navigate to links inside its content. How can I implement that? Any links or samples is greatly appreciated. 回答1: I'm using code like this. Attach events to the

C# wpf scrollviewer not working like windows store app

亡梦爱人 提交于 2019-12-22 08:59:36
问题 I'm currently working on an application using WPF. And I can't but help to notice the difference in ScrollViewer functionality compared to the Windows Store App variant. When I'm at the edge of the screen and the edge of a ScrollViewer and I want to slide so that I'd move away from the edge. I see the windows desktop or menubar (when at the bottom of the screen). Is there a solution to prevent this scroll behaviour from happening? It is rather annoying (and ugly!) when your scrolling till the

After rebinding Silverlight Listbox control how do you get it listbox to scroll to back to the top?

这一生的挚爱 提交于 2019-12-22 08:14:10
问题 I have a silverlight listbox that is being used as a search result box. I'm using dynamic searching (keyups in the search box cause the events to fire to filter this list box's contents). The issue I'm running into is if the user scrolls down when the box is unfiltered, then does the search, the rebinding of the listbox does not cause the scroll to go back up to the top making the results look like there is only one value in it. the code I have so far for the listbox is this (This is a

Correct way to set ScrollViewer (for vertical scrolling) on a WPF Frame?

亡梦爱人 提交于 2019-12-22 03:15:09
问题 does anyone know the difference between defining a vertical scrollbar on a frame like this: <ScrollViewer Grid.Row="2" VerticalScrollBarVisibility="Auto"> <Frame Name="Frame1" ScrollViewer.CanContentScroll="True" /> </ScrollViewer> or like this: <ScrollViewer Grid.Row="2"> <Frame Name="Frame1" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.CanContentScroll="True" /> </ScrollViewer> This frame is nested in a WebBrowser control and setting it the first way correctly displays the

XAML: make a ScrollViewer show scrollbars when the ScaleTransform of a child object gets big

天大地大妈咪最大 提交于 2019-12-21 12:32:33
问题 I am making a sort of "print preview" control for some documents in my Silverlight 3 application. I have a Canvas (for showing the document) inside of a ScrollViewer, and I have zoom in / zoom out buttons that control the X and Y Scale properties of the ScaleTransform for the Canvas.RenderTransform property. I want the scrollbars of the ScrollViewer to show up when I "zoom in" enough such that the canvas is no longer visible in the ScrollViewer area, but it seems that they only show up

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

放肆的年华 提交于 2019-12-20 23:47:20
问题 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. 回答1: The "get_pageTranslation" is actually the "PageTranslation" property on the