windows-phone

Programmatically create a photo album in Windows Phone 8

若如初见. 提交于 2019-12-13 01:38:34
问题 I'm developing app for Windows Phone 8 which will allow users to download icons. It will be right if the app could be able to programmatically create custom photo album in pictures hub and save icons there and not save images in standard folder called Saved Images . Is there a way to create a photo album in Windows Phone 8 and save images to that folder ? 回答1: Not sure how I can put this.. let me do it the easiest way.. No you can not create custom folder on the phone's picture lib. However,

How do I deserialize an array of objects with varying names?

穿精又带淫゛_ 提交于 2019-12-13 00:36:30
问题 In a Windows Phone app using C#, I am trying to deserialize some JSON with the following structure: [ { "kite" : { "supplier" : "ABC", "currency" : "GBP", "cost" : "7.98" } }, { "puzzle" : { "supplier" : "DEF", "currency" : "USD", "cost" : "7.98" } }, { "ball" : { "supplier" : "DEF", "currency" : "USD", "cost" : "5.49" } } ] This is a list of toys in which the names of the toys (kite, puzzle, ball) are not known in advance. I don't have any control over the format of the JSON. Using

Windows Phone 7.1 emulator not working on Visual Studio 2013, Windows 8.1

对着背影说爱祢 提交于 2019-12-13 00:20:49
问题 I tried to run the Windows Phone 7.1 emulator on Visual Studio 2013 on Windows 8.1. When I start the emulator, it shows the following error. Followed by this error when I press "Run the program without getting help": WHY WINDOWS PHONE 7.1 SDK, NOT WINDOWS PHONE 8: The reason why I am setting this up as such is because I want to develop XNA games for Windows Phone 7 to 8. Hence the reason why I am still using the Windows Phone 7.1 developer kit. I have previously created and published XNA

Deploy private app to windows 8 phone [duplicate]

人走茶凉 提交于 2019-12-12 17:17:11
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: Can you install you own apps on your windows 7 phone Sideloading apps on Windows 8 Pro I am planing to buy and windows 8 phone and port some apps for private use to the system. I however read this article about the deployment process, which scared me off. If I understood the article correctly, you can only let Microsoft check your apps before they are accessible to everyone over the marketplace, or you use some

A namespace cannot directly contain members… + Type or namespace definition, or end-of-file expected errors

三世轮回 提交于 2019-12-12 16:24:51
问题 I'm trying to compile the sample code for Sync Framework 4.0 for Windows Phone, however I've encountered an error in few files. One of those files is: #if SERVER namespace Microsoft.Synchronization.Services #elif CLIENT namespace Microsoft.Synchronization.ClientServices #endif { /// <summary> /// Represents the base interface that all offline cacheable object should derive from. /// </summary> public interface IOfflineEntity { /// <summary> /// Represents the sync and OData metadata used for

Reading HttpOnly Cookies from Headers of HttpWebResponse in Windows Phone

妖精的绣舞 提交于 2019-12-12 15:46:33
问题 Is there any way to read HttpOnly Cookies from Headers of HttpWebResponse in Windows Phone? In my code below "Set-Cookie" is not present in response.Cookies[] My code HttpWebRequest webRequest = (HttpWebRequest)asynchronousResult.AsyncState; // End the get response operation using (HttpWebResponse response = (HttpWebResponse)webRequest.EndGetResponse(asynchronousResult)) { Stream streamResponse = response.GetResponseStream(); // But Set-Cookie is not present here as its HttpOnly var cookies =

How to make a windows phone application load faster like default applications?

爱⌒轻易说出口 提交于 2019-12-12 15:46:02
问题 I've observed that the default applications like People, Calculator.etc in Windows phones don't take time to load at all. They don't even have a Splash Screen image. I've tried excluding the SplashScreenImage.jpg from the project in my applications and run it on my phone, my application is static & just displays texts and still it takes time to load, why is it so? How can I make my applications to function like the default windows applications without waiting time and no SplashScreen images?

not return correct post method result

旧时模样 提交于 2019-12-12 14:14:20
问题 I'm trying to make an application in windows phone 8 login functionality using php/my sql i have following php script : in my windows phone c# click event i wrote following things : private void btnLogin_Click(System.Object sender, System.Windows.RoutedEventArgs e) { Uri uri = new Uri(url, UriKind.Absolute); StringBuilder postData = new StringBuilder(); postData.AppendFormat("{0}={1}", "email", HttpUtility.UrlEncode("Test@test.com")); postData.AppendFormat("&{0}={1}", "pwd1", HttpUtility

F# quotations on Windows Phone

瘦欲@ 提交于 2019-12-12 13:33:46
问题 I'm using Daniel Mohl's F# templates for Windows phone, but it seems the bundled FSharp.Core doesn't have some of the quotations code. I'm trying to port this code from regular .NET: open System.ComponentModel open Microsoft.FSharp.Quotations open Microsoft.FSharp.Quotations.Patterns [<AbstractClass>] type ViewModelBase() = let propertyChanged = new Event<_, _>() let toPropName expr = match expr with | PropertyGet(a, b, list) -> b.Name | _ -> failwith "Unsupported: " + expr.ToString()

Windows Phone IE mobile bugs with transparent background-image and bottom absolute positionning

假如想象 提交于 2019-12-12 12:43:38
问题 I have 2 problems with WP IE : transparent background-image have artifacts on their transparent borders absolute positioned divs to the bottom of the page leaves a ~5px white gap between the browser navigation bar and the bottom of the page Note that I use divs instead of img to handle CSS retina image replacement for HDPI devices (iPhone 4+, iPad3+, Android Galaxy S3, WP8 Lumia 920...). With img, the artifacts are gone. HTML: <div class="header-left"></div> <div class="footer-left"></div>