Windows Phone 8 ApplicationBar button long-tap event [duplicate] - windows-phone-8

This question already has an answer here:
Windows Phone 8 Application Bar Button Long Tap Event
(1 answer)
Closed 9 years ago.
I'm trying to create a music player in my Windows Phone 8 application. I want to use same ApplicationBar buttons for Next and Forward as well as Previous and Backward functions.
Is there any chance to get long-tap event of an ApplicationBar button(?) so that I can differentiate Next/Forward functions.
Can anyone help me with this?

This is not possible. The ApplicationBar API is quite restrictive, which is a deliberate move by Microsoft to ensure consistency. You cannot handle arbitrary events from the ApplicationBar. If you want this kind of behaviour, you will have to build your own UI to support it.
It is worth noting that your users will not expect 'long press' (more commonly referred to as tap-and-hold) behaviour on the app-bar.

The ApplicationBar buttons only support a click event. It is not possible to detect a "long-tap".
As the ApplicationBar support up to 4 buttons you could use separate buttons. Alternatively create buttons on the actual page for this functionality. Then you can have as many as you want. (See Nokia Music, Last.FM or Pandora for examples of other music apps that have put buttons on the page.)

Related

Loading screen Windows phone 8

I want to change default loading screen when i navigate between pages on WP8 app but I don't know how to do it.
Thank you
So there is many ways of doing it and you need to address what exactly is your best solution.
So the splash screen is the first place to start, here you can specify images that should be used upon start the app. It is also possible to introduce animations.
Your case (As far as I understand) is referring to navigation in-app. Again here I assume you use Silverlight, and not Win-RT?
For this you can create either popups or change the PhoneApplicationFrame. Popups can be displayed across pages during navigation. This however has the issue with memory leak and low performance, because of the popup implementation in WP.
I would therefore go with changing the PhoneApplicationFrame, you can follow this: Specify Popup location, throughout page navigation
Very little information about you app, but maybe this will help:How to create a custom indeterminate progress bar for Windows Phone 8

Windows phone 8 morse keyboard

I'm trying to develop my own app for windows phone 8, its an app to help visually impaired people text. I'm only starting off and im struggling to find stuff on how to create my own input method using a button so if the user taps or slides their finger on the screen it would print a letter into a text-box. Does anyone know if its even possible or any website to guide me in this task. thanks and any help would be much appreciated.
It is possible. Every UIElement has something like ManipulationStarted, ManipulationDelta and ManipulationCompleted events. You can play with them very well. Of course you need to program your own functions to recognize letters and so on.
You can read some information about that: http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff426933(v=vs.105).aspx
I think you can find more articles if you search those events.

Windows phone 8 apps - Image swiping

I have to Swipe the images in windows phone 8 apps without any Panorama or Pivot control.
I am using the Flick event for the swiping images. Images changing perfectly. But animation is not applied which means swiping animation is not coming.
Please suggest us.
There are several possible solutions, depending on the 'what' animation you want to see.
But a good solution can be found here...
The principle is easy, create a pivot control but manipulate it's content by plugging in into the pivot events.

How do you turn on the camera flash without taking pictures? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
wp8 - Reflection API issue - Please check
I know you can control the camera flash but that only seems to actually turn on the flash when you take a picture or record video. I also found one other way to turn it on by focusing the camera.
Is there a way to turn the LED flash on without either of these battery intensive hacks?
Yep, it's possible to do that on WP8 using public APIs, please see my answer # Reflection failure when attempting to access Microsoft.Phone.Media.Extended
There's also a way to do that for WP7, see # http://www.locked.nl/wp7-flashlight-getting-started

JQuery Moblie (or alternative) Drag & Drop to drop zones

Hoping someone can help me find a good mobile web solution for handling the UI for something along the lines of picking horses in a race to "win", "place" or "show".
I'd like users to be presented with a relatively short list of, say, horse names w/small picture and then be able to drag them into one of 3 drop zones (each of which accepts one and only one name). Server should then be told the ID of the horse in each drop zone. Ideally names would animate into drop zone if dropped near it, but snapping ok too.
Rails back-end but that shouldn't really matter.
Needs to work with mobile screens (touch drag & drop)...and ideally standard browsers as well,. JQuery UI and JQuery Mobile get close with their "sortable" demos. But that appears to be directed for re-organizing a list. I need help creating "drop zones" and submitting contents of each back to server.
Ideas? Perhaps someone has seen some sample code along these lines?
Similar stack overflow question :
I'd check out this stack overflow question if you haven't already. Javascript Drag and drop for touch devices
1st Alternative:
There is this JQuery UI Drag drop and sortables blog by simon battersby
2nd Alternative:
There is JQUery mobile drag and drop by Steve Fenton
3rd Alternative:
I'd try sencha touch. It might be more than what you are looking for, but it is a great mobile js framework that should have what you need.
http://www.sencha.com/forum/showthread.php?102154-Drag-drop-sort-in-Touch&p=659116#post659116