windows-phone

RenderTargetBitmap works fine on Windows 8.1, but not on Windows Phone 8.1

大兔子大兔子 提交于 2019-12-24 17:06:04
问题 I'm making a universal app. In my app I need to use RenderTargetBitmap to convert an Image and a TextBlock over the image into a JPEG photo. On the Windows 8.1 project, everything works as expected, but not on the Windows Phone 8.1 one. Could you help me with that? Thank you. My code is as follows: async Task SaveVisualElementToFile(FrameworkElement element, StorageFile file, int imageWidth, int imageHeight) { var renderTargetBitmap = new RenderTargetBitmap(); await renderTargetBitmap

Obtain real name of photo in windows phone 8

喜你入骨 提交于 2019-12-24 16:01:13
问题 I can't show the real name of my photos of my picture library in windows phone 8. I have a there photos whose original names are: chucktodd-einstein-2010-1.jpg, chucktodd-einstein-2010-2.jpg,chucktodd-einstein-2010-3.jpg. I execute this code: MediaLibrary m = new MediaLibrary(); for (int j = 0; j < m.Pictures.Count; j++) { var r = m.Pictures[j]; MessageBox.Show(r.Name); } And MessageBox show always this name : "Einstein writing on a blackboard with chalk illustration by chuck Todd 2010". How

How to Deploy .xap using command prompt

醉酒当歌 提交于 2019-12-24 13:56:07
问题 I want to deploy xap to windows phone emulator 7.1 using command prompt and i have been following the msdn article http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff402565(v=vs.105).aspx#BKMK_commandline i am able to build the project using this command: MSBuild D:\Projects\PhoneApp1\PhoneApp1\PhoneApp1.csproj but when i run this command: XapDeployCmd.exe /installlaunch D:\PhoneApp1.xap /targetdevice:xd i get error saying "'XapDeployCmd.exe' is not recognized as an internal or

How to Superscript some Text in a TextBox/TextBlock Control in windows phone 8?

大兔子大兔子 提交于 2019-12-24 13:33:44
问题 I'm working on windows phone 8 app, and m stuck here, guys i want to show some text as a superscript either in TextBox or in TextBlock where-ever possible. suggest me how can i obtained it. Thanks 回答1: Why don't you use a stackpanel wrapping a couple of textblocks instead? Then adjust the margines on the stuff you want super and subscripted. <StackPanel Orientation="Vertical"> <TextBlock Text="H2O3" FontSize="40" Margin="0,10"/> <StackPanel Orientation="Horizontal"> <TextBlock Text="H"

How to Share My News on Facebook on Windows Phone 8

走远了吗. 提交于 2019-12-24 12:09:39
问题 I am on windows phone project. This project includes the latest news from various categories. I'm done with getting news from my web service on my device. But i need to share these news on facebook, twitter etc.. How can i do that ? I checked https://developers.facebook.com/ but couldn't find the idea or i found, here http://facebooksdk.net/docs/phone/ . Is there any idea ? Help me about this please. I need to put a button at the end of my news and i need to share them on social platforms.

Register app for a URI association (Windows Phone 8.1 RT)

帅比萌擦擦* 提交于 2019-12-24 11:40:18
问题 Hello i want to create a scheme URI to launch my app from another app. I searched a lot, i found this tutorial URI associations, it shows how to register your app for A URI association but it is for Windows Phone 8. I am developing an app for Windows Phone 8.1 RT and none of the tutorials i found work. At least I'd like to know if it is supported on WP 8.1 RT. 回答1: The term you're looking for is protocol activation . You can have a look at the official Association launching sample. In short:

How to enable the Settings panel on Windows Phone by PhoneGap/Cordova

試著忘記壹切 提交于 2019-12-24 11:37:41
问题 I just finished my 1st WP8 app with PhoneGap, and out of sudden, I found that my app doesn't have that Settings panel(I'm not sure whether it's the right name for that part -- the 3 dots at the right bottom corner and when you clicked it, a panel shows). This is the Setting panel(please do correct me if the name I refer to is not right and I want to know it. ) Do you know how to enable it? Thanks a lot 回答1: The three dots you pointed -if I don't misunderstand that- is called ellipsis (you can

PivotItem control windows phone 7 set color of disabled header

 ̄綄美尐妖づ 提交于 2019-12-24 11:35:08
问题 Is there a way to set the state of the header color in XAML when the PivotItem control is not the current selected one. This is the header code i am using for the pivot item control <controls:PivotItem.Header> <TextBlock Text="first" Foreground="{StaticResource PhoneAccentBrush}"/> </controls:PivotItem.Header> In the below example, I want all the header's color to be PhoneAccentBrush but when it goes in the disabled state, I want to it to be grey (but it becomes a dimmed version of

Live Connect authentication status always “Unknown”

我是研究僧i 提交于 2019-12-24 09:40:05
问题 I'm facing some problem when authenticating in my WP8 app via Live SDK. I have added a SignInButton to my app: <live:SignInButton x:Name="btnSignIn" Scopes="wl.skydrive wl.skydrive_update wl.signin wl.offline_access" ClientId="MY_CLIENT_ID" SessionChanged="btnSignIn_SessionChanged" TextType="Login" /> In the code-behind I have the following: private async void btnSignIn_SessionChanged(object sender, Microsoft.Live.Controls.LiveConnectSessionChangedEventArgs e) { App.LiveSession = e.Session;

Consume WCF Service in Windows Phone application: methods return void

半世苍凉 提交于 2019-12-24 08:49:59
问题 I have WCF service When I "Add Service Reference" in my windows phone application everything looks good but methods return void. I tested this server for example in WPF app and it works and returns what I need but in wp 7/8 app not. Ofcourse the basic functionality of this WCF is to return data so void methods are totally useless for me. 回答1: You can use service Async and Completed events.Service will return data in completed event like ServiceReference1.Service1Client clientForTesting = new