windows-phone-8.1

Where are the Windows Phone APIs in Windows XAML Universal Portable Library?

丶灬走出姿态 提交于 2019-12-12 20:34:22
问题 I have a library for Windows Phone 8.0 and Windows 8 and thought to make the same to support the Windows Phone 8.1 and Windows 8.1 Universal applications. But soon as I tried to port my code in a Universal XAML library or even when trying some APIs in a Windows Phone 8.1 Universal Application that is created using the template I've seen that are missing, for example, using Microsoft.Phone.Info; using Microsoft.Phone.Net.NetworkInformation; Or I was using the PhoneApplicationFrame class,

How can I remove live tile title in a Windows Phone 8.1 application?

时间秒杀一切 提交于 2019-12-12 20:12:45
问题 I'm building a wide live tile using TileWide310x150Image template in a BackgroundTask, which should show only a wide image, no text or else. This is the template I'm using: <tile> <visual> <binding template="TileWideImage"> <image id="1" src="image1.png" /> </binding> </visual> </tile> However, application's name is still there and I can't find anything to remove it in the Manifest as it was possible on Windows Phone 7 and 8. Is there any way to remove it? 回答1: In the tile notification XML,

How to call a REST web service for Windows 8.1 phone app development

谁说我不能喝 提交于 2019-12-12 18:42:56
问题 I am new to Windows phone app development. I have installed free version of Visual Studio Express 2013 for windows. I am trying to build a windows phone app for windows phone 8.1. My problem is on button click I want to call a REST back end web service which will return a response JSON Object. I have looked over the forum but could not find anything which I could Successfully implement. Can someone please point me to the right direction? Thanks. 回答1: Before you start you need to add the

Azure MobileService in BackgroundTask

百般思念 提交于 2019-12-12 18:25:08
问题 My question is pretty simple : Can we use MobileServices in BackgroundTasks? (WP 8.1 XAML) I have an universal app connected to a MobileService from Azure and I wanted to let the BackgroundTask synchronize the data of my remote database. So, is this possible? public sealed class BackgroundTask : IBackgroundTask { public async void Run(IBackgroundTaskInstance taskInstance) { BackgroundTaskDeferral deferral = taskInstance.GetDeferral(); //Connect to mobile service and add data deferral.Complete

WriteableBitmap SaveJpeg missing for universal apps

拟墨画扇 提交于 2019-12-12 17:37:49
问题 I am developing an universal app, in my shared code i am trying to download the image from net and save the image to LocalFolder. I am using HttpClient to download the images from user given urls and reading the client response to save the image. I am using below code to save, but couldn't able to find Writeable SaveJpeg method. HttpResponseMessage response = await httpClient.GetAsync(imageUri); await Task.Run(async () => { if (response.IsSuccessStatusCode) { // save image locally

WP8.1 SilverLight Microsoft.Devices.PhotoCamera Access Denied

血红的双手。 提交于 2019-12-12 16:06:53
问题 I am having a frustrating time with writing a Windows Phone App. I have a WP8.1 Silverlight project. I am then simply trying to initialize the camera. I get an Accessdenied error. Package.appxmanifest file has webcam selected. I have been unable to find similar posts on forums about this issue in particular. Any ideas? Note: I have great pictures but, I need "at least 10 reputation" to post images :( Dim WithEvents cam As PhotoCamera Public Sub New() InitializeComponent() If PhotoCamera

PointerDownThemeAnimation application stops WP8

白昼怎懂夜的黑 提交于 2019-12-12 15:52:16
问题 I'm confused why my app is closing, I have added the PointerDownThemeAnimation and it works fine but only one time, when I try to click it again the aplication stops. Why? Here is my code: private void staryrynek1(object sender, PointerRoutedEventArgs e) { pointerDownStoryboard.Begin(); } private void staryrynek(object sender, PointerRoutedEventArgs e) { pointerUpStoryboard.Begin(); this.Frame.Navigate(typeof(StaryRynek)); } and <Grid x:Name="staryrynek_grid" Margin="10,92,10,0"

Separate ResourceDictionary for each project type

余生颓废 提交于 2019-12-12 15:28:32
问题 I've created a ResourceDictionary in my Shared project without problem. However, some of my styles will be very particular* to Windows Phone 8.1 and not used in Windows 8.1. As there's no App.xaml in the Windows Phone project, how do I specify a ResourceDictionary just for Windows Phone? *In addition to different sizes and margins, extensive use of PhoneAccentBrush which is obviously not available on Windows Store Apps. Or, if the Shared ResourceDictionary is the preferred method, how do I

Windows Phone - Disabled Button Background

妖精的绣舞 提交于 2019-12-12 15:14:47
问题 here I'm once more with another question about Windows Phone. I just created some custom buttons and use they as background on my buttons. I also created a grayed button to show as disabled button. But if I disable using the button1.isEnabled = false, the background disappear Searching on the net I found a way using a Style tag, but I never used before. I tried but, it's aways returns me a problem, can someone give me a example? My Code: <Button x:Name="btSalvar" Content="Salvar Cor" Margin=

PhotoChooserTask built in crop option for windows phone 8.1

前提是你 提交于 2019-12-12 15:01:59
问题 In Windows Phone 8 I was using PhotoChooserTask to get images from phone gallery and when I fixed Pixel width and height automatically windows phone start a page for cropping the selected image. Can someone tell me how to enable this option with FileOpenPicker? 回答1: Unfortunately the Windows phone 8.1 SDK does not have this operation, and I swear I tried look for it in every where, and the people of MDSN tell me it is impossible.... But you can try two options: First: In the workflow of