I have an application and I want to open it by hold some special button on the phone (ex : camera button, power button...). Do you have some ideas or example code to solve it?
Unfortunately it isn't possible. On Windows Phone 7, the only physical buttons you can subscribe to are the back button and the camera button, and it's only when your application is running. So you can't launch an application that way.
Related
We are doing User acceptance testing on a Xamarin Forms UWP app targeting windows 10 tablet. We are finding that when the user clicks on a textbox to enter data the soft keyboard appears as expected. However, when the user then clicks into the next textbox to enter a second required piece of data, the soft keyboard hides/closes. This results in the user having to double hit the second textbox (and any more than might need to be filled). The first click hides the keyboard, the second then causes the keyboard to reappear. To say the least this is not a good user experience. I'm guessing maybe the focus of the second is firing before the lost focus of the first? Has anyone else observed this behavior and is there any easy fix? As may want to target both Android and Windows I'm hoping for a simple solution but maybe UWP just does has some problems?
I am looking for a way to open a custom popup when appbar is opened on windows phone 8. What event shall i capture via which i can open the popup along with the appbar. Thank you in advance.
You need to capture the StateChanged event of the ApplicationBar. More on this here:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/microsoft.phone.shell.applicationbar.statechanged%28v=vs.105%29.aspx
I'd like to add a "hide button" each time the keyboard shows up so that user can see all the screen when he needs to.
In iPhone this toolbar exists, is it possible to do the same for windows phone anyhow ?
You cannot change the default keyboard. Still here is a tutorial to create a custom keyboard on Windows Phone 7.
I am working on an application in Windows Phone 7.1. I have a page with textbox and button to take input from user. Today suddenly my on-screen keyboard (shown when clicked on textbox) is not working. Button click is also not hitting the method in codebehind. It was working when last time I worked on app. I created another app and tested that on screen keyboard and button clicks are working there. Has someone else faced this issue and is anybody having any idea what's going wrong?
Maybe you just closed emulator keyboard by using "Page Down"/"Page Up" keys? There are few keyboard shortcuts for WP7 emulator.
I have a windows phone 7 app that uses GPS to track user position. Now the user can disable this feature through the phone's setting menu. the app handles this disabling fine and gives them a message. This is all pretty standard windows phone stuff.
My question is whether I can navigate (inside the app) to the settings menu so that the user can enable phone location services? Ideally I would give them a link or a button that they touch and they are then taken out of the app to the settings menu. They would then click 'back' and return to the app.
No, at the moment, there's no way to fire up the Settings menu from inside your app.
Try this:
Windows.System.Launcher.LaunchUriAsync(new Uri(“ms-settings-location:”));
Not sure if it works on WP7 though.
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj662937(v=vs.105).aspx