windows-phone-7

Parsing issues with Windows Phone7

♀尐吖头ヾ 提交于 2020-01-03 04:49:11
问题 I'm working on an application with Windows Phone 7, which displays data from a specific URI, but it won't work. I'm stack,help me please. This is my XML : <rss version="2.0"> <channel> <title>info</title> <link>http://www.info.net</link> <description>Trouvez toutes les actualités en direct sur info.net ...</description> <language>fr</language> <copyright></copyright> <pubDate></pubDate> <image> <url></url> <title></title> <link>http://www.info.net</link> <width>200</width> <height>200</height

Compatibility between Windows Phone 7.1 - 7.8 apps and Windows Phone 8 devices

跟風遠走 提交于 2020-01-03 04:27:42
问题 Do Windows Phone 7.1 - 7.8 apps run reasonably well on Windows Phone 8 devices? Is there any reason in terms of compatibility for me to choose one over the other? 回答1: You will find the official documentation about WP 7.1 and WP 8 platform compatibility in the following link: App platform compatibility for Windows Phone Although in general any WP7 app will run without problem in a WP 8 device, this documentation addresses some cases where the behavior may be different. So, if you don't use

Windows Phone 8 SDK WebClient Encoding Issue

六眼飞鱼酱① 提交于 2020-01-03 04:22:18
问题 I'm trying to parse html from a site using windows-1254 charset. but all Turkish characters shown like this: � � � � � Where is the actual problem? I did try these: webClient.Encoding = System.Text.Encoding.UTF8 webClient.Encoding = System.Text.Encoding.GetString("UTF-8"); as function this: public string ReplaceText(string _text) { _text = _text.Replace("İ", "İ").Replace("ı", "ı").Replace("ü", "ü").Replace("ÅŸ", "ş").Replace("Å", "Ş").Replace("ç", "ç").Replace("ö", "ö").Replace("ÄŸ", "ğ"

How to upload image wp7 serverside.?

扶醉桌前 提交于 2020-01-03 04:20:29
问题 hello I have IsolatedStorageFile and this file is image so I want to upload this image to the serverside for the use of Avatar so how I can upload my byte[] of image. my code like this. using (IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication()) { // Open the file - error handling omitted for brevity // Note: If the image does not exist in isolated storage the following exception will be generated: // System.IO.IsolatedStorage.IsolatedStorageException was unhandled //

Windows Phone 7: All I get is System.MethodAccessException

自古美人都是妖i 提交于 2020-01-03 02:57:09
问题 This is my first time to develop apps in Windows Phone 7 and I was not that welcome. LOL. Anyways, my problem is this MethodAccessException and am not sure why it keeps throwing me that exception. Here's what I was trying to do. Getting Application StartUp Path by : System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase System.Reflection.Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName API: [DllImport("coredll.dll", SetLastError = true)] public static extern

VB silverlight for windows phone “Handles clause requires a WithEvents variable defined in the containing type or one of its base types”

╄→尐↘猪︶ㄣ 提交于 2020-01-03 02:54:11
问题 When I am selecting a button from the .xaml file and then tap event from the right (in order to set the tap event) it auto generates this sub: Private Sub btn(ByRef sender As Object, e As System.Windows.RoutedEventArgs) Handles btn.Tap End Sub But it also has this error: Error 1 Handles clause requires a WithEvents variable defined in the containing type or one of its base types. Any suggestions? Thank you! 回答1: Public WithEvents btn As Button just above the sub in order to send away the bug

PivotControl item changing behavior in Silverlight Windows Phone 7

℡╲_俬逩灬. 提交于 2020-01-03 02:32:27
问题 I have an app where the user is sent to a page with a PivotControl . The SelectedIndex is not known until the user navigates to the page. I'm setting the SelectedIndex , but it causes the PivotControl to start on index 0, then flip through to the index I set. This is kind of annoying, and I'd rather just have it go directly to the index I set. Is there some way around this? One hack I thought up was providing the data to pivotControl.ItemsSource in an order such that the item I want the user

The current display adapter does not meet the emulator requirements to run XNA Framework applications

三世轮回 提交于 2020-01-03 02:28:10
问题 hi * I create a Windows Phone Game (4.0) application in Visual Studio 2010 and Win7. My application build successfully but when run it, throw an error that says: "The current display adapter does not meet the emulator requirements to run XNA Framework applications." What should I do, to remove this error? 回答1: Thanks for your thread. Followed the links ... Ended up downloading the latest DirectX Version Dated: 11/30/2010. It cleared up the error message. Given the time that past this may not

Zip library for Windows Phone 7

你离开我真会死。 提交于 2020-01-03 02:27:13
问题 I'm downloading zip files and place them in isolated storage on Windows Phone 7. Is there an API or library that allows me to unzip the files? 回答1: You can use SharpZipLib to decompress downloaded zip files. I have used this version (binaries downloaded from Codeplex) in my applications without any issues, however, I would recommend download the source and compiling it yourself. The decompressed file can be read into a string - // check for magic numbers if (data.Length > 2 && (data[0] == 31

WP7 - Cancelling ContextMenu click event propagation

冷暖自知 提交于 2020-01-03 01:52:11
问题 I'm having a problem when the Silverlight toolkit's ContextMenu is clicked while it is over a UIElement that has registered a Tap event GestureListener . The context menu click propagates to the underlying element and fires its tap event. For instance, say I have a ListBox and each ListBoxItem within it has registered both a ContextMenu and a Tap GestureListener . Assume that clicking context menu item2 is supposed to take you to Page1.xaml, while tapping on any of ListBox items themselves is