windows-phone-8

Error Signing Windows Phone XAP file -> SignTool Error: This file format cannot be signed because it is not recognized

寵の児 提交于 2021-02-19 07:39:05
问题 I've just got my certificate to sign Windows Phone Apps and when I try to run this command: XapSignTool.exe sign /v C:\Temp\MyApp_Release_AnyCPU.xap I'm using Visual Studio 2012 Express. I get an strange behavior: The following certificate was selected: Issued to: XXXXXX Issued by: Symantec Enterprise Mobile CA for Microsoft Expires: XXXXXX SHA1 hash: XXXXX Done Adding Additional Store Successfully signed: C:\Users\Fernando\AppData\Local\Temp\tmp7E47.tmp\MyApp.dll Number of files successfully

An exception of type 'System.Net.WebException'

会有一股神秘感。 提交于 2021-02-11 17:00:15
问题 I'm working on WP7-8 application which is using RestClient for getting info from WebServer. When I swich off internet connection I see: An exception of type 'System.Net.WebException' occurred in System.Windows.ni.dll and wasn't handled before a managed/native boundary What does it mean? How or should I fix it? My code: RestSharp.RestClient _client; _client = new RestClient { BaseUrl = BaseURL }; _client.Timeout = 50; resourceString = "Http:\\blablabla"; var request = new RestRequest {

An exception of type 'System.Net.WebException'

孤街浪徒 提交于 2021-02-11 16:58:39
问题 I'm working on WP7-8 application which is using RestClient for getting info from WebServer. When I swich off internet connection I see: An exception of type 'System.Net.WebException' occurred in System.Windows.ni.dll and wasn't handled before a managed/native boundary What does it mean? How or should I fix it? My code: RestSharp.RestClient _client; _client = new RestClient { BaseUrl = BaseURL }; _client.Timeout = 50; resourceString = "Http:\\blablabla"; var request = new RestRequest {

XAudio2 - Play generated sine, when changing frequency clicking sound

三世轮回 提交于 2021-02-08 04:57:28
问题 I want to develop an app to match your tinnitus frequency : A frequency is played and the user decrease or increase the freqency by pressing a plus or minus button. (see part of the codes, based on some coding from stackoverflow thx :-)) public static short[] BufferSamples = new short[44100 * 1 * 2]; private SourceVoice sourceVoice; private AudioBuffer buffer; private int Tfreq; public MatchTinn() { InitializeComponent(); Loaded += MatchTinn_Loaded; TFreq = 5000; } private void MatchTinn

How do you apply a ValueConverter to a convention-based Caliburn.Micro binding Example?

末鹿安然 提交于 2021-02-07 03:25:30
问题 I have seen the following question: how-do-you-apply-a-valueconverter-to-a-convention-based-caliburn-micro-binding. I couldn't post a comment on that topic, so I am posting my question here. How to use the ConventionManager.ApplyValueConverter in Caliburn.Micro for value converters when using convention based binding ? Could anyone write an example here? 回答1: ApplyValueConverter is defined as a static Func<> delegate in the ConventionManager class. In order to provide your own converter in

How do you apply a ValueConverter to a convention-based Caliburn.Micro binding Example?

别等时光非礼了梦想. 提交于 2021-02-07 03:25:18
问题 I have seen the following question: how-do-you-apply-a-valueconverter-to-a-convention-based-caliburn-micro-binding. I couldn't post a comment on that topic, so I am posting my question here. How to use the ConventionManager.ApplyValueConverter in Caliburn.Micro for value converters when using convention based binding ? Could anyone write an example here? 回答1: ApplyValueConverter is defined as a static Func<> delegate in the ConventionManager class. In order to provide your own converter in

How do you apply a ValueConverter to a convention-based Caliburn.Micro binding Example?

故事扮演 提交于 2021-02-07 03:23:01
问题 I have seen the following question: how-do-you-apply-a-valueconverter-to-a-convention-based-caliburn-micro-binding. I couldn't post a comment on that topic, so I am posting my question here. How to use the ConventionManager.ApplyValueConverter in Caliburn.Micro for value converters when using convention based binding ? Could anyone write an example here? 回答1: ApplyValueConverter is defined as a static Func<> delegate in the ConventionManager class. In order to provide your own converter in

how to add a reference of a user control in a xaml file which is shared by two projects

笑着哭i 提交于 2021-02-05 11:31:06
问题 I have created a class library(CustomMapControl) in the solution and inside this class library I create a UserControl(MapItemsControl). Now, I added a reference of this class library to both projects (Portogruaro & Trieste). Here is my solution structure. Portogruaro is the main project and has all files, Trieste has almost all the files which Portogruaro have added as a reference. So, the problem is when I tried to use the CustomMapControl and drag and drop it in xaml from toolbox it doenst

Cannot deserialize the current JSON array (e.g. [1,2,3])

早过忘川 提交于 2021-02-05 09:46:34
问题 i've this error: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'authObject' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly. To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to

How to Get Qibla Direction at Compass Windows Phone 8?

人走茶凉 提交于 2021-01-28 14:07:58
问题 I'm developing an Islamic app which has Qibla feature. I can determine Qibla direction in degrees from my current location using my longitude and latitude. For examle: From Cairo, Qibla direction will be 137 degree. How to make compass sensor in windows phone navigate to this angle? Edit: I'm using this method to get sensor heading readings: public void RunCompass() { try { if (Compass.IsSupported) { // If compass sensor is supported create new compass object and attach event handlers Compass