windows-phone-7

Windows Live Id Authentication for Windows Phone 7

徘徊边缘 提交于 2020-01-11 06:25:10
问题 I'm developing a Windows Phone 7 app but don't want to re-implement my own identity / authentication service - espcially when we know the user will be signed in with a Windows Live account. But, I understand from this thread that Microsoft will not be granting access to the logged in users details. Really? Is there a way to get this information from the Windows Live Id Service? Are there any api's that work on the device? Thanks, 回答1: It's true that the Windows Live ID will not be available

Setting Value of an Input Tag in WebBrowser Control

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-11 04:48:05
问题 I am attempting to help a user log into their account using a custom WebBrowser control. I am trying to set the value of an input tag to the players username using the WebBrowser 's InvokeScript function. However, my current solution is doing nothing but rendering a blank white page. My current code looks like this (web is the name for my WebBrowser control): web.Navigate(CurrentURL, null, @"<script type='text/javascript'> function SetPlayerData(input) { username.value = input; return true; }

HttpWebRequest.Proxy in Windows Phone 7?

ぐ巨炮叔叔 提交于 2020-01-10 04:27:04
问题 It seems that .NET Compact Framework does not include a Proxy property for HttpWebRequest. Is there anyway, I can use proxy when reading from a HttpWebRequest? 回答1: No this is not currently possible to do it programatically from within your application. In windows proxy settings are configured in internet explorer. On the phone you can configure proxy settings from Edit Network inside Settings, if you do this and you are connected to a WiFi network it will make the connection go via the proxy

MediaElement not playing audio from stream WP7

有些话、适合烂在心里 提交于 2020-01-10 04:24:05
问题 string url = re["response"][0]["url"].ToString(); MediaElement mm = new MediaElement(); mm.Source = new Uri(url,UriKind.RelativeOrAbsolute); mm.AutoPlay = true; mm.Volume = 0.7; mm.Play(); But no changes, the adudio not starts.How I can resolve this? 回答1: You need to add your MediaElement to your VisualTree before playing it, since you're creating it in the codebehind. For example, assuming you have LayoutRoot and that your url is correct, this should work. string url = re["response"][0]["url

How to pass an object from a xaml page to another? [duplicate]

邮差的信 提交于 2020-01-10 03:11:16
问题 This question already has an answer here : How to pass values (parameters) between XAML pages? (1 answer) Closed 5 years ago . Passing value to another xaml page can be done easily with NavigationService.Navigate(new Uri("/SecondPage.xaml?msg=" + textBox1.Text, UriKind.Relative)); But that is only for string values. I would like to pass an object to the xaml page. How do I do that? Found a similar question on SO and WP7 forum. The solution is to use a global variable (not the nicest solution)

PDF-viewer for Silverlight for Windows Phone 7 (SilverDox?)

萝らか妹 提交于 2020-01-10 02:07:31
问题 Is there any PDF-viewer control which can be used in a Silverlight for Windows Phone 7 application? I've found this thread: Silverlight 4.0 PDF Viewer and tried PDFTron's SilverDox but I didn't have any luck because my application crashes with the exception: WindowsPhonePanoramaApplication1.dll!WindowsPhonePanoramaApplication1.App.RootFrame_NavigationFailed(object sender, System.Windows.Navigation.NavigationFailedEventArgs e) Line 109 + 0x5 bytes C# ..which is quite strange, I think. However,

How to change startup page on WP7 application

半世苍凉 提交于 2020-01-09 07:48:48
问题 I want to have different start-page depending on if there is some settings stored in IsolatedStorage. Bu I don't know where the is the best practice to handle this. I.e if I find something in isolated storage I whant the user to get MainPage, otherwise I woluld like the user to get Settings-page. I'm using MVVM-light if there is some magic stuff to use. Br 回答1: You can do this by setting a dummy page as the main page of your project. You can change the main page by editing the WMAppManifest

Windows Phone 7 and native C++/CLI

喜夏-厌秋 提交于 2020-01-09 03:08:11
问题 Microsoft recently released tools and documentation for its new Phone 7 platform, which to the dismay of those who have a big C++ codebase (like me) doesn't support native development anymore. Although I've found speculation about this decision being reversed, I doubt it. So I was thinking how viable would be to make this codebase available to Phone 7 by adapting it to compile under C++/CLI. Of course the user interface parts couldn't be ported, but I'm not sure about the rest. Anyone had a

call skype user from my Windows Phone application

你说的曾经没有我的故事 提交于 2020-01-07 07:42:09
问题 In my Windows Phone appllication I need to realize skype call to some users. Is it possible to call skype user from my Windows Phone application? 回答1: There is no built in support for this and no public SDK specifically for Windows Phone. If you really must do this then you'll need to implement a WP7 compatible interface to their API. 来源: https://stackoverflow.com/questions/10720942/call-skype-user-from-my-windows-phone-application