I'm Building a very basic game for windows phone based on one I created for iOS. In iOS there is a event for when the screen is pressed. I have looked and cannot find a equivalent in windows phone so have decided to use a large button placed over the entire of the view however i have the issue that when i press the button it fills out in the accent colour. i have tried changing the clickmode .ect to solve this as suggested in some older posts for windows phone 7 however none of these seem to be working. Any help is appreciated
Thanks
Found a better solution for my requirements.
Realised that if on the root of the application page i can set a Tap event to fire code so his works like touchesBegan on iOS
Related
I'm making an android application using unity3d.
The keyboard is being used to enter a Name for a digital Pet.
The code I am using can be seen below, it is triggered by the user pressing a button in a menu screen.
TouchScreenKeyboard keyboard = TouchScreenKeyboard.Open("Franklin");
if (keyboard != null)
SetPetName(keyboard.text);
Once the button has been pressed the Pet's name has been changed to 'Franklin' but no keyboard appear on screen.
I can't see where I am going wrong here, and I have not been able to find any similar issues posted.
One thought I had was that it may be in some way related to the fact I am locking the screen orientation to horizontal, but this is something i need to do on my application.
Thanks in advance for any help you can offer.
The comment above solves this issue. It was that TouchScreenKeyboard.Open doesn't work in the editor. Once built to my device it was all OK.
I have an universal app and in my app I am using
InputScope="Number"
for many of my textboxes. And in phone application all working, but in windows tablet app when I use it in emulator it opens numberic keyboard (however I am still able to navigate to alphabetical keyboard but this is not an issue).
Issue is with actual tablet. When I use my application in tablet it opens alphabetical keyboard then I have to navigate to numeric keyboard.
What I have tried so far
changed InputScope to Telephone.
Tried in code for changing input scope.
Have you tried the NumberFullWidth ?
Please go to : https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.input.inputscopenamevalue for more types that you can use ..
UPDATE :
Have you tried another tablet !!
I am pretty new to Windows Phone, XAML and such and I am trying to solve this. I have custom colored button, but while this button is pressed it changes its color. How to customize this "pressed" color/properties? Is there any simple way that I missed? I was searching over the internet but nothing helped.
You need to know about styles, states and many other stuff, it's simple but you need to learn, you can go through this sample code from MSDN to create a Windows Phone Custom Style Button
I am aware of app bar icons and menu items in Windows phone. What I want it is an app bar similar to phone's default windows phone store where it shows up "try", "buy" and share in menu item... How can I achieve this? I looked into documentation of ApplicationBar, but it didn't help.
I want normal buttons to be inside application bar.. If that is not possible in appbar how can I mock something similar to the one which shows up in windows phone store..
Not sure that it is possible
Though, you may try to take a look at some custom appbars. For example, Cimbalino appbar is made as behavior (so it supports binding) - probably, you'd be able to set button's style either.
How can one invoke Windows 8 charmbar from a wpf application.
I know this can be done by simulating the key stroke such as win + c from application but the problem is the the same combination is used to hide the charmbar.
I have a wpf application that has a button named show charmbar but the problem is if the same button is clicked when already the charmbar is open it acts as a guide charmbar .
Or else could some body guide me on how tho get the visibility of charmbar. Such as at a given moment is the charmbar visible or not.
The truth is a charmbar cannot be opened programatically in metro app development
for metro you can access various charms menu like settings share.
Here's a full sample for that
metro charms
But for c# wpf app
Heres a SO answer and I guess it works :)
open charms c#
take a look. :)