Created
June 25, 2012 06:12
-
-
Save anuith/2986936 to your computer and use it in GitHub Desktop.
Windows Phone Hackathon : Bing Map Sample - Code - Application Bar Events
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void ApplicationBarMenu_Reset_Click(object sender, System.EventArgs e) | |
| { | |
| ResetMap(); | |
| } | |
| private void ApplicationBarButton_FindMe_Click(object sender, System.EventArgs e) | |
| { | |
| FindMe(); | |
| } | |
| private void ApplicationBarButton_ZoomIn_Click(object sender, System.EventArgs e) | |
| { | |
| if (Map_Main.ZoomLevel < 19) | |
| { | |
| Map_Main.ZoomLevel += 1; | |
| } | |
| } | |
| private void ApplicationBarButton_ZoomOut_Click(object sender, System.EventArgs e) | |
| { | |
| if (Map_Main.ZoomLevel > 1) | |
| { | |
| Map_Main.ZoomLevel -= 1; | |
| } | |
| } | |
| private bool isAerialMode = false; | |
| private void ApplicationBarButton_MapMode_Click(object sender, System.EventArgs e) | |
| { | |
| if (isAerialMode) | |
| { | |
| Map_Main.Mode = new RoadMode(); | |
| isAerialMode = false; | |
| } | |
| else | |
| { | |
| Map_Main.Mode = new AerialMode(); | |
| isAerialMode = true; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment