windows-phone-8.1

How to use a C++ dll in Windows Phone 8.1 XAML App within C++ Runtime Component

别来无恙 提交于 2020-01-13 18:01:28
问题 I want to use a C++ dll (compiled for arm, x86) within my C# windows phone 8.1 XAML visual studio project. I created a C++ runtime component to interact with my C++ code. This code needs a precompiled dll. I added my lib file to my project settings. The compilation is running fine. If I start my app with the windows phone 8.1 emulator I get: The specified module could not be found. (Exception from HRESULT: 0x8007007E) My Visual Studio Project Structure: c# Windows Phone Project Windows

Unable to access localized resources in .NET 4.5 PCL from Windows Phone 8.1

你。 提交于 2020-01-13 04:47:07
问题 I have troubles accessing localized string resources in Portable Class Library targeting .NET 4.5. I am allowing the user to select the language on first page and have localized experience on further pages. I am trying to achieve that just by getting resource with code MyTextBloxk.Text = PasswordResetMethod_Page.Title; PasswordResetMethod_Page is the auto-generated class from the .resx Everything works fine on the WP 8.1 emulator, but when I try to deploy it to the real device I get Error :

How can i add AppBar in Windows Phone 8.1

╄→гoц情女王★ 提交于 2020-01-12 13:41:54
问题 In windows phone 8, its very easy to add an App Bar and manage it, but now i test new windows phone 8.1 SDK to build a project with new Geofencing feature but i don't know how to add an App Bar in the App. 回答1: In Windows Phone 8.1, We can use BottomAppBar to add App Bar. Usually we use CommandBar to create basic BottomAppBar. CommandBar contains two collection: PrimaryCommands and SecondaryCommands , It's similar with shell:ApplicationBar.Buttons and shell:ApplicationBar.MenuItems in Windows

Display local toast notification

北慕城南 提交于 2020-01-12 01:35:26
问题 I want to develop a universal app for Windows Phone 8.1 which contains a local “Notification”. What I want to do is to show all messages to the user (error, information, warnings) in a kink of toast control. Everything is done locally without going through the standard notification system. There are several system that work on Windows Phone 8: TOASTINET (http://www.nuget.org/packages/ToastinetWP/) CONDING4FUN toast prompt (https://coding4fun.codeplex.com/wikipage?title=Toast%20Prompt

Convert AsyncCallback to awaitable task

霸气de小男生 提交于 2020-01-11 13:25:08
问题 I'm trying to implement the download of a given url. By the way my code is: private string url; private StorageFile outputFile; public void download() { HttpWebRequest request = HttpWebRequest.CreateHttp(url); request.BeginGetResponse(new AsyncCallback(playResponseAsync), request); } public async void playResponseAsync(IAsyncResult asyncResult) { //Declaration of variables HttpWebRequest webRequest = (HttpWebRequest)asyncResult.AsyncState; try { using (HttpWebResponse webResponse =

HttpClient fails to authenticate via NTLM on the second request when using the Sharepoint REST API on Windows Phone 8.1

谁都会走 提交于 2020-01-11 12:22:51
问题 Sorry for the long title, but it seems to be the best summary based on what I know so far. We’re currently working on a Universal App that needs to access some documents on a Sharepoint server via the REST API using NTLM Authentication, which proves to be more difficult than it should be. While we were able to find workarounds for all problems (see below), I don’t really understand what is happening and why they are even necessary. Somehow the HttpClient class seems to behave differently on

How to know one StorageFolder-obj belongs to SD or Phone?

你说的曾经没有我的故事 提交于 2020-01-11 09:52:07
问题 Is there have way to know a StorageFolder-obj belongs to SD or Phone on WP8.1? Thanks you. 回答1: You can do it for example by checking the Path of StorageFolder (or StorageFIle ): string folderPath = yourStorageFolder.Path; if (folderPath.StartsWith("C:")) // on Phone else // on SD Card if it begins with D: (or other letter - not C: ) - it means it belongs to SD card, if it begins with C: - it exists on Phone, EDIT - as Adam has said in comments - it may be more suitable to check first if file

Navigation buttons hiding Windows Phone 8.1

十年热恋 提交于 2020-01-11 05:16:26
问题 I'm building a Windows Phone 8.1 application, and I'm facing the following problem. There are phones that don't have hardware navigation buttons(those for back, home and search). Those phones will shrink whole UI when virtual navigation bar appears, I don't want that to happen. So what can I do to prevent this? Internet seams not to know the answer(or I haven't searched good enough). This is what I mean when I say virtual navigation buttons. 回答1: You need to set the ApplicationViewBoundsMode

Does the Facebook .NET client SDK support universal apps / apps generated via AppStudio?

萝らか妹 提交于 2020-01-11 03:57:19
问题 I created a universal app via Microsoft's AppStudio. I tried adding Facebook authentication to the app by following the 'Scrumptious tutorial' (http://facebooksdk.net/docs/phone/tutorial/). When I run the app on my phone, I can never get to the facebook login page, because the following line: await App.FacebookSessionClient.LoginAsync("user_about_me,read_stream"); always results in the following exception: System.NotImplementedException: Not implemented at Windows.Security.Authentication.Web

Hide Status bar in Windows Phone 8.1 Universal Apps

自古美人都是妖i 提交于 2020-01-09 06:23:27
问题 How to hide the Status bar in Windows Phone 8.1 (C#, XAML)? In Windows Phone 8 it was done by setting shell:SystemTray.IsVisible="False" at any page. But its not available in Windows Phone 8.1 回答1: With the release of Windows Phone 8.1 SDK comes a new StatusBar. The StatusBar replaces the SystemTray from Windows Phone Silverlight Apps. Unlike the SystemTray, the StausBar can only be accessed via code and some functionality has changed. StatusBar statusBar = Windows.UI.ViewManagement.StatusBar