windows-phone-8

restrict the windows phone app for specific devices

江枫思渺然 提交于 2019-12-25 05:17:15
问题 i want my application should work on specific devices\OS like "Lumia 650"\"windows phone 8", this is my project requirement. Is it possible ? if yes where should I mention the details ? 回答1: It is not a problem to restrict Windows Phone 8. You just need to build it targeting Windows Phone OS 8.0. For the device model you do something like this in the App.xaml.cs private void Application_Launching(object sender, LaunchingEventArgs e) { var deviceName = DeviceExtendedProperties.GetValue(

Cookies not working using WebClient on Windows Phone

白昼怎懂夜的黑 提交于 2019-12-25 05:13:11
问题 My problem is when I use new webclient to send url to the WebService it asks me to login, and after searched about this issue I found that you need to save cookies but its not working with me. And upon your request this is the full code namespace PhoneApp8 { public partial class MainPage : PhoneApplicationPage { // Constructor public MainPage() { InitializeComponent(); // Sample code to localize the ApplicationBar //BuildLocalizedApplicationBar(); } public class OuterRootObject { public

Crashes Back (WriteableBitmap cannot be serialized) windows phone 8

和自甴很熟 提交于 2019-12-25 05:09:13
问题 When I choose to complete the first page photo Change to the second page of the selected photo will crashes Back I have read this post Crashes Back to AppPage from Home ('System.Windows.Media.ImageSource' cannot be serialized) WP8 but I don't know how to deleting BitmapSource Property this is my code PhotoChooserTask pc; BitmapImage finalImage; pc = new PhotoChooserTask(); pc.Completed += new EventHandler<PhotoResult>(pc_co); public void pc_co(object sender, PhotoResult e) { if (e.TaskResult

Is It possible To develop windows phone 8 apps in windows phone SDK 8.1 with Visual studio 2013

笑着哭i 提交于 2019-12-25 05:06:36
问题 i have windows phone 8(Nokia lumia 525) Is It possible To develop windows phone 8 apps in windows phone SDK 8.1 with Visual studio 2013? Is there any problem like emulator problem, hosting app to windows store problem, windows azure for notification problem? I am a fresher now only enter into development could you please solve my problem Thank you so much 回答1: Yes you can. Just select Blank App (Windows Phone Silverlight) instead of Blank App (Windows Phone) and select the target windows

How to handle a selected item of LongListMultiSelector?

二次信任 提交于 2019-12-25 05:03:47
问题 I want to be able: to open a mail when the user taps on one item. and delete multiple emails when the user selects multiple emails So I choosed LongListMultiSelector . In built in LongListSelector , I handle the SelectionChanged event like this: private void mails_SelectionChanged(object sender, SelectionChangedEventArgs e) { var selectedItem = mailsLongListSelector.SelectedItem as Mail; if (selectedItem == null) return; ... mailsLongListSelector.SelectedItem = null; } I want exactly like

Add generic placeholders to SRGS Grammar

╄→尐↘猪︶ㄣ 提交于 2019-12-25 04:55:11
问题 I trying to add speech recognition into my app. But unfortunately I don't find a way to add generic placeholders. For example I want to say "I am looking for stackoverflow" then I use this grammar: <grammar root="start" {...}> <rule id="start" scope="public"> I am <one-of> <item> looking for</item> <item> listening to</item> </one-of> </rule> <!-- here could be any word --> </grammar> My problem is, how to implement the search for "stackoverflow". If I use this grammar the recognizer always

How to Change ListPicker Selection Template

白昼怎懂夜的黑 提交于 2019-12-25 04:53:05
问题 I've noticed that by default in a ListPicker the border and currently selected item's text automatically are the phone's accent color. I was wondering how it would be possible to hard code these values to another color (which would be selected within the ListPicker itself). For instance, my phone theme is lime but I would like to manually set the border and highlighted text color to cobalt when the cobalt item is selected. Same for cyan, red, and so forth. My ListPicker looks like this XAML

How to Set SystemTray Color

試著忘記壹切 提交于 2019-12-25 04:38:22
问题 I was attempting to change the color of the SystemTray , but for some reason I cannot get it to work correctly. I am not sure what I am doing wrong. shell:SystemTray.IsVisible="True" shell:SystemTray.BackgroundColor="Cyan" Is this not correct? 回答1: shell:SystemTray.IsVisible="True" shell:SystemTray.BackgroundColor="Cyan" Is the proper solution. I am using PhoneThemeManager from NuGet which automatically overrides device defaults to force either light or dark theme. Setting the SystemTray

how to refresh a page in visual studio?

允我心安 提交于 2019-12-25 04:26:37
问题 i have created a windows phone application. In each page i have given a back button using "NavigationService.GoBack()" command. i want that when the back button is pressed the previous page to which it navigate the whole code of that page must again be executed. 回答1: If you're relying the user pressing the hardware back button you shouldn't have to call GoBack() yourself. To refresh a page when the user navigates back to it you can use the following in your page (and add the refresh code as

Custom MessageBox for exit in Windows Phone

六眼飞鱼酱① 提交于 2019-12-25 04:19:14
问题 I am showing a message box if a user taps "back" at the main page of a game application. The usual solution MessageBoxResult res = MessageBox.Show(txt, cap, MessageBoxButton.OKCancel); if (res == MessageBoxResult.OK) { e.Cancel = false; return; } doesn't work for me, because I need those buttons to be localized not with a phone's localization but using app's selected language (i.e. if user's phone has english locale and he has set an app's language to be french, the buttons should be "Oui"