windows-phone-8.1

Visual Studio 2015, Nuget and “same key has already been added.”

泄露秘密 提交于 2019-12-07 04:03:56
问题 I have Visual Studio 2015 RC. When I open a console app or a Windows Phone 8 Silverlight project, everything works fine, I can use Nuget without problems. When I open a Universal App project (Windows 8.1 + Windows Phone 8.1), Nuget breaks. When I open the Nuget console, I see When I try to install a Nuget package using the Nuget GUI, I get the same error. One more strange thing. When I open VS2015 RC without any projects and open the Nuget console, I do not get the error. Then when I open my

WP 8.1 - Debug Universal App in device not working with VS 2013

依然范特西╮ 提交于 2019-12-07 03:27:00
问题 im trying to ebug my universal app from VS 2013 update 2 in my WP8.1 device but i have this error: Failed to deploy. Make sure another deployment or debugging session is not in progress for the same emulator or device from a different instance of Visual Studio: Error writing file '%FOLDERID_SharedData%\PhoneTools\11.0\Debugger\bin\RemoteDebugger\msvsmon.exe'. Error 0x80070005: Access Denied. I tried run as administrator and got the same error. Im using VS 2013 Update 1+2, Windows Phone 8.1 on

windows phone 8.1 swype keyboard event capture

不打扰是莪最后的温柔 提交于 2019-12-07 02:50:44
问题 Update [16-Jul-2014]: The question is technically incorrect. Read the answer to get more details. I was trying to capture text before reaching to my text box. and I discovered the following facts: KeyDown , KeyUp event will tell you what virtualKey was pressed not the character !! CoreWindow.CharacterReceived will capture the character but this event is not specific to TextBox and it will tell you the character after it reached to the textBox. Now my question is: Can any one tell me how can I

StringFormat in XAML

一个人想着一个人 提交于 2019-12-07 02:30:17
问题 I am trying to format my string to have commas every 3 places, and a decimal if it is not a whole number. I have checked roughly 20 examples, and this is the closest I have come: <TextBlock x:Name="countTextBlock" Text="{Binding Count, StringFormat={0:n}}" /> But I get a The property 'StringFormat' was not found in type 'Binding'. error. Any ideas what is wrong here? Windows Phone 8.1 appears to differ from WPF, because all of the WPF resources say that this is how it is done. (The string is

Making ScrollViewer's ScrollBar always visible through overriding or styling

眉间皱痕 提交于 2019-12-07 02:21:44
问题 I'm trying to make the ScrollBar for the ScrollViewer to be always visible so it doesn't only appear when I try to scroll the text view and so the user knows that there is someting more to see. At first, for some reason, I thought that I just have to change the color which needed brush overriding, but in reality, the ScrollBar is fading in and fading out, so either the ScrollViewer's or ScrollBar's template needs to be changed. I found the ScrollViewer's template which I have just placed in

'IBM437' is not a supported encoding name from ZipFile Read Method

荒凉一梦 提交于 2019-12-06 22:29:41
问题 I have a problem when my code execute this using: using (ZipFile archive = ZipFile.Read(File)) //<== Crash Here! { foreach (ZipEntry entry in archive.Entries) { entry.Extract(UnZipFolder.Name.ToString(), ExtractExistingFileAction.OverwriteSilently); } } Crash when ZipFile try to read my File that it's a string and contains, sincrofit.zip then crash and throw this exception: 'System.ArgumentException' Additional information: 'IBM437' is not a supported encoding name. 回答1: In Visual Studio:

What is the best strategy to upload large file using HttpClient in a low memory windows phone device?

社会主义新天地 提交于 2019-12-06 22:22:43
问题 I am trying to upload files using similar approach HttpClient: How to upload multiple files at once in windows phone. using (var content = new MultipartFormDataContent()) { content.Add(CreateFileContent(imageStream, "image.jpg", "image/jpeg")); content.Add(CreateFileContent(signatureStream, "image.jpg.sig", "application/octet-stream")); var response = await httpClient.PostAsync(_profileImageUploadUri, content); response.EnsureSuccessStatusCode(); } private StreamContent CreateFileContent

Error : Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) when trying to register a background task windows phone 8.1

谁都会走 提交于 2019-12-06 19:21:03
问题 When i trying to register a background task in windows phone 8.1 insted of this sample http://code.msdn.microsoft.com/windowsapps/Tile-Update-every-minute-68dbbbff i got this error : Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) i use this code : Dim taskBuilder As New BackgroundTaskBuilder() taskBuilder.Name = taskName taskBuilder.TaskEntryPoint = taskEntryPoint taskBuilder.SetTrigger(New SystemTrigger(SystemTriggerType.UserPresent, False)) taskBuilder

How to close a Windows Phone 8.1 app

我的梦境 提交于 2019-12-06 19:08:06
问题 In WP7 and WP8 I just needed to clear the backstack in a page, then press Back button and the app is closed. In WP8.1 I do Frame.BackStack.Clear(), press Back and the app just minimizes.. How to kill it with Back button? 回答1: You can add, in your main page definition: Windows.Phone.UI.Input.HardwareButtons.BackPressed += HardwareButtons_BackPressed; Then private void HardwareButtons_BackPressed(object sender, Windows.Phone.UI.Input.BackPressedEventArgs e) { if (!e.Handled && Frame

ERROR: Native images generated against multiple versions of assembly System.Net.Http.Primitives

主宰稳场 提交于 2019-12-06 18:18:13
问题 I got this error in my WP8.1 app, Application_UnhandledException ERROR: Native images generated against multiple versions of assembly System.Net.Http.Primitives. at CoolEditor.Class.DropNetRt.DropNetClient.LoadClient() at CoolEditor.Class.DropNetRt.DropNetClient..ctor(String apiKey, String appSecret) at CoolEditor.MainPage.d__6e.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.AsyncMethodBuilderCore.b__3(Object state)