How to register for Scroll Event on Windows phone - windows-phone-8.1

I am working on an app on Windows phone. I want to get notified when the ScrollViewer starts scrolling.
I see some example does this:
ScrollViewer sv;
sv.OnScrollChanged += ScrollViewer_ScrollChanged;
But the problem is I think the 'OnScrollChanged' properties is not available on Windows phone.
How can I get notified when user starts scrolling on a ScrollViewer?

Windows Phone Runtime or Windows Phone Silverlight?
The Windows.UI.Xaml.ScrollViewer used in Windows Phone Runtime events exposes ViewChanging and ViewChanged events.
The Silverlight ScrollViewer doesn't expose any direct events like this, but you could try binding to the Horizontal or VerticalOffset properties

Related

System.Windows.Controls ChildWindow for Windows Phone 8.1

Is any replacement for ChildWindow from System.Windows.Controls for Windows Phone 8.1 Silverlight? I need to implement custom popup window.
Before on Windows Phone 8.0 project it was implemented in this way:
http://www.31a2ba2a-b718-11dc-8314-0800200c9a66.com/2011/06/how-to-create-childwindow-login-popup.html
You can use the Popup control and take advantage of IsOpen property of the control.

Is it possible to use Camera in Background or Hidden Mode in Windows Phone 8?

There are many ways we can access Camera in Windows Phone 8 / 8.1. Most of them launch specific UI for that.
Is there any way we can access camera without displaying anything related to camera in Windows Phone 8/8.1 ?
I want my camera to capture an image when my application opens.

Windows Phone 8 navigation

I just started developing wp8 apps coming from android. What is the equivalent UI control for an app drawer (android) to be able to quickly change from page to page? I'm looking for the control used to change from page to page in OneNote
EDIT: I found out that Windows phone 8.1 offers flyouts which can be made to look like an app drawer.
The equivalent to the android app drawer is probably the windows phone appbar, but the appbar in windows phone is not used for navigation - only settings like actions.
In windows phone, navigation is done primarily through your own interface, with heavy use of the BACK button to go to previous pages. The main class you use in windows phone is the NavigationService
I don't believe the OneNote uses standard UI components, so you would probably have to create your own
There are plenty of solid resources online that should help. Start here:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff626521(v=vs.105).aspx

Button to enable multiple display (Windows 8.1)

I'm creating a windows app for windows 8.1 tablet. And I was wondering if it was possible to create a button within the app that will enable me to turn on and off the external display connected to the tablet. Similar to a computer when a projector is connected, a user must press a key in order to show or turn off the display on the projector.
Instead of swiping on the right edge and choosing devices and selecting the multiple display. I want to be able to do this within the app with a press of a single button to enable and disable the multiple display function. Is this possible to do?
Here's an sample from Windows 8.1 SDK that might guide you through the implementation:
http://code.msdn.microsoft.com/windowsapps/Multiple-Views-Sample-2582fcf3

Tap vs swipe event on Windows Phone 8

I'm developing an app for WP8, and I'm having some issues...
When I slide/swipe/scroll my LongListBox in the emulator, the Tap event gets triggered!
How can I differentiate between a tap and a swipe gesture?
This can also be to do with bubbling of events. In Windows Phone this can be easily handled using the IsHitTestVisible property.
It could be a bug with the emulator.
You could always just check for the events when releasing, rather than relying on gestures, so that you can determine if they indeed tapped or swiped.
Alternatively, have someone test for you on Windows 8 to see if it's an actual issue with the emulator.