WPF ListBox with a ListBox – UI Virtualization and Scrolling

It is possible to achieve smooth scrolling VirtualizingStackPanels in WPF 4.0 without sacrificing virtualization if you’re prepared to use reflection to access private functionality of the VirtualizingStackPanel. All you have to do is set the private IsPixelBased property of the VirtualizingStackPanel to true. Note that in .Net 4.5 there’s no need for this hack as … Read more

Disable mouse wheel integration in Android emulator

To expand on the accepted answer: While your emulator is running, you should have a narrow panel next to it with buttons for rotating the screen etc. At the bottom of this is an overflow menu which takes you to “extended controls”. The Settings page in here contains the fabled “Disable mouse wheel” switch. This … Read more

how to automatically scroll down a html page?

You can use .scrollIntoView() for this. It will bring a specific element into the viewport. Example: document.getElementById( ‘bottom’ ).scrollIntoView(); Demo: http://jsfiddle.net/ThinkingStiff/DG8yR/ Script: function top() { document.getElementById( ‘top’ ).scrollIntoView(); }; function bottom() { document.getElementById( ‘bottom’ ).scrollIntoView(); window.setTimeout( function () { top(); }, 2000 ); }; bottom(); HTML: <div id=”top”>top</div> <div id=”bottom”>bottom</div> CSS: #top { border: 1px … Read more

Selenium webdriver can’t click on a link outside the page

It is actually possible to scroll automatically to element. Although this is not a good solution in this case (there must be a way to get it working without scrolling) I will post it as a workaround. I hope someone will come up with better idea… public void scrollAndClick(By by) { WebElement element = driver.findElement(by); … Read more

How can I hide an element when the page is scrolled?

A basic directive would look like this. One key point is you’ll need to call scope.$apply() since scroll will run outside of the normal digest cycle. app = angular.module(‘myApp’, []); app.directive(“scroll”, function ($window) { return function(scope, element, attrs) { angular.element($window).bind(“scroll”, function() { scope.visible = false; scope.$apply(); }); }; }); I found this jsfiddle which demonstrates … Read more

Custom Scrollbar for iPhone’s UIView (Making Long Scrolls Not Suck)

A general idea: I grabbed the dropbox app (it is awesome) and played around with a bit. It looks like pdf viewing takes a bit from the photo app in that it conditionally displays a translucent navbar and toolbar on touches, in addition to supporting the scrollbar. I’m pretty sure what’s going on is that … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)