windows-phone-7.1

Calculate and draw route on Bing Maps control

白昼怎懂夜的黑 提交于 2019-11-29 22:07:43
问题 in my app for WP7(mango) I need to navigate the user from one point to another. I know there is the Map control that lets you draw staff on it, but how do you ask it to draw the path for you? (based on the specified destination & user's current location - but that keeps changing so how do you update the route if he goes of the way?) 回答1: To update the map with the users current location, use the GeoCoordinateWatcher and update the position of a databound Pushpin as it changes. Remember to set

How to remove the black space around the button in WP7?

谁说胖子不能爱 提交于 2019-11-29 20:56:38
问题 As I see, WP7 buttons are surrounded by a black space of some pixels. How I can remove it? I've read this post, but I didn't managed to remove it! Could you please give a working example? I've tried to wrap button with <Border... /> element, but it didn't work. this is my XAML <ItemsControl Name="icCells" Grid.Row="1"> <ItemsControl.ItemTemplate> <DataTemplate> <Button Background="Red" BorderThickness="0" Width="40" Height="40" BorderBrush="Green" Padding="0" Margin="0" /> </DataTemplate> <

Need clarification on using audio on button click, background audio, etc in Windows Phone

前提是你 提交于 2019-11-29 17:32:20
This is a WP 7.1/7.5/Mango Silverlight app. I have a requirement where I need to play sounds on image click (3-4 images) and also an audio plays when user navigates to the page first time. So I implemented that using MediaElement as mentioned here: Windows Phone 7.1 - Media Element not playing Issue: Now I was testing the app. I started playing radio on the phone. Then started my app. Radio was still playing. Now when I navigated to the page that has audion on page Load, radio stopped. Certification Requirements (6.5 - Non Music..) is very confusing: http://msdn.microsoft.com/en-us/library

Not Able To Install Apache Cordova for Windows Phone7

喜夏-厌秋 提交于 2019-11-29 12:00:15
I am Trying To create an Application with Apache Cordova(Phonegap) For windows phone7.I followed the link Apache Cordova For phone7 and the problem is am not able to find CordovaStarter-x.x.x.zip file in the downloaded content as mentioned in the instruction, Download Link .Plz sort out my problem.Thank you In fact, VS templates is not bundled with phonegap 2.1. In order to 'install' a template, you will need to build the template. Simply open templates\full\CordovaSolution.sln in Visual Studio and from the file menu, choose 'Export Template'. You can also test the sample solution located here

Add a Load More Button at the end of ListBox without losing Virtualization?

眉间皱痕 提交于 2019-11-29 11:23:20
I know by editing the ListBox 's default style like this, I can have a Button at the very end of the ListBox . <ScrollViewer x:Name="ScrollViewer" ...> <StackPanel> <ItemsPresenter /> <Button /> </StackPanel> </ScrollViewer> However, doing this will break the ListBox 's Virtualization and the rendering time becomes really long. All I can think of is, Create a dummy item and add it to the end of my item collection in the viewmodel, and have a Visibility property in the dummy object called ButtonGridVisibility and set it to Visibility.Visible . In my ListBox 's ItemTemplate , have two Grids .

How to create a continuum animation in Windows Phone 7?

ぐ巨炮叔叔 提交于 2019-11-29 09:22:25
问题 I know there is a continuum transition in windows phone 7 and it doesn't seem to be included in the silverlight toolkit yet. Any ideas how to create one? Thanks in adv. :) UPDATE At last I took some code from Kevin Marshall's excellent post regarding wp7 page transitions and I think this post will give you a good start. :) 回答1: I'm not entirely sure which animation you're referring to as continuum however if it's the one I think you're talking about then Metro in Motion Part #3 - Flying

Want to start with Windows Phone 7 development [closed]

旧时模样 提交于 2019-11-28 15:12:20
问题 As just now, I heard about the Windows Phone 7 development. So I would like to know the following things regarding Windows Phone 7: From where can I start with Windows Phone 7 development? What are the best books/article/code blog/tutorial, etc. Which are the tools I should need/download to start with Windows Phone 7 development? Update: I found this very much helpful: http://www.devx.com/VS_2010/Article/45898/9851 回答1: You can get started by downloading the tools and registering to publish

WP7: Is it possible to intercept the backstack before the journal thumbnail is created/stored

孤街浪徒 提交于 2019-11-28 13:49:29
You all know the Windows Phone backstack right. If you go through some apps, tap the Home key after starting each app. Now tap and hold the Backkey to see the Backstack. You can now see some small images of your apps, and can pick which one to go to right. Question: Is it possible to intercept before the backstack image is created? I have tried to blur my page in various events (include OnNavigatingFrom) to no avail. My guess is some other event (probably something we don't have access to) is triggered and a bitmap is created, because when you use the Backstack to navigate you can just see a

Need clarification on using audio on button click, background audio, etc in Windows Phone

十年热恋 提交于 2019-11-28 13:02:27
问题 This is a WP 7.1/7.5/Mango Silverlight app. I have a requirement where I need to play sounds on image click (3-4 images) and also an audio plays when user navigates to the page first time. So I implemented that using MediaElement as mentioned here: Windows Phone 7.1 - Media Element not playing Issue: Now I was testing the app. I started playing radio on the phone. Then started my app. Radio was still playing. Now when I navigated to the page that has audion on page Load, radio stopped.

determine if “24-hour clock” setting is set

。_饼干妹妹 提交于 2019-11-28 12:37:53
What's the best way to determine if the user has set the "24-hour clock" setting to true in Settings-Date+Time on the Windows Phone ? Can I get this information through the CurrentCulture (CultureInfo) ? I had no luck in finding it. user994597 The system clock type can be retrieved using: string clockType = Windows.System.UserProfile.GlobalizationPreferences.Clocks.FirstOrDefault(); This will return the string 24HourClock if the 24 hour setting is on in the device settings or 12HourClock if the setting is off. On the back of Dennis' answer, you should be able to determine 24-hour time using