windows-phone-7.1

Windows Phone SDK - What can I use instead of System.Web?

情到浓时终转凉″ 提交于 2019-12-23 04:38:11
问题 I am fairly new to Windows Phone development, and I have a lot of classes that I thought would be straightforward by using some function in System.Web (namely, HttpUtility.ParseQueryString ). But it seems that System.Web is not available on Windows Phone ? Is this correct? Or might I just be missing a way of adding it? I'd really like to not have to hand write functions like ParseQueryString . Any advice on how to get a reference to System.Web in my Windows Phone app? Cheers! Brett 回答1: It

Creating an application with multiple targets in Windows Phone 7

女生的网名这么多〃 提交于 2019-12-23 03:47:09
问题 Is there any way to create a project/application which will have multiple targets. Its same as how we create multiple targets for an iPhone application in XCode. Basically I have an app which has to be made for different targets, with almost all the similar functionalities but with little change. 回答1: You can use Configuration Manager to add additional configurations to the list of Debug and Release. Then for each configuration go to Project/Properties/Build/Conditional compilation symbols

ListBox scrolling event in MVVM WPF

夙愿已清 提交于 2019-12-22 00:35:19
问题 Is there a way to hook to scroll event in WPF (Windows Phone7), in a MVVM manner? I'd like to detect when the list is scrolled to the bottom, and then do something. I tried something like this, but obviously it won't work: <ListBox ItemsSource="{Binding Places}" SelectedItem="{Binding SelectedPlace, Mode=TwoWay}"> <i:Interaction.Triggers> <i:EventTrigger EventName="Tap"> <i:InvokeCommandAction Command="{Binding ListBoxClick}"/> </i:EventTrigger> <i:EventTrigger EventName="Scroll"> <i

access to input data from microphone in WP7?

爷,独闯天下 提交于 2019-12-21 22:21:52
问题 How can I access to input data from microphone in Windows Phone 7.0 or 7.1? (like a Volume Meter), i want to detect start and end input data from microphone. 回答1: Have a look at How to: Access the Microphone in a Silverlight Application for Windows Phone for basic usage. If you want to detect the start and stop of certain audio input you'll have to parse/process the returned stream yourself. 回答2: This blog post also has a great tutorial (and code) showing how you access the microphone in WP7

How can I get the page title in WebBrowser control?

旧巷老猫 提交于 2019-12-21 03:47:06
问题 How can I get the page title in a WebBrowser control when I navigate to different websites? xmlns xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" Properties starting with D DataContext DesiredSize Dispatcher DoubleTap xaml tag <phone:WebBrowser Name="browser" Height="760" VerticalAlignment="Top"></phone:WebBrowser> 回答1: I had the same problem. @Akash Kava's answer is almost correct but this is the correct javascript to read the html title: String title = (string

Implementing mutex and monitor in WP7 Mango

一曲冷凌霜 提交于 2019-12-21 03:01:15
问题 what is the difference between mutex and monitor implementation. Can any one please help me to learn both of these for wp7(implementable code for wp7). Please try to add some code snippets that help me to understand the techniques in a simple way. Thanx in advance Stezma 回答1: A mutex can lock across multiple processes. This would be useful in Windows Phone if you have a scheduled task running that needs exclusive access to a resource. In order to lock a mutex across processes the Mutex must

Unable to use System.Threading.Tasks in WP7 application

泪湿孤枕 提交于 2019-12-20 21:46:07
问题 I recently completed a library for a online storage website that allows for me to call the PHP exposed RESTs between the file storage website and a windows form desktop client + Outlook add in. Now, here is a question that has the code sample for the most basic operation in the library: Gracefully killing a TPL Task. I'm linking it for reference only. My next objective is a Windows Phone 7 client. I knew I simply cannot use the same library as I need a different kind of class library for a

UnhandledException in WP7

北城余情 提交于 2019-12-20 10:38:22
问题 I am getting this weird error when making a WP7 app, and I can not see why. The only output/ error message I get is "UnhandledException: The parameter is incorrect. : : : ProgramName.App" This error occurs randomly, and I do not get any information from the debugger on how to resolve it. When I run the same code twice, one time it gets the error, and the other time it does not. So, have any of you got this error before, and can maybe tell me why it is happening? This is so frustrating,

PushSharp + Windows Phone deep linking on Toast Notifcation

偶尔善良 提交于 2019-12-20 06:38:21
问题 When using PushSharp with Windows Phone, I'm sending the notification with a deep link to a view in my app. push.QueueNotification(new WindowsPhoneToastNotification() .ForEndpointUri(new Uri(endpoint)) .ForOSVersion(WindowsPhoneDeviceOSVersion.Eight) .WithBatchingInterval(BatchingInterval.Immediate) .WithNavigatePath("/Views/DetailView.xaml") .WithParameter("slug", slug) .WithText1(text) .WithText2(message)); But when the toast appears and I touch it to open the app, the app opens to my

JSON Deserializing for Windows Phone

隐身守侯 提交于 2019-12-20 06:23:57
问题 I am trying to deserialize the following JSON, but I really have no idea how to use JSON.net to do the work. I am using C# and JSON.Net library. My JSON is as follows: { "found": 3, "bounds": [ [ -43.54919, 172.62148 ], [ -43.54487, 172.63654 ] ], "features": [ { "id": 15342454, "centroid": { "type": "POINT", "coordinates": [ -43.54779, 172.62148 ] }, "bounds": [ [ -43.54779, 172.62148 ], [ -43.54779, 172.62148 ] ], "properties": { "osm_element": "node", "amenity": "toilets", "synthesized