scrollviewer

Silveright ScrollViewer with Image and ScaleTransform

对着背影说爱祢 提交于 2020-01-02 20:43:06
问题 I have the following xaml. <ScrollViewer HorizontalAlignment="Stretch" Margin="107,0,0,0" Name="scrollViewer1" VerticalAlignment="Stretch" HorizontalScrollBarVisibility="Visible"> <Image Name="image1" Stretch="None" MouseWheel="image1_MouseWheel" RenderTransformOrigin="0,0"> </Image> </ScrollViewer> An the following code behind. // initialise. private TransformGroup group = new TransformGroup(); private ScaleTransform st = new ScaleTransform(); group.Children.Add(st); image1.RenderTransform =

Triggering on a ScrollViewer's scroll bar visibility (WPF)

╄→гoц情女王★ 提交于 2020-01-02 00:47:50
问题 Is it possible to create a Trigger that is triggered based on a ScrollViewer 's scroll bar visibility? I have a ScrollViewer with its VerticalScrollBarVisibility set to Auto and I want to change some of the ScrollViewer 's properties only when the scroll bar is actually visible. Something like this: <ScrollViewer VerticalScrollBarVisibility="Auto"> <ScrollViewer.Triggers> <Trigger Property="IsScrollBarVisible" Value="True"> <!-- Setters --> </Trigger> </ScrollViewer.Triggers> </ScrollViewer>

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

我们两清 提交于 2020-01-01 06:55:30
问题 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

Can't fully style a ListBox/Scrollviewer in WPF

北城以北 提交于 2019-12-30 08:04:55
问题 I'm using custom Scrollbars we created using standard ControlTemplates, however when I apply them to a ListBox there is a corner in the bottom right which I am unable to find any way to override. Unfortunately I can't post a picture until I get more points. But the corner I'm referring to is when both a vertical and horizontal scrollbar appear, there is a space in the bottom right that is filled with an off-white color that I am unable to ovrerride 回答1: this is the part of the template code i

Can't fully style a ListBox/Scrollviewer in WPF

我是研究僧i 提交于 2019-12-30 08:04:24
问题 I'm using custom Scrollbars we created using standard ControlTemplates, however when I apply them to a ListBox there is a corner in the bottom right which I am unable to find any way to override. Unfortunately I can't post a picture until I get more points. But the corner I'm referring to is when both a vertical and horizontal scrollbar appear, there is a space in the bottom right that is filled with an off-white color that I am unable to ovrerride 回答1: this is the part of the template code i

Calculate Horizontal Offset to scroll ListView to the center of the SelectedItem

为君一笑 提交于 2019-12-30 01:35:15
问题 I am building a photo application, using a FlipView and a listView as a Pagination. When I click on the thumbnail picture in the ListView it shows me the same picture in the FlipView . And when I swipe into the FlipView , any photo selected will select the same picture in the ListView . This is done by adding to both of them: To the ListView : SelectedIndex="{Binding Path=SelectedIndex, ElementName=flipView1, Mode=TwoWay} And to the FlipView : SelectedIndex="{Binding Path=SelectedIndex,

WPF ScrollViewer around DataGrid affects column width

拈花ヽ惹草 提交于 2019-12-28 04:07:08
问题 I have a problem with a ScrollViewer that I use to scroll a user control that contains a data grid. Without the scroll viewer the columns fill the data grid as I want but when adding a scroll viewer the columns shrink to ~15px. I was able to simplify my layout and can still reproduce this behaviour. When binding the datagrid width to another control the columns have their normal with, but that has unsuprisingly the same effect as a fixed width on the datagrid. I guess I'm not the first one

ScrollViewer reaching bottom WindowsPhone8

£可爱£侵袭症+ 提交于 2019-12-25 16:09:38
问题 Im trying to open a App-Bar when the user reaches the end of the (ScrollViewer)Page... Therefore I need a indicator when the end is reached... My Scrollviewer (maybe because WP8) has no "ViewChanged"-event like posted in other questions And this solution is just overkill for my Problem I think: http://blogs.msdn.com/b/slmperf/archive/2011/06/30/windows-phone-mango-change-listbox-how-to-detect-compression-end-of-scroll-states.aspx I cant find any event within this Viewer which could help me...

How to prevent ScrollViewer from using MouseWheel event

倾然丶 夕夏残阳落幕 提交于 2019-12-25 04:39:30
问题 I'm building SL application for zooming and panning across the layout. Everything is working fine, except that when I zoom in using mouse wheel , after some zoom scrollbars start to use mouse wheel so after that I can scroll not zoom. I only can zoom again if I put scrollbars at the end or begining. How to prevent scrollviewer from using mouse wheel? I want that zoom only be operated by wheel. Thank you in advance! Here is my code of MouseWheel method when I'm zooming content : protected

Keep element in view while scrolling

天大地大妈咪最大 提交于 2019-12-24 13:44:08
问题 Simpel question, I have a windows phone page that contains a scrollviewer with inside it an image , a textblock and a richtextbox . Now when the user starts scrolling I want to keep the textblock in view on top when the image has scrolled outside the page. So the effect is, user starts scrolling upwards, everything scrolls upwards, when the image is outside the page, the textblock stays at the top of the page but the richtextbox keeps scrolling upwards. Any thoughts? 回答1: Here is a way to