windows-phone

WP 8.1 Runtime code to make phone call, send SMS & send Email (not the Silverlight 8.1)

浪子不回头ぞ 提交于 2019-12-18 03:11:11
问题 I'm writing an app which will make a phone call, send sms or email just like the People app in wp 8.1 . So far I've found a link form msdn which said "Applies to: Windows Phone 8 and Windows Phone Silverlight 8.1". So here the code:from this link using Microsoft.Phone.Tasks; private void TextBlock_Tapped_Call(object sender, TappedRoutedEventArgs e) { PhoneCallTask phoneCallTask = new PhoneCallTask(); phoneCallTask.PhoneNumber = "2065550123"; phoneCallTask.DisplayName = "Gage"; phoneCallTask

WP 8.1 Runtime code to make phone call, send SMS & send Email (not the Silverlight 8.1)

橙三吉。 提交于 2019-12-18 03:11:06
问题 I'm writing an app which will make a phone call, send sms or email just like the People app in wp 8.1 . So far I've found a link form msdn which said "Applies to: Windows Phone 8 and Windows Phone Silverlight 8.1". So here the code:from this link using Microsoft.Phone.Tasks; private void TextBlock_Tapped_Call(object sender, TappedRoutedEventArgs e) { PhoneCallTask phoneCallTask = new PhoneCallTask(); phoneCallTask.PhoneNumber = "2065550123"; phoneCallTask.DisplayName = "Gage"; phoneCallTask

WP7: Is it possible to intercept the backstack before the journal thumbnail is created/stored

强颜欢笑 提交于 2019-12-17 21:59:41
问题 You all know the Windows Phone backstack right. If you go through some apps, tap the Home key after starting each app. Now tap and hold the Backkey to see the Backstack. You can now see some small images of your apps, and can pick which one to go to right. Question: Is it possible to intercept before the backstack image is created? I have tried to blur my page in various events (include OnNavigatingFrom) to no avail. My guess is some other event (probably something we don't have access to) is

using Clipboard in WP7 programming [duplicate]

一个人想着一个人 提交于 2019-12-17 21:10:32
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: How to programmatically copy/paste in windows phone? how can i use clipboard in my Windows Phone 7 app? i want to type a text in my app, then this text should be accessible in another apps. please guide me. 回答1: Your question could have hardly been timed better. I've just released a library which allows you to do just that. (Even without the "NoDo" update.) Check it out at http://wp7clipboard.codeplex.com/ 回答2

Test Windows Phone 8 App on actual device

穿精又带淫゛_ 提交于 2019-12-17 18:28:31
问题 Is it possible to test my windows phone 8 app on an actual device , like Nokia Lumia 820 (NOT Simulator) before submitting to store? How? ( Also I may need to create some applications just for myself, and not for sending to store... :) ) Update: I saw that developers should pay for developer account to install their apps on their phones, but What about WP8? 回答1: You can deploy your app from Visual Studio to the developer unlocked device. That means you need to have a Windows Phone Store

WebUtility.HtmlDecode vs HttpUtilty.HtmlDecode

偶尔善良 提交于 2019-12-17 18:06:07
问题 I was using WebUtilty.HtmlDecode to decode HTML. It turns out that it doesn't decode properly, for example, – is supposed to decode to a "–" character, but WebUtilty.HtmlDecode does not decode it. HttpUtilty.HtmlDecode , however, does. Debug.WriteLine(WebUtility.HtmlDecode("–")); Debug.WriteLine(HttpUtility.HtmlDecode("–")); > – > – The documentation for both of these is the same: Converts a string that has been HTML-encoded for HTTP transmission into a decoded string. Why are they different,

Long List Selector Observable Collection and Visual Tree - problems?

佐手、 提交于 2019-12-17 17:16:14
问题 I've made a short example to show where I've encoutered some problems. They concers LongsListSelector bound to ObservableCollection (no matter what type items are). I've set long list item template as (for example) a textblock, I've also made three buttons - to add one element to collection, to remove one last, and to search through visuall tree. The code is not so long so I'll post it here below (if you want whole example it's at: http://sdrv.ms/163TYEG ). XAML (except headers): <phone

Upload image using HttpClient

狂风中的少年 提交于 2019-12-17 16:39:08
问题 I want to upload a file using HttpClient to a php script to save it on a server in a Windows Phone 8.1 application. Here is my C# code I got from this post. private async Task<string> GetRawDataFromServer(byte[] data) { //Debug.WriteLine("byte[] data length:" + Convert.ToBase64String(data).Length); var requestContent = new MultipartFormDataContent(); // here you can specify boundary if you need---^ var imageContent = new ByteArrayContent(data); imageContent.Headers.ContentType =

Windows Phone 8.1 Bing-like slide page animation

邮差的信 提交于 2019-12-17 16:34:32
问题 I'd like to add a page transition in my Windows Phone 8.1 app in such a way, that the following page will slide-in from the bottom of the screen. Similar effect is used when you launch Bing by hitting the Search button. Unfortunately, the MSDN isn't much descriptive on that topic. Does anyone know how to implement such an animation? 回答1: First you will have to disable current Transitions for the Frame - the best place would be in App.xaml.cs where the rootframe is created but it depends on

Compress and save base64 image on Windows Phone 8.1

自闭症网瘾萝莉.ら 提交于 2019-12-17 14:21:17
问题 I have implemented the following solution to compress a base 64 image and get back the new base 64 string. It works fine in Windows Phone 8.0 but targeting Windows Phone 8.1 it seems that there are changes in the environment. The WriteableBitmap has no constructor for a BitmapImage and the WriteableBitmap has no function SaveJpeg . I know that SaveJpeg is an extension, is there a way to add this extension to Windows Phone 8.1? Or is there any API which I can use? What do I have to change to