windows-phone-7

Work with Web API and Windows Phone

ε祈祈猫儿з 提交于 2020-01-03 06:21:21
问题 I am developing a solution that is composed of two elements: a web server, which publishes some REST services, and a mobile client, which consumes those services. To implement the REST services I have used the Web API technology. When I start the web project in debug, everything works fine. I can use the services by pointing to localhost:63954/api. A weird fact: if I change "localhost" with "127.0.0.1" or with the LAN address of the machine, 192.168.xxx.xxx, the server does not answer anymore

Change the color of the keyboard in windows phone 7?

孤人 提交于 2020-01-03 06:04:22
问题 When people select the light theme the keyboard changes to a light color. Unfortunately this doesn't contrast very well with the branding in the app I'm making. I'm not sure if we can do this but is it possible to change the background and foreground of the keyboard or is this dependent on what theme the user has selected? I originally thought it wasn't possible but with Mango we can change the system tray and app bar. Seems like the keyboard could be modified also. 回答1: It's not possible as

Binding to another viewmodel

扶醉桌前 提交于 2020-01-03 06:02:46
问题 I am trying to bind a visibility property to a function I made in a viewmodel ( MainViewModel ), but I am getting this error: A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll System.Windows.Data Error: BindingExpression path error: 'Main' property not found on 'Locator' 'System.String' (HashCode=-191326816). BindingExpression: Path='Main.TilesHomeViewVisible' DataItem='Locator' (HashCode=-191326816); target element is 'myApp.Views.TilesHomeView'

Change the color of the keyboard in windows phone 7?

可紊 提交于 2020-01-03 06:01:07
问题 When people select the light theme the keyboard changes to a light color. Unfortunately this doesn't contrast very well with the branding in the app I'm making. I'm not sure if we can do this but is it possible to change the background and foreground of the keyboard or is this dependent on what theme the user has selected? I originally thought it wasn't possible but with Mango we can change the system tray and app bar. Seems like the keyboard could be modified also. 回答1: It's not possible as

Test App failing on Back Button… Windows Phone 7

。_饼干妹妹 提交于 2020-01-03 05:55:10
问题 Ok this question stems from this question: wp7: App failing! Can not figure out where? I thought it was corrected but it is still failing. I ripped out all of the app.xaml.cs code and it still crashing when the search button is clicked and the back button is immediately pressed. So... I decided to see if I could replicate the issue with a new test app. Basically I have create a basic pivot application with the default Main View Model. None of my code exists... I press the search button and

Device Discovery in Windows phone 7

北城余情 提交于 2020-01-03 05:48:06
问题 i am not able to detect devices present in the network. There are two application I am using. One is written in C++ and another is windows phone 7 app. From Wp7 i am sending UDP broadcast that I referred from How to broadcast a UDP packet on WP7 Mango? I am able to broadcast message from wp7 and receiving in C++ app.But I am not able to receive UDP packet from C++ code. Here is my code. C# code private void PageTitle_Tap(object sender, GestureEventArgs e) { var ipAddress = IPAddress.Parse(

How to cancel Rx Based Web Request in Windows Phone 7

痞子三分冷 提交于 2020-01-03 05:23:15
问题 In my application i am using a Rx based web request for fetching the data from the server. Suppose if i want to cancel the request, what i need to do? 回答1: Try using the extension method TakeUntil(someEvent), before Subscribe, where SomeEvent could be an Observable.FromEventPattern fired from button click event, for example. Let us know, regards, 回答2: If you're asking how to cancel the subscription to an observable that is performing the web request then all you need to do is call .Dispose()

Rotate a Style image on Windows Phone

馋奶兔 提交于 2020-01-03 05:18:18
问题 The answer I found at: How to rotate an image to a particular angle in Windows Phone 7 Silverlight Application? is close to what I am looking for. My question is - how can I do this if the image is part of a style? The image is basically an arrow pointing in the direction of movement (track). <Style x:Key="MyBoatPushPinStyle" TargetType="maps:Pushpin"> <Setter Property="Template"> <Setter.Value> <ControlTemplate> <Image x:Name="MyBoatIcon" Source="Resources/Icons/myboat.png" Stretch="None">

Windows phone 7 Toast notification with app in foreground

梦想与她 提交于 2020-01-03 05:11:19
问题 Quick question. I did this: myChannel.ShellToastNotificationReceived += new EventHandler<NotificationEventArgs>(myChannel_ShellToastNotificationReceived); So if I receive a toast notification while the application is in the foreground the myChannel_ShellToastNotificationReceived function should be called. In that function I have: void myChannel_ShellToastNotificationReceived(object sender, NotificationEventArgs e) { Dispatcher.BeginInvoke(() => { ApplicationTitle.Text = "Toast Notification

How i Scroll web browser control in wp7

倖福魔咒の 提交于 2020-01-03 05:01:09
问题 i want to swipe webbrowser Control which is on pivot item ,each pivot item has a web control .i want to swipe with web browser control . but i don't have any idea.but swiping is necessary in my project .is there any method to doing this if yes then please send me sample code for this .. 回答1: This is a bind if you have some different sections of HTML you want to display in a Pivot. If you are targetting WP7 Mango it might be possible for you to convert your HTML to RTF and then use a