Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Version 0.9.7.8 - The final touch

Another huge contribution by Eran Gonen:
- Settings are now implemented using native controls. Panorama screen allows you to edit all settings in one place.
- Alternate routes are available using native dialogs.
- Navigation dialog now contains the destination and the dialog is finally properly aligned.
Courtesy of Noam Ben-Yochanan:
- Waze initial position is no longer Bavli Tel Aviv but the current one.
- Clicking on app-bar area does not count as clicking on map anymore
Also:
- Stabilization improvements - several null exceptions that were reported were fixed.
- Scoreboard (ניקוד) now opens the browser with your stats.
Reminder:
- We have the Navigation List (מסלול) menu option the lists the navigation route steps.
  • Loading branch information...
commit a65d96338762af107c582b609d61eb7a4e6bf5ad 1 parent 9a47971
@meirtsvi authored
Showing with 571,256 additions and 570,293 deletions.
  1. BIN  Toolkit/Design/Microsoft.Phone.Controls.Toolkit.Design.dll
  2. BIN  Toolkit/Design/Microsoft.Phone.Controls.Toolkit.VisualStudio.Design.dll
  3. BIN  Toolkit/Microsoft.Phone.Controls.Toolkit.dll
  4. BIN  Toolkit/Microsoft.Phone.Controls.Toolkit.pdb
  5. +372 −48 Toolkit/Microsoft.Phone.Controls.Toolkit.xml
  6. +2 −1  WazeWP7/AboutDialog.xaml
  7. +140 −0 WazeWP7/AlternativeRoutesPage.xaml
  8. +229 −0 WazeWP7/AlternativeRoutesPage.xaml.cs
  9. +42 −36 WazeWP7/App.xaml
  10. +3,252 −3,254 WazeWP7/CibylCallTable.cs
  11. +2 −1  WazeWP7/FreeMapMainScreen.xaml
  12. +9 −2 WazeWP7/FreeMapMainScreen.xaml.cs
  13. +4 −5 WazeWP7/GenericListPage.xaml
  14. +18 −5 WazeWP7/GenericListPage.xaml.cs
  15. +15 −6 WazeWP7/GenericListPageContext.cs
  16. +2 −1  WazeWP7/GpsManager.cs
  17. +37 −0 WazeWP7/ImageButton.cs
  18. +2 −1  WazeWP7/InputDialog.xaml
  19. +1 −1  WazeWP7/InputDialog.xaml.cs
  20. +87 −41 WazeWP7/LanguageResources.cs
  21. +97 −0 WazeWP7/NavigateResultControl.xaml
  22. +175 −0 WazeWP7/NavigateResultControl.xaml.cs
  23. +3 −1 WazeWP7/ProgressDialog.xaml
  24. +3 −8 WazeWP7/ProgressDialog.xaml.cs
  25. +2 −2 WazeWP7/Properties/AssemblyInfo.cs
  26. +3 −1 WazeWP7/RTLMessageBox.xaml
  27. +3 −7 WazeWP7/RTLMessageBox.xaml.cs
  28. BIN  WazeWP7/Resources/appbar.cancel.rest.png
  29. BIN  WazeWP7/Resources/appbar.feature.settings.rest.png
  30. BIN  WazeWP7/Resources/appbar.save.rest.png
  31. BIN  WazeWP7/Resources/program.data.bin
  32. +254 −0 WazeWP7/SettingsPivotPage.xaml
  33. +377 −0 WazeWP7/SettingsPivotPage.xaml.cs
  34. +5 −6 WazeWP7/SignInPage.xaml
  35. +5 −6 WazeWP7/SignInPage.xaml.cs
  36. +9 −7 WazeWP7/SignUpPage.xaml
  37. +4 −5 WazeWP7/SignUpPage.xaml.cs
  38. +112 −0 WazeWP7/SimpleToggleSwitch.cs
  39. +1 −1  WazeWP7/SingleSearchPage.xaml
  40. +3 −5 WazeWP7/SingleSearchPage.xaml.cs
  41. +1 −1  WazeWP7/SingleSearchResultsPivotPage.xaml
  42. +6 −6 WazeWP7/SingleSearchResultsPivotPage.xaml.cs
  43. +260 −19 WazeWP7/Syscalls.cs
  44. +5 −2 WazeWP7/UIWorker.cs
  45. +32 −0 WazeWP7/WazeWP75.csproj
  46. BIN  WazeWP7/WazeWP75.suo
  47. +13 −21 WazeWP7/WelcomePage.xaml
  48. +3 −4 WazeWP7/WelcomePage.xaml.cs
  49. BIN  bb_waze_code/j2me/c/program
  50. +50 −50 bb_waze_code/j2me/include/cibyl-softfloat.h
  51. BIN  bb_waze_code/j2me/include/cibyl-syscalls.db
  52. +3 −3 bb_waze_code/j2me/include/command_mgr.h
  53. +3 −3 bb_waze_code/j2me/include/device_specific.h
  54. +4 −4 bb_waze_code/j2me/include/form_command_mgr.h
  55. +11 −11 bb_waze_code/j2me/include/gps_manager.h
  56. +3 −3 bb_waze_code/j2me/include/javax/microedition/__alert.h
  57. +13 −13 bb_waze_code/j2me/include/javax/microedition/__font.h
  58. +39 −39 bb_waze_code/j2me/include/javax/microedition/io.h
  59. +61 −61 bb_waze_code/j2me/include/javax/microedition/lcdui.h
  60. +25 −25 bb_waze_code/j2me/include/javax/microedition/lcdui/game.h
  61. +1 −1  bb_waze_code/j2me/include/javax/microedition/media.h
  62. +2 −2 bb_waze_code/j2me/include/javax/microedition/midlet.h
  63. +2 −2 bb_waze_code/j2me/include/rim_timer_mgr.h
  64. +126 −59 bb_waze_code/j2me/include/rimapi.h
  65. +7 −7 bb_waze_code/j2me/include/rimapi_os5.h
  66. +2 −2 bb_waze_code/j2me/include/roadmap_math_j2me.h
  67. +3 −3 bb_waze_code/j2me/include/setjmp.h
  68. +3 −3 bb_waze_code/j2me/include/stdio.h
  69. +4 −4 bb_waze_code/j2me/include/stdlib.h
  70. +9 −9 bb_waze_code/j2me/include/string.h
  71. +6 −6 bb_waze_code/j2me/include/tile_storage.h
  72. +2 −2 bb_waze_code/j2me/include/time.h
  73. +4 −4 bb_waze_code/j2me/include/timer_mgr.h
  74. +13 −0 bb_waze_code/j2me/syscalls/rimapi/include/rimapi.h
  75. +169 −169 bb_waze_code/src/navigate/navigate_cost.c
  76. +13 −153 bb_waze_code/src/navigate/navigate_res_dlg.c
  77. +1 −0  bb_waze_code/src/navigate/navigate_route_trans.c
  78. +1,617 −1,867 bb_waze_code/src/roadmap_alternative_routes.c
  79. +1 −1  bb_waze_code/src/roadmap_download_settings.c
  80. +1,175 −831 bb_waze_code/src/roadmap_general_settings.c
  81. +1 −0  bb_waze_code/src/roadmap_general_settings.h
  82. +5 −0 bb_waze_code/src/roadmap_lang.c
  83. +112 −111 bb_waze_code/src/roadmap_log.c
  84. +8 −7 bb_waze_code/src/roadmap_map_settings.c
  85. +2 −0  bb_waze_code/src/roadmap_prompts.c
  86. +0 −17 bb_waze_code/src/roadmap_search.c
  87. +3 −3 bb_waze_code/src/roadmap_square.c
  88. +572 −568 bb_waze_code/src/roadmap_start.c
  89. +3 −3 bb_waze_code/src/roadmap_welcome_wizard.c
  90. BIN  cibyl/mips-cibyl-elf/mips-cibyl-elf/sys-root/usr/include/cibyl-syscalls.db
  91. +172 −172 converted/Cibyl.j
  92. +118 −118 converted/Cibyl1.j
  93. +4,504 −4,333 converted/Cibyl10.j
  94. +4,915 −8,078 converted/Cibyl100.j
  95. +4,447 −4,696 converted/Cibyl101.j
  96. +5,251 −4,186 converted/Cibyl102.j
  97. +3,431 −5,730 converted/Cibyl103.j
  98. +9,257 −4,018 converted/Cibyl104.j
  99. +5,031 −8,851 converted/Cibyl105.j
  100. +5,235 −5,011 converted/Cibyl106.j
  101. +5,046 −5,200 converted/Cibyl107.j
  102. +5,119 −5,074 converted/Cibyl108.j
  103. +6,252 −4,837 converted/Cibyl109.j
  104. +6,541 −4,670 converted/Cibyl11.j
  105. +4,816 −6,351 converted/Cibyl110.j
  106. +4,768 −4,753 converted/Cibyl111.j
  107. +5,109 −4,668 converted/Cibyl112.j
  108. +4,722 −5,362 converted/Cibyl113.j
  109. +5,727 −4,749 converted/Cibyl114.j
  110. +4,603 −5,674 converted/Cibyl115.j
  111. +5,053 −4,717 converted/Cibyl116.j
  112. +5,614 −5,165 converted/Cibyl117.j
  113. +4,984 −5,288 converted/Cibyl118.j
  114. +4,483 −5,242 converted/Cibyl119.j
  115. +4,755 −4,784 converted/Cibyl12.j
  116. +5,319 −4,838 converted/Cibyl120.j
  117. +4,988 −5,217 converted/Cibyl121.j
  118. +5,420 −5,012 converted/Cibyl122.j
  119. +5,855 −4,573 converted/Cibyl123.j
  120. +4,561 −6,141 converted/Cibyl124.j
  121. +5,408 −4,176 converted/Cibyl125.j
  122. +5,271 −4,472 converted/Cibyl126.j
  123. +4,432 −4,917 converted/Cibyl127.j
  124. +5,276 −5,072 converted/Cibyl128.j
  125. +1,657 −5,394 converted/Cibyl129.j
  126. +4,912 −4,528 converted/Cibyl13.j
  127. +1,283 −1,283 converted/Cibyl130.j
  128. +1,352 −1,352 converted/Cibyl131.j
  129. +1,763 −1,763 converted/Cibyl132.j
  130. +2,043 −2,043 converted/Cibyl133.j
  131. +1,441 −1,441 converted/Cibyl134.j
  132. +1,357 −1,357 converted/Cibyl135.j
  133. +1,300 −1,300 converted/Cibyl136.j
  134. +1,311 −1,311 converted/Cibyl137.j
  135. +1,336 −1,336 converted/Cibyl138.j
  136. +1,637 −1,637 converted/Cibyl139.j
  137. +5,024 −4,731 converted/Cibyl14.j
  138. +1,500 −1,500 converted/Cibyl140.j
  139. +1,682 −1,682 converted/Cibyl141.j
  140. +1,389 −1,389 converted/Cibyl142.j
  141. +1,575 −1,575 converted/Cibyl143.j
  142. +1,248 −1,248 converted/Cibyl144.j
  143. +1,446 −1,446 converted/Cibyl145.j
  144. +639 −639 converted/Cibyl146.j
  145. +5,958 −3,979 converted/Cibyl147.j
  146. +2,512 −6,270 converted/Cibyl148.j
  147. +4,688 −4,596 converted/Cibyl15.j
  148. +6,897 −5,226 converted/Cibyl16.j
  149. +5,698 −4,512 converted/Cibyl17.j
  150. +4,747 −5,236 converted/Cibyl18.j
  151. +6,136 −5,209 converted/Cibyl19.j
  152. +203 −203 converted/Cibyl2.j
  153. +4,680 −5,449 converted/Cibyl20.j
  154. +5,001 −4,799 converted/Cibyl21.j
  155. +4,606 −5,795 converted/Cibyl22.j
  156. +5,097 −4,409 converted/Cibyl23.j
  157. +4,955 −5,666 converted/Cibyl24.j
  158. +6,079 −5,279 converted/Cibyl25.j
  159. +1,362 −6,743 converted/Cibyl26.j
  160. +1,531 −1,531 converted/Cibyl27.j
  161. +1,375 −1,375 converted/Cibyl28.j
  162. +2,351 −2,351 converted/Cibyl29.j
  163. +273 −273 converted/Cibyl3.j
  164. +1,254 −1,254 converted/Cibyl30.j
  165. +2,047 −2,047 converted/Cibyl31.j
  166. +1,339 −1,339 converted/Cibyl32.j
  167. +1,513 −1,513 converted/Cibyl33.j
  168. +1,651 −1,651 converted/Cibyl34.j
  169. +1,526 −1,526 converted/Cibyl35.j
  170. +1,469 −1,469 converted/Cibyl36.j
  171. +1,319 −1,319 converted/Cibyl37.j
  172. +1,622 −1,622 converted/Cibyl38.j
  173. +1,431 −1,431 converted/Cibyl39.j
  174. +164 −164 converted/Cibyl4.j
  175. +1,298 −1,298 converted/Cibyl40.j
  176. +1,237 −1,237 converted/Cibyl41.j
  177. +1,655 −1,655 converted/Cibyl42.j
  178. +1,336 −1,336 converted/Cibyl43.j
  179. +1,514 −1,514 converted/Cibyl44.j
  180. +1,432 −1,432 converted/Cibyl45.j
  181. +1,411 −1,411 converted/Cibyl46.j
  182. +1,366 −1,366 converted/Cibyl47.j
  183. +1,272 −1,272 converted/Cibyl48.j
  184. +1,730 −1,730 converted/Cibyl49.j
  185. +234 −234 converted/Cibyl5.j
  186. +1,761 −1,722 converted/Cibyl50.j
  187. +1,314 −1,314 converted/Cibyl51.j
  188. +4,293 −4,746 converted/Cibyl52.j
  189. +4,340 −4,656 converted/Cibyl53.j
  190. +6,896 −5,023 converted/Cibyl54.j
  191. +5,332 −4,824 converted/Cibyl55.j
  192. +4,793 −5,051 converted/Cibyl56.j
  193. +4,774 −5,650 converted/Cibyl57.j
  194. +5,120 −5,254 converted/Cibyl58.j
  195. +5,240 −5,193 converted/Cibyl59.j
  196. +283 −283 converted/Cibyl6.j
  197. +4,298 −4,808 converted/Cibyl60.j
  198. +4,875 −4,769 converted/Cibyl61.j
  199. +5,016 −4,625 converted/Cibyl62.j
  200. +5,276 −5,035 converted/Cibyl63.j
  201. +5,146 −5,006 converted/Cibyl64.j
  202. +5,878 −7,228 converted/Cibyl65.j
  203. +5,425 −5,031 converted/Cibyl66.j
  204. +4,915 −4,628 converted/Cibyl67.j
  205. +5,512 −5,681 converted/Cibyl68.j
  206. +7,475 −4,655 converted/Cibyl69.j
  207. +259 −259 converted/Cibyl7.j
  208. +5,176 −4,969 converted/Cibyl70.j
  209. +4,914 −5,336 converted/Cibyl71.j
  210. +5,023 −4,856 converted/Cibyl72.j
  211. +6,421 −4,883 converted/Cibyl73.j
  212. +4,691 −6,427 converted/Cibyl74.j
  213. +6,547 −4,247 converted/Cibyl75.j
  214. +4,658 −6,753 converted/Cibyl76.j
  215. +4,242 −5,146 converted/Cibyl77.j
  216. +4,896 −4,213 converted/Cibyl78.j
  217. +5,959 −4,702 converted/Cibyl79.j
  218. +1,610 −1,440 converted/Cibyl8.j
  219. +4,780 −5,310 converted/Cibyl80.j
  220. +4,903 −4,946 converted/Cibyl81.j
  221. +4,681 −5,199 converted/Cibyl82.j
  222. +4,672 −4,384 converted/Cibyl83.j
  223. +4,083 −4,717 converted/Cibyl84.j
  224. +5,076 −4,291 converted/Cibyl85.j
  225. +4,876 −4,947 converted/Cibyl86.j
  226. +4,889 −4,783 converted/Cibyl87.j
  227. +5,518 −4,782 converted/Cibyl88.j
  228. +4,912 −6,135 converted/Cibyl89.j
  229. +2,095 −2,235 converted/Cibyl9.j
  230. +5,246 −5,026 converted/Cibyl90.j
  231. +5,128 −4,641 converted/Cibyl91.j
  232. +4,702 −5,294 converted/Cibyl92.j
  233. +6,260 −4,785 converted/Cibyl93.j
  234. +3,477 −6,081 converted/Cibyl94.j
  235. +4,331 −4,125 converted/Cibyl95.j
  236. +4,005 −4,267 converted/Cibyl96.j
  237. +5,846 −4,036 converted/Cibyl97.j
  238. +4,970 −5,452 converted/Cibyl98.j
  239. +8,433 −5,073 converted/Cibyl99.j
  240. BIN  converted/cibyl.dll
  241. BIN  converted/cibyl.pdb
View
BIN  Toolkit/Design/Microsoft.Phone.Controls.Toolkit.Design.dll
Binary file not shown
View
BIN  Toolkit/Design/Microsoft.Phone.Controls.Toolkit.VisualStudio.Design.dll
Binary file not shown
View
BIN  Toolkit/Microsoft.Phone.Controls.Toolkit.dll
Binary file not shown
View
BIN  Toolkit/Microsoft.Phone.Controls.Toolkit.pdb
Binary file not shown
View
420 Toolkit/Microsoft.Phone.Controls.Toolkit.xml
@@ -3451,6 +3451,7 @@
<summary>
Represents a pop-up menu that enables a control to expose functionality that is specific to the context of the control.
</summary>
+ <QualityBand>Preview</QualityBand>
</member>
<member name="T:Microsoft.Phone.Controls.Primitives.MenuBase">
<summary>
@@ -3703,7 +3704,7 @@
Set up the background and border default styles
</summary>
</member>
- <member name="M:Microsoft.Phone.Controls.ContextMenu.HandleStoryboardCompleted(System.Object,System.EventArgs)">
+ <member name="M:Microsoft.Phone.Controls.ContextMenu.OnStoryboardCompleted(System.Object,System.EventArgs)">
<summary>
Handles the Completed event of the opening Storyboard.
</summary>
@@ -3737,28 +3738,28 @@
</summary>
<param name="e">The event data for the KeyDown event.</param>
</member>
- <member name="M:Microsoft.Phone.Controls.ContextMenu.HandleLayoutUpdated(System.Object,System.EventArgs)">
+ <member name="M:Microsoft.Phone.Controls.ContextMenu.OnLayoutUpdated(System.Object,System.EventArgs)">
<summary>
Handles the LayoutUpdated event to capture Application.Current.RootVisual.
</summary>
<param name="sender">Source of the event.</param>
<param name="e">Event arguments.</param>
</member>
- <member name="M:Microsoft.Phone.Controls.ContextMenu.HandleRootVisualMouseMove(System.Object,System.Windows.Input.MouseEventArgs)">
+ <member name="M:Microsoft.Phone.Controls.ContextMenu.OnRootVisualMouseMove(System.Object,System.Windows.Input.MouseEventArgs)">
<summary>
Handles the RootVisual's MouseMove event to track the last mouse position.
</summary>
<param name="sender">Source of the event.</param>
<param name="e">Event arguments.</param>
</member>
- <member name="M:Microsoft.Phone.Controls.ContextMenu.HandleRootVisualManipulationCompleted(System.Object,System.Windows.Input.ManipulationCompletedEventArgs)">
+ <member name="M:Microsoft.Phone.Controls.ContextMenu.OnRootVisualManipulationCompleted(System.Object,System.Windows.Input.ManipulationCompletedEventArgs)">
<summary>
Handles the ManipulationCompleted event for the RootVisual.
</summary>
<param name="sender">Source of the event.</param>
<param name="e">Event arguments.</param>
</member>
- <member name="M:Microsoft.Phone.Controls.ContextMenu.HandleOwnerHold(System.Object,System.Windows.Input.GestureEventArgs)">
+ <member name="M:Microsoft.Phone.Controls.ContextMenu.OnOwnerHold(System.Object,System.Windows.Input.GestureEventArgs)">
<summary>
Handles the Hold event for the owning element.
</summary>
@@ -3784,28 +3785,28 @@
<param name="oldValue">Old value.</param>
<param name="newValue">New value.</param>
</member>
- <member name="M:Microsoft.Phone.Controls.ContextMenu.HandleEventThatClosesContextMenu(System.Object,System.EventArgs)">
+ <member name="M:Microsoft.Phone.Controls.ContextMenu.OnEventThatClosesContextMenu(System.Object,System.EventArgs)">
<summary>
Handles an event which should close an open ContextMenu.
</summary>
<param name="sender">Source of the event.</param>
<param name="e">Event arguments.</param>
</member>
- <member name="M:Microsoft.Phone.Controls.ContextMenu.HandleOwnerLoaded(System.Object,System.Windows.RoutedEventArgs)">
+ <member name="M:Microsoft.Phone.Controls.ContextMenu.OnOwnerLoaded(System.Object,System.Windows.RoutedEventArgs)">
<summary>
Handles the Loaded event of the Owner.
</summary>
<param name="sender">Source of the event.</param>
<param name="e">Event arguments.</param>
</member>
- <member name="M:Microsoft.Phone.Controls.ContextMenu.HandleOwnerUnloaded(System.Object,System.Windows.RoutedEventArgs)">
+ <member name="M:Microsoft.Phone.Controls.ContextMenu.OnOwnerUnloaded(System.Object,System.Windows.RoutedEventArgs)">
<summary>
Handles the Unloaded event of the Owner.
</summary>
<param name="sender">Source of the event.</param>
<param name="e">Event arguments.</param>
</member>
- <member name="M:Microsoft.Phone.Controls.ContextMenu.HandlePageBackKeyPress(System.Object,System.ComponentModel.CancelEventArgs)">
+ <member name="M:Microsoft.Phone.Controls.ContextMenu.OnPageBackKeyPress(System.Object,System.ComponentModel.CancelEventArgs)">
<summary>
Handles the BackKeyPress of the containing PhoneApplicationPage.
</summary>
@@ -3836,14 +3837,14 @@
Called when a child MenuItem is clicked.
</summary>
</member>
- <member name="M:Microsoft.Phone.Controls.ContextMenu.HandleContextMenuOrRootVisualSizeChanged(System.Object,System.Windows.SizeChangedEventArgs)">
+ <member name="M:Microsoft.Phone.Controls.ContextMenu.OnContextMenuOrRootVisualSizeChanged(System.Object,System.Windows.SizeChangedEventArgs)">
<summary>
Handles the SizeChanged event for the ContextMenu or RootVisual.
</summary>
<param name="sender">Source of the event.</param>
<param name="e">Event arguments.</param>
</member>
- <member name="M:Microsoft.Phone.Controls.ContextMenu.HandleOverlayMouseButtonUp(System.Object,System.Windows.Input.MouseButtonEventArgs)">
+ <member name="M:Microsoft.Phone.Controls.ContextMenu.OnOverlayMouseButtonUp(System.Object,System.Windows.Input.MouseButtonEventArgs)">
<summary>
Handles the MouseButtonUp events for the overlay.
</summary>
@@ -4252,7 +4253,7 @@
Called when a MenuItem is clicked and raises a Click event.
</summary>
</member>
- <member name="M:Microsoft.Phone.Controls.MenuItem.HandleCanExecuteChanged(System.Object,System.EventArgs)">
+ <member name="M:Microsoft.Phone.Controls.MenuItem.OnCanExecuteChanged(System.Object,System.EventArgs)">
<summary>
Handles the CanExecuteChanged event of the Command property.
</summary>
@@ -4268,14 +4269,14 @@
</remarks>
<param name="changeVisualState">True if ChangeVisualState should be called.</param>
</member>
- <member name="M:Microsoft.Phone.Controls.MenuItem.HandleIsEnabledChanged(System.Object,System.Windows.DependencyPropertyChangedEventArgs)">
+ <member name="M:Microsoft.Phone.Controls.MenuItem.OnIsEnabledChanged(System.Object,System.Windows.DependencyPropertyChangedEventArgs)">
<summary>
Called when the IsEnabled property changes.
</summary>
<param name="sender">Source of the event.</param>
<param name="e">Event arguments.</param>
</member>
- <member name="M:Microsoft.Phone.Controls.MenuItem.HandleLoaded(System.Object,System.Windows.RoutedEventArgs)">
+ <member name="M:Microsoft.Phone.Controls.MenuItem.OnLoaded(System.Object,System.Windows.RoutedEventArgs)">
<summary>
Called when the Loaded event is raised.
</summary>
@@ -4405,6 +4406,7 @@
<summary>
Date and time converter for daily feeds.
</summary>
+ <QualityBand>Preview</QualityBand>
</member>
<member name="M:Microsoft.Phone.Controls.DailyDateTimeConverter.Convert(System.Object,System.Type,System.Object,System.Globalization.CultureInfo)">
<summary>
@@ -4432,6 +4434,11 @@
<param name="culture">(Not used).</param>
<returns>null</returns>
</member>
+ <member name="T:Microsoft.Phone.Controls.DateTimeFormatHelper">
+ <summary>
+ Helper methods and constants for the date time converters.
+ </summary>
+ </member>
<member name="F:Microsoft.Phone.Controls.DateTimeFormatHelper.Hour">
<summary>
An hour defined in minutes.
@@ -4695,6 +4702,7 @@
<summary>
Date and time converter to display information in full format.
</summary>
+ <QualityBand>Preview</QualityBand>
</member>
<member name="M:Microsoft.Phone.Controls.FullViewDateTimeConverter.Convert(System.Object,System.Type,System.Object,System.Globalization.CultureInfo)">
<summary>
@@ -4730,6 +4738,7 @@
<summary>
Date and time converter for hourly feeds.
</summary>
+ <QualityBand>Preview</QualityBand>
</member>
<member name="M:Microsoft.Phone.Controls.HourlyDateTimeConverter.Convert(System.Object,System.Type,System.Object,System.Globalization.CultureInfo)">
<summary>
@@ -4761,6 +4770,7 @@
<summary>
Date and time converter to be used in list-views.
</summary>
+ <QualityBand>Preview</QualityBand>
</member>
<member name="M:Microsoft.Phone.Controls.ListViewDateTimeConverter.Convert(System.Object,System.Type,System.Object,System.Globalization.CultureInfo)">
<summary>
@@ -4795,6 +4805,7 @@
<summary>
Time converter to display elapsed time relatively to the present.
</summary>
+ <QualityBand>Preview</QualityBand>
</member>
<member name="F:Microsoft.Phone.Controls.RelativeTimeConverter.Minute">
<summary>
@@ -4923,6 +4934,7 @@
<summary>
Date and time converter for threads.
</summary>
+ <QualityBand>Preview</QualityBand>
</member>
<member name="M:Microsoft.Phone.Controls.ThreadDateTimeConverter.Convert(System.Object,System.Type,System.Object,System.Globalization.CultureInfo)">
<summary>
@@ -4957,6 +4969,7 @@
<summary>
Defines how the LoopingSelector communicates with data source.
</summary>
+ <QualityBand>Preview</QualityBand>
</member>
<member name="M:Microsoft.Phone.Controls.Primitives.ILoopingSelectorDataSource.GetNext(System.Object)">
<summary>
@@ -4986,6 +4999,7 @@
<summary>
Represents a control that allows the user to choose a date (day/month/year).
</summary>
+ <QualityBand>Preview</QualityBand>
</member>
<member name="T:Microsoft.Phone.Controls.DateTimePickerBase">
<summary>
@@ -5274,11 +5288,13 @@
<summary>
Represents a control that allows the user to choose days of the week.
</summary>
+ <QualityBand>Experimental</QualityBand>
</member>
<member name="T:Microsoft.Phone.Controls.ListPicker">
<summary>
Class that implements a flexible list-picking experience with a custom interface for few/many items.
</summary>
+ <QualityBand>Preview</QualityBand>
</member>
<member name="F:Microsoft.Phone.Controls.ListPicker.NormalModeOffset">
<summary>
@@ -5290,6 +5306,11 @@
Whether this list picker has the picker page opened.
</summary>
</member>
+ <member name="F:Microsoft.Phone.Controls.ListPicker.SummaryForSelectedItemsDelegateProperty">
+ <summary>
+ Identifies the SummaryForSelectedItemsDelegate DependencyProperty.
+ </summary>
+ </member>
<member name="F:Microsoft.Phone.Controls.ListPicker.ListPickerModeProperty">
<summary>
Identifies the ListPickerMode DependencyProperty.
@@ -5413,6 +5434,12 @@
</summary>
<param name="e">A NotifyCollectionChangedEventArgs that contains the event data.</param>
</member>
+ <member name="M:Microsoft.Phone.Controls.ListPicker.OnTap(System.Windows.Input.GestureEventArgs)">
+ <summary>
+ Handles the tap event.
+ </summary>
+ <param name="e">Event args</param>
+ </member>
<member name="M:Microsoft.Phone.Controls.ListPicker.OnManipulationStarted(System.Windows.Input.ManipulationStartedEventArgs)">
<summary>
Called when the ManipulationStarted event occurs.
@@ -5567,6 +5594,7 @@
<summary>
Represents a control that allows the user to choose a time (hour/minute/am/pm).
</summary>
+ <QualityBand>Preview</QualityBand>
</member>
<member name="M:Microsoft.Phone.Controls.TimePicker.#ctor">
<summary>
@@ -5609,6 +5637,7 @@
<summary>
Represents a collection of items that can be expanded or collapsed.
</summary>
+ <QualityBand>Experimental</QualityBand>
</member>
<member name="F:Microsoft.Phone.Controls.ExpanderView.ExpansionStates">
<summary>
@@ -5686,6 +5715,11 @@
Presenter template part.
</summary>
</member>
+ <member name="F:Microsoft.Phone.Controls.ExpanderView._itemsCanvas">
+ <summary>
+ Canvas template part
+ </summary>
+ </member>
<member name="F:Microsoft.Phone.Controls.ExpanderView._expanderPanel">
<summary>
Expander Panel template part.
@@ -5793,12 +5827,19 @@
Initializes a new instance of the ExpanderView class.
</summary>
</member>
- <member name="M:Microsoft.Phone.Controls.ExpanderView.ExpanderView_SizeChanged(System.Object,System.Windows.SizeChangedEventArgs)">
+ <member name="M:Microsoft.Phone.Controls.ExpanderView.OnSizeChanged(System.Object,System.Windows.SizeChangedEventArgs)">
<summary>
Recalculates the size of the presenter to match its parent.
</summary>
- <param name="sender"></param>
- <param name="e"></param>
+ <param name="sender">Sender</param>
+ <param name="e">Event args</param>
+ </member>
+ <member name="M:Microsoft.Phone.Controls.ExpanderView.OnPresenterSizeChanged(System.Object,System.Windows.SizeChangedEventArgs)">
+ <summary>
+ Recalculates size of canvas based on the size change for the presenter.
+ </summary>
+ <param name="sender">Sender</param>
+ <param name="e">Event args</param>
</member>
<member name="M:Microsoft.Phone.Controls.ExpanderView.UpdateVisualState(System.Boolean)">
<summary>
@@ -5827,7 +5868,7 @@
</summary>
<param name="e">The event information.</param>
</member>
- <member name="M:Microsoft.Phone.Controls.ExpanderView.ExpanderPanel_Tap(System.Object,System.Windows.Input.GestureEventArgs)">
+ <member name="M:Microsoft.Phone.Controls.ExpanderView.OnExpanderPanelTap(System.Object,System.Windows.Input.GestureEventArgs)">
<summary>
Toggles the IsExpanded property.
</summary>
@@ -5976,11 +6017,240 @@
NonExpandable visual state value.
</summary>
</member>
+ <member name="T:Microsoft.Phone.Controls.PhoneTextBox">
+ <summary>
+ An extended TextBox for Windows Phone which implements hint text, an action icon, and a
+ length indicator.
+ </summary>
+ <QualityBand>Experimental</QualityBand>
+ </member>
+ <member name="F:Microsoft.Phone.Controls.PhoneTextBox.RootGridName">
+ <summary>
+ Root grid.
+ </summary>
+ </member>
+ <member name="F:Microsoft.Phone.Controls.PhoneTextBox.TextBoxName">
+ <summary>
+ Main text box.
+ </summary>
+ </member>
+ <member name="F:Microsoft.Phone.Controls.PhoneTextBox.HintContentName">
+ <summary>
+ Hint Content.
+ </summary>
+ </member>
+ <member name="F:Microsoft.Phone.Controls.PhoneTextBox.HintBorderName">
+ <summary>
+ Hint border.
+ </summary>
+ </member>
+ <member name="F:Microsoft.Phone.Controls.PhoneTextBox.LengthIndicatorName">
+ <summary>
+ Length indicator name.
+ </summary>
+ </member>
+ <member name="F:Microsoft.Phone.Controls.PhoneTextBox.ActionIconCanvasName">
+ <summary>
+ Action icon canvas.
+ </summary>
+ </member>
+ <member name="F:Microsoft.Phone.Controls.PhoneTextBox.MeasurementTextBlockName">
+ <summary>
+ Measurement Text Block name.
+ </summary>
+ </member>
+ <member name="F:Microsoft.Phone.Controls.PhoneTextBox.ActionIconBorderName">
+ <summary>
+ Action icon image name.
+ </summary>
+ </member>
+ <member name="F:Microsoft.Phone.Controls.PhoneTextBox.LengthIndicatorStates">
+ <summary>
+ Length indicator states.
+ </summary>
+ </member>
+ <member name="F:Microsoft.Phone.Controls.PhoneTextBox.LengthIndicatorVisibleState">
+ <summary>
+ Length indicator visible visual state.
+ </summary>
+ </member>
+ <member name="F:Microsoft.Phone.Controls.PhoneTextBox.LengthIndicatorHiddenState">
+ <summary>
+ Length indicator hidden visual state.
+ </summary>
+ </member>
+ <member name="F:Microsoft.Phone.Controls.PhoneTextBox.CommonStates">
+ <summary>
+ Common States.
+ </summary>
+ </member>
+ <member name="F:Microsoft.Phone.Controls.PhoneTextBox.DisabledState">
+ <summary>
+ Disabled state.
+ </summary>
+ </member>
+ <member name="F:Microsoft.Phone.Controls.PhoneTextBox.ReadOnlyState">
+ <summary>
+ ReadOnly state.
+ </summary>
+ </member>
+ <member name="F:Microsoft.Phone.Controls.PhoneTextBox.FocusStates">
+ <summary>
+ Focus states.
+ </summary>
+ </member>
+ <member name="F:Microsoft.Phone.Controls.PhoneTextBox.FocusedState">
+ <summary>
+ Focused state.
+ </summary>
+ </member>
+ <member name="F:Microsoft.Phone.Controls.PhoneTextBox.UnfocusedState">
+ <summary>
+ Unfocused state.
+ </summary>
+ </member>
+ <member name="F:Microsoft.Phone.Controls.PhoneTextBox.HintProperty">
+ <summary>
+ Identifies the Hint DependencyProperty.
+ </summary>
+ </member>
+ <member name="F:Microsoft.Phone.Controls.PhoneTextBox.HintStyleProperty">
+ <summary>
+ Identifies the HintStyle DependencyProperty.
+ </summary>
+ </member>
+ <member name="F:Microsoft.Phone.Controls.PhoneTextBox.ActualHintVisibilityProperty">
+ <summary>
+ Identifies the HintVisibility DependencyProperty
+ </summary>
+ </member>
+ <member name="M:Microsoft.Phone.Controls.PhoneTextBox.OnHintPropertyChanged(System.Windows.DependencyObject,System.Windows.DependencyPropertyChangedEventArgs)">
+ <summary>
+ When the Hint is changed, check if it needs to be hidden or shown.
+ </summary>
+ <param name="sender">Sending PhoneTextBox.</param>
+ <param name="args">DependencyPropertyChangedEvent Arguments.</param>
+ </member>
+ <member name="M:Microsoft.Phone.Controls.PhoneTextBox.UpdateHintVisibility">
+ <summary>
+ Determines if the Hint should be shown or not based on if there is content in the TextBox.
+ </summary>
+ </member>
+ <member name="M:Microsoft.Phone.Controls.PhoneTextBox.OnLostFocus(System.Windows.RoutedEventArgs)">
+ <summary>
+ Override the Blur/LostFocus event to show the Hint if needed.
+ </summary>
+ <param name="e">Event arguments.</param>
+ </member>
+ <member name="M:Microsoft.Phone.Controls.PhoneTextBox.OnGotFocus(System.Windows.RoutedEventArgs)">
+ <summary>
+ Override the Focus event to hide the Hint.
+ </summary>
+ <param name="e">Event arguments.</param>
+ </member>
+ <member name="F:Microsoft.Phone.Controls.PhoneTextBox.LengthIndicatorVisibleProperty">
+ <summary>
+ Length Indicator Visibile Dependency Property.
+ </summary>
+ </member>
+ <member name="F:Microsoft.Phone.Controls.PhoneTextBox.LengthIndicatorThresholdProperty">
+ <summary>
+ Length Indicator Visibility Threshold Dependency Property.
+ </summary>
+ </member>
+ <member name="F:Microsoft.Phone.Controls.PhoneTextBox.DisplayedMaxLengthProperty">
+ <summary>
+ The displayed maximum length of text that can be entered. This value takes
+ priority over the MaxLength property in the Length Indicator display.
+ </summary>
+ </member>
+ <member name="F:Microsoft.Phone.Controls.PhoneTextBox.ActionIconProperty">
+ <summary>
+ Identifies the ActionIcon DependencyProperty.
+ </summary>
+ </member>
+ <member name="F:Microsoft.Phone.Controls.PhoneTextBox.HidesActionItemWhenEmptyProperty">
+ <summary>
+ Identifies the HidesActionItemWhenEmpty DependencyProperty.
+ </summary>
+ </member>
+ <member name="M:Microsoft.Phone.Controls.PhoneTextBox.OnActionIconTapped(System.Object,System.Windows.RoutedEventArgs)">
+ <summary>
+ Determines if the developer set an event for ActionIconTapped.
+ </summary>
+ <param name="sender">The sender object</param>
+ <param name="e">The RoutedEventArgs for the event</param>
+ </member>
+ <member name="M:Microsoft.Phone.Controls.PhoneTextBox.#ctor">
+ <summary>
+ Initializes a new instance of the PhoneTextBox class.
+ </summary>
+ </member>
+ <member name="M:Microsoft.Phone.Controls.PhoneTextBox.OnApplyTemplate">
+ <summary>
+ Applies the template and checks to see if the Hint should be shown
+ when the page is first loaded.
+ </summary>
+ </member>
+ <member name="M:Microsoft.Phone.Controls.PhoneTextBox.OnTextChanged(System.Object,System.Windows.RoutedEventArgs)">
+ <summary>
+ Called when the selection changed event occurs. This determines whether the length indicator should be shown or
+ not and if the TextBox needs to grow.
+ </summary>
+ <param name="sender">Sender TextBox</param>
+ <param name="e">Event arguments</param>
+ </member>
+ <member name="P:Microsoft.Phone.Controls.PhoneTextBox.Hint">
+ <summary>
+ Gets or sets the Hint
+ </summary>
+ </member>
+ <member name="P:Microsoft.Phone.Controls.PhoneTextBox.HintStyle">
+ <summary>
+ Gets or sets the Hint style
+ </summary>
+ </member>
+ <member name="P:Microsoft.Phone.Controls.PhoneTextBox.ActualHintVisibility">
+ <summary>
+ Gets or sets whether the hint is actually visible.
+ </summary>
+ </member>
+ <member name="P:Microsoft.Phone.Controls.PhoneTextBox.LengthIndicatorVisible">
+ <summary>
+ Boolean that determines if the length indicator should be visible.
+ </summary>
+ </member>
+ <member name="P:Microsoft.Phone.Controls.PhoneTextBox.LengthIndicatorThreshold">
+ <summary>
+ Threshold after which the length indicator will appear.
+ </summary>
+ </member>
+ <member name="P:Microsoft.Phone.Controls.PhoneTextBox.DisplayedMaxLength">
+ <summary>
+ The displayed value for the maximum length of the input.
+ </summary>
+ </member>
+ <member name="P:Microsoft.Phone.Controls.PhoneTextBox.ActionIcon">
+ <summary>
+ Gets or sets the ActionIcon.
+ </summary>
+ </member>
+ <member name="P:Microsoft.Phone.Controls.PhoneTextBox.HidesActionItemWhenEmpty">
+ <summary>
+ Gets or sets whether the ActionItem is hidden when there is not text entered in the PhoneTextBox.
+ </summary>
+ </member>
+ <member name="E:Microsoft.Phone.Controls.PhoneTextBox.ActionIconTapped">
+ <summary>
+ Action Icon Tapped event.
+ </summary>
+ </member>
<member name="T:Microsoft.Phone.Controls.HubTile">
<summary>
Represents an animated tile that supports an image and a title.
Furthermore, it can also be associated with a message or a notification.
</summary>
+ <QualityBand>Preview</QualityBand>
</member>
<member name="F:Microsoft.Phone.Controls.HubTile.ImageStates">
<summary>
@@ -6236,6 +6506,7 @@
<summary>
Provides organized animations for the hub tiles.
</summary>
+ <QualityBand>Preview</QualityBand>
</member>
<member name="F:Microsoft.Phone.Controls.HubTileService.WaitingPipelineSteps">
<summary>
@@ -6407,7 +6678,7 @@
and event routing.
</summary>
</member>
- <member name="M:Microsoft.Phone.Controls.GestureListener.Touch_FrameReported(System.Object,System.Windows.Input.TouchFrameEventArgs)">
+ <member name="M:Microsoft.Phone.Controls.GestureListener.OnTouchFrameReported(System.Object,System.Windows.Input.TouchFrameEventArgs)">
<summary>
Handle touch events.
</summary>
@@ -7083,6 +7354,7 @@
Represents a virtualizing list designed for grouped lists. Can also be
used with flat lists.
</summary>
+ <QualityBand>Preview</QualityBand>
</member>
<member name="F:Microsoft.Phone.Controls.LongListSelector.TemplatedListBoxName">
<summary>
@@ -7131,7 +7403,7 @@
</member>
<member name="F:Microsoft.Phone.Controls.LongListSelector._listBox">
<summary>
- Reference to the ListBox hosed in this control.
+ Reference to the ListBox hosted in this control.
</summary>
</member>
<member name="F:Microsoft.Phone.Controls.LongListSelector._scrollGroup">
@@ -7139,6 +7411,11 @@
Reference to the visual state group for scrolling.
</summary>
</member>
+ <member name="F:Microsoft.Phone.Controls.LongListSelector._verticalCompressionGroup">
+ <summary>
+ Reference to the visual state group for vertical compression.
+ </summary>
+ </member>
<member name="F:Microsoft.Phone.Controls.LongListSelector._rootCollection">
<summary>
// Used to listen for changes in the ItemsSource
@@ -7296,7 +7573,7 @@
Loads ItemsSource into the hosted list box.
</summary>
</member>
- <member name="M:Microsoft.Phone.Controls.LongListSelector.AddListHeader(System.Collections.Generic.IList{Microsoft.Phone.Controls.LongListSelector.ItemTuple})">
+ <member name="M:Microsoft.Phone.Controls.LongListSelector.AddListHeader(System.Collections.Generic.IList{Microsoft.Phone.Controls.LongListSelector.LongListSelectorItem})">
<summary>
Adds a list header to the given list.
</summary>
@@ -7306,7 +7583,7 @@
Adds a list header to the listbox.
</summary>
</member>
- <member name="M:Microsoft.Phone.Controls.LongListSelector.RemoveListHeader(System.Collections.Generic.IList{Microsoft.Phone.Controls.LongListSelector.ItemTuple})">
+ <member name="M:Microsoft.Phone.Controls.LongListSelector.RemoveListHeader(System.Collections.Generic.IList{Microsoft.Phone.Controls.LongListSelector.LongListSelectorItem})">
<summary>
Removes the list header from the given list.
</summary>
@@ -7316,7 +7593,7 @@
Removes the list header from the listbox.
</summary>
</member>
- <member name="M:Microsoft.Phone.Controls.LongListSelector.AddListFooter(System.Collections.Generic.IList{Microsoft.Phone.Controls.LongListSelector.ItemTuple})">
+ <member name="M:Microsoft.Phone.Controls.LongListSelector.AddListFooter(System.Collections.Generic.IList{Microsoft.Phone.Controls.LongListSelector.LongListSelectorItem})">
<summary>
Adds a list footer to the given list.
</summary>
@@ -7326,7 +7603,7 @@
Adds a list footer to the listbox.
</summary>
</member>
- <member name="M:Microsoft.Phone.Controls.LongListSelector.RemoveListFooter(System.Collections.Generic.IList{Microsoft.Phone.Controls.LongListSelector.ItemTuple})">
+ <member name="M:Microsoft.Phone.Controls.LongListSelector.RemoveListFooter(System.Collections.Generic.IList{Microsoft.Phone.Controls.LongListSelector.LongListSelectorItem})">
<summary>
Removes the list footer from the given list.
</summary>
@@ -7430,7 +7707,7 @@
<param name="group">Group from which to retrieve the items count.</param>
<returns>Returns the number of items in a group including the group header.</returns>
</member>
- <member name="M:Microsoft.Phone.Controls.LongListSelector.UpdateItemsTemplate(Microsoft.Phone.Controls.LongListSelector.ItemType,System.Windows.DataTemplate)">
+ <member name="M:Microsoft.Phone.Controls.LongListSelector.UpdateItemsTemplate(Microsoft.Phone.Controls.LongListSelector.LongListSelectorItemType,System.Windows.DataTemplate)">
<summary>
Updates the templates for a given item type in the list box.
</summary>
@@ -7462,6 +7739,11 @@
Called when the scrolling state of the list box changes.
</summary>
</member>
+ <member name="M:Microsoft.Phone.Controls.LongListSelector.OnStretchStateChanging(System.Object,System.Windows.VisualStateChangedEventArgs)">
+ <summary>
+ Called when the scrolling state of the list box changes.
+ </summary>
+ </member>
<member name="M:Microsoft.Phone.Controls.LongListSelector.OnLink(System.Object,Microsoft.Phone.Controls.LinkUnlinkEventArgs)">
<summary>
Called when an item gets realized.
@@ -7502,6 +7784,11 @@
Gets whether or not the user is manipulating the list, or if an inertial animation is taking place.
</summary>
</member>
+ <member name="P:Microsoft.Phone.Controls.LongListSelector.IsStretching">
+ <summary>
+ Gets whether or not stretching is taking place.
+ </summary>
+ </member>
<member name="P:Microsoft.Phone.Controls.LongListSelector.ItemsSource">
<summary>
The DataSource property. Where all of the items come from.
@@ -7628,12 +7915,12 @@
Occurs when the user has dragged the items down from the top as far as they can go.
</summary>
</member>
- <member name="T:Microsoft.Phone.Controls.LongListSelector.ItemType">
+ <member name="T:Microsoft.Phone.Controls.LongListSelector.LongListSelectorItemType">
<summary>
Describes different items.
</summary>
</member>
- <member name="T:Microsoft.Phone.Controls.LongListSelector.ItemTuple">
+ <member name="T:Microsoft.Phone.Controls.LongListSelector.LongListSelectorItem">
<summary>
Holds information about an item.
</summary>
@@ -7642,6 +7929,7 @@
<summary>
Class that implements a container for the ListPicker control.
</summary>
+ <QualityBand>Preview</QualityBand>
</member>
<member name="M:Microsoft.Phone.Controls.ListPickerItem.#ctor">
<summary>
@@ -7673,25 +7961,26 @@
Full mode; all items are visible in a separate Popup.
</summary>
</member>
- <member name="T:Microsoft.Phone.Controls.TemplatedListBox">
+ <member name="T:Microsoft.Phone.Controls.Primitives.TemplatedListBox">
<summary>
Represents a ListBox with item-specific templates.
</summary>
+ <QualityBand>Preview</QualityBand>
</member>
- <member name="M:Microsoft.Phone.Controls.TemplatedListBox.GetContainerForItemOverride">
+ <member name="M:Microsoft.Phone.Controls.Primitives.TemplatedListBox.GetContainerForItemOverride">
<summary>
Creates or identifies the element used to display a specified item.
</summary>
<returns>Returns the new container.</returns>
</member>
- <member name="M:Microsoft.Phone.Controls.TemplatedListBox.PrepareContainerForItemOverride(System.Windows.DependencyObject,System.Object)">
+ <member name="M:Microsoft.Phone.Controls.Primitives.TemplatedListBox.PrepareContainerForItemOverride(System.Windows.DependencyObject,System.Object)">
<summary>
Prepares the specified element to display the specified item.
</summary>
<param name="element">Element used to display the specified item.</param>
<param name="item">Specified item.</param>
</member>
- <member name="M:Microsoft.Phone.Controls.TemplatedListBox.ClearContainerForItemOverride(System.Windows.DependencyObject,System.Object)">
+ <member name="M:Microsoft.Phone.Controls.Primitives.TemplatedListBox.ClearContainerForItemOverride(System.Windows.DependencyObject,System.Object)">
<summary>
When overridden in a derived class, undoes the effects of the
PrepareContainerForItemOverride method.
@@ -7699,40 +7988,41 @@
<param name="element">The container element.</param>
<param name="item">The item.</param>
</member>
- <member name="P:Microsoft.Phone.Controls.TemplatedListBox.ListHeaderTemplate">
+ <member name="P:Microsoft.Phone.Controls.Primitives.TemplatedListBox.ListHeaderTemplate">
<summary>
Gets or sets the list header template.
</summary>
</member>
- <member name="P:Microsoft.Phone.Controls.TemplatedListBox.ListFooterTemplate">
+ <member name="P:Microsoft.Phone.Controls.Primitives.TemplatedListBox.ListFooterTemplate">
<summary>
Gets or sets the list footer template.
</summary>
</member>
- <member name="P:Microsoft.Phone.Controls.TemplatedListBox.GroupHeaderTemplate">
+ <member name="P:Microsoft.Phone.Controls.Primitives.TemplatedListBox.GroupHeaderTemplate">
<summary>
Gets or sets the group header template.
</summary>
</member>
- <member name="P:Microsoft.Phone.Controls.TemplatedListBox.GroupFooterTemplate">
+ <member name="P:Microsoft.Phone.Controls.Primitives.TemplatedListBox.GroupFooterTemplate">
<summary>
Gets or sets the footer template.
</summary>
</member>
- <member name="E:Microsoft.Phone.Controls.TemplatedListBox.Link">
+ <member name="E:Microsoft.Phone.Controls.Primitives.TemplatedListBox.Link">
<summary>
Occurs when an item is about to be "realized".
</summary>
</member>
- <member name="E:Microsoft.Phone.Controls.TemplatedListBox.Unlink">
+ <member name="E:Microsoft.Phone.Controls.Primitives.TemplatedListBox.Unlink">
<summary>
Occurs when an item is about to be "un-realized".
</summary>
</member>
- <member name="T:Microsoft.Phone.Controls.TemplatedListBoxItem">
+ <member name="T:Microsoft.Phone.Controls.Primitives.TemplatedListBoxItem">
<summary>
- Represents an item within a <see cref="T:Microsoft.Phone.Controls.TemplatedListBox"/>
+ Represents an item within a <see cref="T:Microsoft.Phone.Controls.Primitives.TemplatedListBox"/>
</summary>
+ <QualityBand>Preview</QualityBand>
</member>
<member name="T:Microsoft.Phone.Controls.Primitives.ClipToBounds">
<summary>
@@ -7740,6 +8030,7 @@
to its bounds, e.g. clip the element when it is translated outside
of the panel it is placed in.
</summary>
+ <QualityBand>Preview</QualityBand>
</member>
<member name="M:Microsoft.Phone.Controls.Primitives.ClipToBounds.GetIsEnabled(System.Windows.DependencyObject)">
<summary>
@@ -7804,6 +8095,7 @@
<summary>
An item container for a Multiselect List.
</summary>
+ <QualityBand>Experimental</QualityBand>
</member>
<member name="F:Microsoft.Phone.Controls.MultiselectItem.SelectionEnabledStates">
<summary>
@@ -8117,6 +8409,7 @@
<summary>
A collection of items that supports multiple selection.
</summary>
+ <QualityBand>Experimental</QualityBand>
</member>
<member name="F:Microsoft.Phone.Controls.MultiselectList.IsInSelectionModeProperty">
<summary>
@@ -8237,6 +8530,7 @@
<summary>
An infinitely scrolling, UI- and data-virtualizing selection control.
</summary>
+ <QualityBand>Preview</QualityBand>
</member>
<member name="F:Microsoft.Phone.Controls.Primitives.LoopingSelector.DataSourceProperty">
<summary>
@@ -8304,6 +8598,7 @@
<summary>
The items that will be contained in the LoopingSelector.
</summary>
+ <QualityBand>Preview</QualityBand>
</member>
<member name="M:Microsoft.Phone.Controls.Primitives.LoopingSelectorItem.#ctor">
<summary>
@@ -8359,6 +8654,7 @@
<summary>
Represents a switch that can be toggled between two states.
</summary>
+ <QualityBand>Preview</QualityBand>
</member>
<member name="F:Microsoft.Phone.Controls.Primitives.ToggleSwitchButton.CommonStates">
<summary>
@@ -8491,21 +8787,21 @@
Gets all the template parts and initializes the corresponding state.
</summary>
</member>
- <member name="M:Microsoft.Phone.Controls.Primitives.ToggleSwitchButton.ManipulationStartedHandler(System.Object,System.Windows.Input.ManipulationStartedEventArgs)">
+ <member name="M:Microsoft.Phone.Controls.Primitives.ToggleSwitchButton.OnManipulationStarted(System.Object,System.Windows.Input.ManipulationStartedEventArgs)">
<summary>
Handles started drags on the root.
</summary>
<param name="sender">The event sender.</param>
<param name="e">The event information.</param>
</member>
- <member name="M:Microsoft.Phone.Controls.Primitives.ToggleSwitchButton.ManipulationDeltaHandler(System.Object,System.Windows.Input.ManipulationDeltaEventArgs)">
+ <member name="M:Microsoft.Phone.Controls.Primitives.ToggleSwitchButton.OnManipulationDelta(System.Object,System.Windows.Input.ManipulationDeltaEventArgs)">
<summary>
Handles drags on the root.
</summary>
<param name="sender">The event sender.</param>
<param name="e">The event information.</param>
</member>
- <member name="M:Microsoft.Phone.Controls.Primitives.ToggleSwitchButton.SizeChangedHandler(System.Object,System.Windows.SizeChangedEventArgs)">
+ <member name="M:Microsoft.Phone.Controls.Primitives.ToggleSwitchButton.OnSizeChanged(System.Object,System.Windows.SizeChangedEventArgs)">
<summary>
Handles changed sizes for the track and the thumb.
Sets the clip of the track and computes the indeterminate and checked translations.
@@ -8538,6 +8834,7 @@
Use the standard ProgressBar control in the platform for determinate
scenarios as there is no performance benefit in determinate mode.
</remarks>
+ <QualityBand>Preview</QualityBand>
</member>
<member name="F:Microsoft.Phone.Controls.PerformanceProgressBar._visualStateGroup">
<summary>
@@ -8551,6 +8848,11 @@
Gets or sets a value indicating the cached IsIndeterminate.
</summary>
</member>
+ <member name="F:Microsoft.Phone.Controls.PerformanceProgressBar._cachedIsIndeterminateBindingExpression">
+ <summary>
+ Gets or sets a value indicating the cached IsIndeterminate binding expression.
+ </summary>
+ </member>
<member name="F:Microsoft.Phone.Controls.PerformanceProgressBar.ActualIsIndeterminateProperty">
<summary>
Identifies the ActualIsIndeterminate dependency property.
@@ -8601,6 +8903,7 @@
It is used to enable a Windows Phone native platform-style progress bar
experience in indeterminate mode that remains performant.
</summary>
+ <QualityBand>Preview</QualityBand>
</member>
<member name="F:Microsoft.Phone.Controls.Primitives.RelativeAnimatingContentControl.SimpleDoubleComparisonEpsilon">
<summary>
@@ -8854,6 +9157,7 @@
This code provides attached properties for adding a 'tilt' effect to all
controls within a container.
</summary>
+ <QualityBand>Preview</QualityBand>
</member>
<member name="F:Microsoft.Phone.Controls.TiltEffect.MaxAngle">
<summary>
@@ -9169,6 +9473,7 @@
<summary>
Converts bool? values to "Off" and "On" strings.
</summary>
+ <QualityBand>Preview</QualityBand>
</member>
<member name="M:Microsoft.Phone.Controls.OffOnConverter.Convert(System.Object,System.Type,System.Object,System.Globalization.CultureInfo)">
<summary>
@@ -9194,6 +9499,7 @@
<summary>
Represents a switch that can be toggled between two states.
</summary>
+ <QualityBand>Preview</QualityBand>
</member>
<member name="F:Microsoft.Phone.Controls.ToggleSwitch.CommonStates">
<summary>
@@ -9282,7 +9588,7 @@
Gets all the template parts and initializes the corresponding state.
</summary>
</member>
- <member name="M:Microsoft.Phone.Controls.ToggleSwitch.CheckedHandler(System.Object,System.Windows.RoutedEventArgs)">
+ <member name="M:Microsoft.Phone.Controls.ToggleSwitch.OnChecked(System.Object,System.Windows.RoutedEventArgs)">
<summary>
Mirrors the
<see cref="E:System.Windows.Controls.Primitives.ToggleButton.Checked"/>
@@ -9291,7 +9597,7 @@
<param name="sender">The event sender.</param>
<param name="e">The event information.</param>
</member>
- <member name="M:Microsoft.Phone.Controls.ToggleSwitch.UncheckedHandler(System.Object,System.Windows.RoutedEventArgs)">
+ <member name="M:Microsoft.Phone.Controls.ToggleSwitch.OnUnchecked(System.Object,System.Windows.RoutedEventArgs)">
<summary>
Mirrors the
<see cref="E:System.Windows.Controls.Primitives.ToggleButton.Unchecked"/>
@@ -9300,7 +9606,7 @@
<param name="sender">The event sender.</param>
<param name="e">The event information.</param>
</member>
- <member name="M:Microsoft.Phone.Controls.ToggleSwitch.IndeterminateHandler(System.Object,System.Windows.RoutedEventArgs)">
+ <member name="M:Microsoft.Phone.Controls.ToggleSwitch.OnIndeterminate(System.Object,System.Windows.RoutedEventArgs)">
<summary>
Mirrors the
<see cref="E:System.Windows.Controls.Primitives.ToggleButton.Indeterminate"/>
@@ -9309,7 +9615,7 @@
<param name="sender">The event sender.</param>
<param name="e">The event information.</param>
</member>
- <member name="M:Microsoft.Phone.Controls.ToggleSwitch.ClickHandler(System.Object,System.Windows.RoutedEventArgs)">
+ <member name="M:Microsoft.Phone.Controls.ToggleSwitch.OnClick(System.Object,System.Windows.RoutedEventArgs)">
<summary>
Mirrors the
<see cref="E:System.Windows.Controls.Primitives.ToggleButton.Click"/>
@@ -9561,6 +9867,7 @@
Enables navigation transitions for
<see cref="T:Microsoft.Phone.Controls.PhoneApplicationPage"/>s.
</summary>
+ <QualityBand>Preview</QualityBand>
</member>
<member name="F:Microsoft.Phone.Controls.TransitionFrame.FirstTemplatePartName">
<summary>
@@ -9842,6 +10149,7 @@
<summary>
Transition factory for a particular transition family.
</summary>
+ <QualityBand>Preview</QualityBand>
</member>
<member name="M:Microsoft.Phone.Controls.TransitionElement.GetTransition(System.Windows.UIElement)">
<summary>
@@ -10009,6 +10317,7 @@
Provides attached properties for navigation
<see cref="T:Microsoft.Phone.Controls.ITransition"/>s.
</summary>
+ <QualityBand>Preview</QualityBand>
</member>
<member name="F:Microsoft.Phone.Controls.TransitionService.NavigationInTransitionProperty">
<summary>
@@ -10329,6 +10638,7 @@
<see cref="T:Microsoft.Phone.Controls.ITransition"/>s
for transition families and modes.
</summary>
+ <QualityBand>Preview</QualityBand>
</member>
<member name="F:Microsoft.Phone.Controls.Transitions._storyboardXamlCache">
<summary>
@@ -10451,6 +10761,7 @@
element in the row. When the orientation is reversed, so is the
directional growth with respect to Width and Height.
</summary>
+ <QualityBand>Mature</QualityBand>
</member>
<member name="F:System.Windows.Controls.OrientedSize._orientation">
<summary>
@@ -10515,7 +10826,7 @@
bottom. When elements extend beyond the panel edge, elements are
positioned in the next row or column.
</summary>
- <QualityBand>Stable</QualityBand>
+ <QualityBand>Mature</QualityBand>
</member>
<member name="F:Microsoft.Phone.Controls.WrapPanel._ignorePropertyChange">
<summary>
@@ -10673,6 +10984,7 @@
The lockable Pivot extends the base Pivot control with a property that
disables navigation between Pivot items.
</summary>
+ <QualityBand>Experimental</QualityBand>
</member>
<member name="F:Microsoft.Phone.Controls.LockablePivot.HeadersListElement">
<summary>
@@ -10689,6 +11001,18 @@
The item container style property name.
</summary>
</member>
+ <member name="F:Microsoft.Phone.Controls.LockablePivot.IsLockedProperty">
+ <summary>
+ Identifies the IsLocked dependency property.
+ </summary>
+ </member>
+ <member name="M:Microsoft.Phone.Controls.LockablePivot.OnIsLockedPropertyChanged(System.Windows.DependencyObject,System.Windows.DependencyPropertyChangedEventArgs)">
+ <summary>
+ IsLockedProperty property changed handler.
+ </summary>
+ <param name="d">LockablePivot that changed its IsLocked.</param>
+ <param name="e">Event arguments.</param>
+ </member>
<member name="M:Microsoft.Phone.Controls.LockablePivot.#ctor">
<summary>
Initializes a new instance of the LockablePivot type.
@@ -10702,7 +11026,7 @@
</member>
<member name="P:Microsoft.Phone.Controls.LockablePivot.IsLocked">
<summary>
- Sets or Gets the navigation lock mode.
+ Gets or sets a value indicating whether the control is locked.
</summary>
</member>
</members>
View
3  WazeWP7/AboutDialog.xaml
@@ -9,7 +9,8 @@
Foreground="{StaticResource PhoneForegroundBrush}"
d:DesignHeight="332" d:DesignWidth="479">
- <Grid x:Name="LayoutRoot" Background="{StaticResource PhoneChromeBrush}" Height="333" Width="480">
+ <Grid x:Name="LayoutRoot" Background="{StaticResource PhoneChromeBrush}" Height="333" Width="480"
+ VerticalAlignment="Top">
<TextBlock Height="35" HorizontalAlignment="Center" Margin="129,12,135,0" Name="textBlock1" Text="Waze for Windows Phone 7.5" VerticalAlignment="Top" Width="217" FontFamily="Segoe WP Bold" TextAlignment="Center" FontSize="15" />
<TextBlock Height="30" HorizontalAlignment="Center" Margin="102,92,91,0" Name="textBlock2" Text="Ported to Windows Phone by Meir Tsvi" VerticalAlignment="Top" FontFamily="Segoe WP" Width="275" FontSize="15" />
<TextBlock Height="41" HorizontalAlignment="Center" Margin="8,166,11,0" Name="textBlock16" Text="Code contributed by Meni Zalzman, Amit Finkelstein, Eli Ofek and Eran Gonen" TextAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Top" Width="461" FontFamily="Segoe WP" FontSize="16" />
View
140 WazeWP7/AlternativeRoutesPage.xaml
@@ -0,0 +1,140 @@
+<local:WazeApplicationPage
+ x:Class="WazeWP7.AlternativeRoutesPage"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
+ xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
+ xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
+ xmlns:local="clr-namespace:WazeWP7"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ FontFamily="{StaticResource PhoneFontFamilyNormal}"
+ FontSize="{StaticResource PhoneFontSizeNormal}"
+ Foreground="{StaticResource PhoneForegroundBrush}"
+ SupportedOrientations="Portrait" Orientation="Portrait"
+ mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
+ shell:SystemTray.IsVisible="True">
+
+ <!--Resources defining the look and feel of the list-->
+ <phone:PhoneApplicationPage.Resources>
+ <DataTemplate x:Key="AlternativeRoutesListItemTemplate">
+ <Grid x:Name="ListItemGrid" Margin="5,5"
+ MouseLeftButtonDown="ListItemGrid_MouseLeftButtonDown">
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition Width="*"/>
+ <ColumnDefinition Width="Auto"/>
+ </Grid.ColumnDefinitions>
+
+ <Grid Grid.Column="0" Tap="ListItemGrid_Tap">
+ <Grid.RowDefinitions>
+ <RowDefinition Height="*"/>
+ <RowDefinition Height="*"/>
+ </Grid.RowDefinitions>
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition Width="Auto"/>
+ <ColumnDefinition Width="*"/>
+ </Grid.ColumnDefinitions>
+
+ <!--<toolkit:ContextMenuService.ContextMenu>
+ <toolkit:ContextMenu IsZoomEnabled="False"
+ FlowDirection="{Binding FlowDirection,ElementName=ContentPanel}"
+ Loaded="ContextMenu_Loaded"
+ Opened="ContextMenu_Opened">
+ </toolkit:ContextMenu>
+ </toolkit:ContextMenuService.ContextMenu>-->
+
+ <Image Grid.Column="0" Grid.RowSpan="2"
+ Source="{Binding RouteIconResource}"
+ HorizontalAlignment="Center" VerticalAlignment="Center"
+ Margin="10"/>
+ <Grid Grid.Row="0" Grid.Column="1">
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition Width="Auto"/>
+ <ColumnDefinition Width="Auto"/>
+ <ColumnDefinition Width="*"/>
+ </Grid.ColumnDefinitions>
+ <TextBlock Grid.Column="0" x:Name="RouteDurationTextBlock"
+ Text="{Binding RouteDurationLabel}"
+ FontSize="{StaticResource PhoneFontSizeLarge}"
+ Foreground="Black"
+ VerticalAlignment="Center"
+ Padding="5,0" />
+ <TextBlock Grid.Column="1" x:Name="RouteLengthTextBlock"
+ Text="{Binding RouteLengthLabel}"
+ FontSize="{StaticResource PhoneFontSizeMediumLarge}"
+ Foreground="Black"
+ VerticalAlignment="Center"
+ Padding="5,0"/>
+ <TextBlock Grid.Column="2" x:Name="FrequentRouteTextBlock"
+ Text="{Binding FrequentRouteLabel}"
+ FontSize="{StaticResource PhoneFontSizeSmall}"
+ Foreground="Black"
+ HorizontalAlignment="Right"
+ VerticalAlignment="Center"/>
+ </Grid>
+ <TextBlock Grid.Row="1" Grid.Column="1"
+ x:Name="ViaTextBlock"
+ Text="{Binding ViaLabel}"
+ FontSize="{StaticResource PhoneFontSizeMediumLarge}"
+ TextWrapping="Wrap"
+ Foreground="#FF6A6A6A"/>
+ </Grid>
+ <Button Grid.Column="1"
+ x:Name="NextButton"
+ Padding="-10" HorizontalAlignment="Stretch"
+ Click="NextButton_Click">
+ <Image Source="{Binding NextIconResource}" Margin="0"/>
+ </Button>
+ </Grid>
+ </DataTemplate>
+ </phone:PhoneApplicationPage.Resources>
+
+ <Grid x:Name="LayoutRoot" Background="#FF46CBFF">
+ <Grid.RowDefinitions>
+ <RowDefinition Height="Auto"/>
+ <RowDefinition Height="*"/>
+ </Grid.RowDefinitions>
+
+ <!--Grid for displaying popups-->
+ <Grid Grid.RowSpan="2"
+ x:Name="PopupsGrid" Canvas.ZIndex="2"
+ HorizontalAlignment="Center" VerticalAlignment="Stretch"/>
+
+ <!--TitlePanel contains the name of the application and page title-->
+ <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
+ <TextBlock x:Name="PageTitle" Text="Compare routes" Margin="9,-7,0,0"
+ Style="{StaticResource PhoneTextTitle1Style}"
+ FontSize="{StaticResource PhoneFontSizeExtraLarge}"
+ HorizontalAlignment="Center"/>
+ </StackPanel>
+
+ <!--ContentPanel - place additional content here-->
+ <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
+
+ <Grid.RowDefinitions>
+ <RowDefinition Height="Auto"/>
+ <RowDefinition Height="*"/>
+ <RowDefinition Height="Auto"/>
+ <RowDefinition Height="Auto"/>
+ </Grid.RowDefinitions>
+ <TextBlock Grid.Row="0" Text="Recommended routes:"
+ Style="{StaticResource PhoneTextTitle2Style}"/>
+ <ListBox Grid.Row="1" x:Name="AlternativeRoutesListBox"
+ ItemsSource="{Binding AlternativeRoutes}"
+ Margin="12, 0, 12, 0"
+ ItemTemplate="{StaticResource AlternativeRoutesListItemTemplate}"
+ ItemContainerStyle="{StaticResource WazeListBoxItemStyle}"/>
+ <TextBlock Grid.Row="2" x:Name="DisclaimerTextBox"
+ Text="{Binding DisclaimerText}"
+ Foreground="Black"
+ TextWrapping="Wrap"/>
+ <local:ImageButton Grid.Row="3" x:Name="ShowAllButton"
+ Content ="Map"
+ Style="{StaticResource WazeImageButtonDefaultStyle}"
+ Margin="10,12"
+ Click="ShowAllButton_Click"/>
+
+ </Grid>
+ </Grid>
+
+</local:WazeApplicationPage>
View
229 WazeWP7/AlternativeRoutesPage.xaml.cs
@@ -0,0 +1,229 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Net;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Shapes;
+using Microsoft.Phone.Controls;
+
+namespace WazeWP7
+{
+ public partial class AlternativeRoutesPage : WazeApplicationPage
+ {
+ private AlternativeRoutesPageViewModel.NavigationRouteResult currentItem = null;
+ private ContextMenu currentMenu = null;
+
+ public AlternativeRoutesPageViewModel ViewModel { get; private set; }
+ public AlternativeRoutesPage()
+ {
+ InitializeComponent();
+ }
+
+ public override Panel GetPopupPanel()
+ {
+ return this.PopupsGrid;
+ }
+
+ #region Override navigation methods
+
+ protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
+ {
+ base.OnNavigatedTo(e);
+
+ // Set the page's state according to the context
+ if (e.NavigationMode != System.Windows.Navigation.NavigationMode.Back)
+ {
+ this.ViewModel = NavigationContext.GetData<AlternativeRoutesPageViewModel>();
+ this.DataContext = this.ViewModel;
+
+ // And translate the page
+ LanguageResources.Instance.UpdateControl(this);
+ }
+ }
+
+ protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e)
+ {
+ base.OnBackKeyPress(e);
+
+ this.ViewModel.NotifyDialogClosed();
+ }
+
+ #endregion
+
+ #region Private control methods
+
+ private void ContextMenu_Loaded(object sender, RoutedEventArgs e)
+ {
+ var menuItems = new string[] { "Drive", "Show Route", "Show All Routes", "Cancel" };
+ var contextMenu = sender as ContextMenu;
+ contextMenu.ItemsSource = menuItems.Select(item => CreateMenuItem(item));
+ }
+
+ private void ShowAllButton_Click(object sender, RoutedEventArgs e)
+ {
+ OptionSelected(AlternativeRoutesPageViewModel.OptionSelectedEventArgs.Options.ShowAllRoutes);
+ }
+
+ private void ListItemGrid_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
+ {
+ var grid = sender as Grid;
+ currentItem = grid.DataContext as AlternativeRoutesPageViewModel.NavigationRouteResult;
+ }
+
+ private void ListItemGrid_Tap(object sender, System.Windows.Input.GestureEventArgs e)
+ {
+ var grid = sender as Grid;
+ currentItem = grid.DataContext as AlternativeRoutesPageViewModel.NavigationRouteResult;
+ OptionSelected(AlternativeRoutesPageViewModel.OptionSelectedEventArgs.Options.Drive);
+ }
+
+ private void ContextMenu_Opened(object sender, RoutedEventArgs e)
+ {
+ this.currentMenu = sender as ContextMenu;
+ }
+
+ private void NextButton_Click(object sender, RoutedEventArgs e)
+ {
+ var button = sender as Button;
+ currentItem = button.DataContext as AlternativeRoutesPageViewModel.NavigationRouteResult;
+ OptionSelected(AlternativeRoutesPageViewModel.OptionSelectedEventArgs.Options.ShowRoute);
+ }
+
+ #endregion
+
+ private MenuItem CreateMenuItem (string header)
+ {
+ var menuItem = new MenuItem();
+ menuItem.Header = LanguageResources.Instance.Translate(header);
+ menuItem.Name = header.Replace(" ", "");
+ menuItem.Click += (sender, args) =>
+ {
+ var senderMenuItem = sender as MenuItem;
+ var option = (AlternativeRoutesPageViewModel.OptionSelectedEventArgs.Options)Enum.Parse(typeof(AlternativeRoutesPageViewModel.OptionSelectedEventArgs.Options), senderMenuItem.Name, false);
+ currentMenu.IsOpen = false;
+ OptionSelected(option);
+ };
+ return menuItem;
+ }
+
+ private void OptionSelected (AlternativeRoutesPageViewModel.OptionSelectedEventArgs.Options selectedOption)
+ {
+ ViewModel.NotifyOptionSelected(selectedOption, (currentItem == null) ? 0 : currentItem.ContextPointer);
+ if (selectedOption != AlternativeRoutesPageViewModel.OptionSelectedEventArgs.Options.Cancel)
+ {
+ NavigateBackHome();
+ }
+ }
+ }
+
+ public class AlternativeRoutesPageViewModel
+ {
+ public class NavigationRouteResult
+ {
+ #region Raw data properties
+ public int ResultIndex { get; private set; }
+ public string RouteLengthLabel { get; private set; }
+ public string RouteDurationLabel { get; private set; }
+ public string ViaLabel { get; private set; }
+ public bool IsFrequent { get; private set; }
+ public int ContextPointer { get; private set; }
+ #endregion
+
+ #region Computed properties
+
+ public string RouteIconResource
+ {
+ get
+ {
+ return string.Format("Resources/{0}_route.png", ResultIndex + 1);
+ }
+ }
+
+ public string NextIconResource
+ {
+ get
+ {
+ return (LanguageResources.Instance.FlowDirection == FlowDirection.LeftToRight) ?
+ "Resources/edit_right.png" :
+ "Resources/edit_left.png";
+ }
+ }
+
+ public string FrequentRouteLabel
+ {
+ get
+ {
+ return IsFrequent ? LanguageResources.Instance.Translate("(your frequent)") : string.Empty;
+ }
+ }
+
+ #endregion
+
+ public NavigationRouteResult(int resultIndex,
+ string routeLengthLabel, string routeDurationLabel,
+ string viaLabel, bool isFrequent,
+ int contextPointer)
+ {
+ this.ResultIndex = resultIndex;
+ this.RouteLengthLabel = routeLengthLabel;
+ this.RouteDurationLabel = routeDurationLabel;
+ this.ViaLabel = viaLabel;
+ this.IsFrequent = isFrequent;
+ this.ContextPointer = contextPointer;
+ }
+ }
+
+ #region Public Properties
+ public List<NavigationRouteResult> AlternativeRoutes { get; private set; }
+ public string DisclaimerText
+ {
+ get
+ {
+ if (AlternativeRoutes.Count == 1)
+ return LanguageResources.Instance.Translate("No valid alternatives were found for this destination");
+ else
+ return LanguageResources.Instance.Translate("Recommended route may take a bit more time but has less turns and junctions");
+
+ }
+ }
+ #endregion
+
+ #region Events
+ public class OptionSelectedEventArgs : EventArgs
+ {
+ public enum Options {
+ Drive = 0,
+ ShowRoute = 1,
+ ShowAllRoutes = 2,
+ Cancel = 10
+ }
+ public Options SelectedOption { get; set; }
+ public int ContextAddress { get; set; }
+ }
+ public event EventHandler OnDialogClosed;
+ public event EventHandler<OptionSelectedEventArgs> OnOptionSelected;
+
+ #endregion
+
+
+ public AlternativeRoutesPageViewModel()
+ {
+ this.AlternativeRoutes = new List<NavigationRouteResult>();
+ }
+
+ public void NotifyDialogClosed()
+ {
+ OnDialogClosed(this, EventArgs.Empty);
+ }
+
+ public void NotifyOptionSelected(OptionSelectedEventArgs.Options selectedOption, int contextAddress)
+ {
+ OnOptionSelected(this, new OptionSelectedEventArgs { SelectedOption = selectedOption, ContextAddress = contextAddress });
+ }
+ }
+}
View
78 WazeWP7/App.xaml
@@ -2,7 +2,8 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
- xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
+ xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:WazeWP7" mc:Ignorable="d"
+ xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
x:Class="WazeWP7.App"
>
@@ -74,36 +75,6 @@
</Setter>
</Style>
- <ControlTemplate x:Key="WazeButtonControlTemplate" TargetType="Button">
- <Border x:Name="border">
- <Border.Background>
- <ImageBrush Stretch="Fill" ImageSource="Resources/button_up.png"/>
- </Border.Background>
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="CommonStates">
- <VisualState x:Name="Disabled"/>
- <VisualState x:Name="Normal">
- <Storyboard>
- <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(ImageBrush.ImageSource)" Storyboard.TargetName="border">
- <DiscreteObjectKeyFrame KeyTime="0" Value="Resources/button_up.png"/>
- </ObjectAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- <VisualState x:Name="MouseOver"/>
- <VisualState x:Name="Pressed">
- <Storyboard>
- <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background).(ImageBrush.ImageSource)" Storyboard.TargetName="border">
- <DiscreteObjectKeyFrame KeyTime="0" Value="Resources/button_down.png"/>
- </ObjectAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
-
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- <ContentControl x:Name="ContentContainer" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Padding="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
- </Border>
- </ControlTemplate>
-
<ControlTemplate x:Key="PhoneDisabledTextBoxTemplate" TargetType="TextBox">
<Border x:Name="ContentElement" BorderThickness="0" Margin="{StaticResource PhoneTextBoxInnerMargin}" Padding="{TemplateBinding Padding}"/>
</ControlTemplate>
@@ -384,11 +355,7 @@
</Grid.ColumnDefinitions>
<Border x:Name="CheckBackground" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{StaticResource PhoneBorderThickness}" Background="{TemplateBinding Background}" HorizontalAlignment="Left" Height="32" IsHitTestVisible="False" VerticalAlignment="Center" Width="32" CornerRadius="5"/>
<Rectangle x:Name="IndeterminateMark" Fill="{StaticResource PhoneRadioCheckBoxCheckBrush}" HorizontalAlignment="Center" Height="16" IsHitTestVisible="False" Grid.Row="0" Visibility="Collapsed" VerticalAlignment="Center" Width="16"/>
- <Path x:Name="CheckMark" Data="M0,119 L31,92 L119,185 L267,0 L300,24 L122,250 z" HorizontalAlignment="Center" Height="18" IsHitTestVisible="False" Stretch="Fill" StrokeThickness="2" StrokeLineJoin="Round" Visibility="Collapsed" VerticalAlignment="Center" Width="24">
- <Path.Fill>
- <SolidColorBrush Color="#FF298E08"/>
- </Path.Fill>
- </Path>
+ <Path x:Name="CheckMark" Data="M0,119 L31,92 L119,185 L267,0 L300,24 L122,250 z" HorizontalAlignment="Center" Height="18" IsHitTestVisible="False" Stretch="Fill" StrokeThickness="2" StrokeLineJoin="Round" Visibility="Collapsed" VerticalAlignment="Center" Width="24" Fill="#FF298E08"/>
<ContentControl x:Name="ContentContainer" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Grid.Column="1" Foreground="{TemplateBinding Foreground}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="12,0,0,0" Padding="{TemplateBinding Padding}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
</Grid>
</Grid>
@@ -396,6 +363,45 @@
</Setter.Value>
</Setter>
</Style>
+
+ <ControlTemplate x:Key="WazeImageButtonControlTemplate" TargetType="local:ImageButton">
+ <Grid>
+ <VisualStateManager.VisualStateGroups>
+ <VisualStateGroup x:Name="CommonStates">
+ <VisualState x:Name="Disabled"/>
+ <VisualState x:Name="Normal"/>
+ <VisualState x:Name="MouseOver"/>
+ <VisualState x:Name="Pressed">
+ <Storyboard>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="PressedImage">
+ <DiscreteObjectKeyFrame KeyTime="0">
+ <DiscreteObjectKeyFrame.Value>
+ <Visibility>Visible</Visibility>
+ </DiscreteObjectKeyFrame.Value>
+ </DiscreteObjectKeyFrame>
+ </ObjectAnimationUsingKeyFrames>
+ <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="Image">
+ <DiscreteObjectKeyFrame KeyTime="0">
+ <DiscreteObjectKeyFrame.Value>
+ <Visibility>Collapsed</Visibility>
+ </DiscreteObjectKeyFrame.Value>
+ </DiscreteObjectKeyFrame>
+ </ObjectAnimationUsingKeyFrames>
+ </Storyboard>
+ </VisualState>
+ </VisualStateGroup>
+ </VisualStateManager.VisualStateGroups>
+ <Image x:Name="Image" Margin="0" Source="{TemplateBinding Image}"/>
+ <Image x:Name="PressedImage" Margin="0" Source="{TemplateBinding PressedImage}" Visibility="Collapsed"/>
+ <ContentControl Content="{TemplateBinding Content}" Margin="0" d:LayoutOverrides="Width, Height" ContentTemplate="{TemplateBinding ContentTemplate}" Foreground="{TemplateBinding Foreground}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" Padding="{TemplateBinding Padding}"/>
+ </Grid>
+ </ControlTemplate>
+ <Style x:Key="WazeImageButtonDefaultStyle" TargetType="local:ImageButton">
+ <Setter Property="Image" Value="Resources/button_up.png"/>
+ <Setter Property="PressedImage" Value="Resources/button_down.png"/>
+ <Setter Property="Template" Value="{StaticResource WazeImageButtonControlTemplate}"/>
+ <Setter Property="Height" Value="55" />
+ </Style>
</Application.Resources>
<Application.ApplicationLifetimeObjects>
View
6,506 WazeWP7/CibylCallTable.cs
3,252 additions, 3,254 deletions not shown
View
3  WazeWP7/FreeMapMainScreen.xaml
@@ -30,7 +30,8 @@
<!--Grid for displaying popups-->
<Grid x:Name="PopupsGrid" Canvas.ZIndex="1"
- VerticalAlignment="Top" HorizontalAlignment="Center"/>
+ VerticalAlignment="Stretch" HorizontalAlignment="Center">
+ </Grid>
</Grid>
View
11 WazeWP7/FreeMapMainScreen.xaml.cs
@@ -484,7 +484,11 @@ public void addMenuItem(String text, int ordinal, int priority, int wrapper_call
addIconMenuItem("Resources/favorites.png", text, new_item);
addMenuItem = false;
}
-
+ //else if (text.ToLower().Equals("settings") || text.Equals("הגדרות"))
+ //{
+ // addIconMenuItem("Resources/appbar.feature.settings.rest.png", text, new_item);
+ // addMenuItem = false;
+ //}
/*
if (!perf_button_added)
{
@@ -1194,7 +1198,10 @@ private void touchDownEvent(int x, int y)
if (c_on_canvas_button_pressed != 0)
{
- UIWorker.addUIEvent(c_on_canvas_button_pressed, x, y, 0, 0, true);
+ if (appBarArea >= 60)
+ {
+ UIWorker.addUIEvent(c_on_canvas_button_pressed, x, y, 0, 0, true);
+ }
}
View
9 WazeWP7/GenericListPage.xaml
@@ -17,7 +17,7 @@
<!--Resources defining the look and feel of the list-->
<phone:PhoneApplicationPage.Resources>
- <DataTemplate x:Key="GenericListItemTemplate">
+ <DataTemplate x:Key="GenericListItemTemplate">
<Grid x:Name="ListItemGrid"
Tap="ListItemGrid_Tap"
MouseLeftButtonDown="ListItemGrid_MouseLeftButtonDown">
@@ -29,9 +29,8 @@
<toolkit:ContextMenuService.ContextMenu>
<toolkit:ContextMenu IsZoomEnabled="False"
FlowDirection="{Binding FlowDirection,ElementName=LayoutRoot}"
- IsEnabled="{Binding IsContextMenuEnabled}"
- ItemsSource="{Binding ContextMenuItems}"
- Opened="ContextMenu_Opened">
+ Opened="ContextMenu_Opened"
+ Loaded="ContextMenu_Loaded">
<toolkit:ContextMenu.ItemTemplate>
<DataTemplate>
<toolkit:MenuItem Header="{Binding Header}"
@@ -62,7 +61,7 @@
<!--Grid for displaying popups-->
<Grid Grid.RowSpan="2"
x:Name="PopupsGrid" Canvas.ZIndex="2"
- HorizontalAlignment="Center" VerticalAlignment="Top"/>
+ HorizontalAlignment="Center" VerticalAlignment="Stretch"/>
<!--TitlePanel contains the name of the application and page title-->
<StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
View
23 WazeWP7/GenericListPage.xaml.cs
@@ -69,10 +69,9 @@ protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventA
base.OnNavigatedTo(e);
// Set the page's state according to the context
- var pageContext = NavigationContext.GetData<GenericListPageContext>();
- if (pageContext != null)
+ if (e.NavigationMode != System.Windows.Navigation.NavigationMode.Back)
{
- this.PageContext = pageContext;
+ this.PageContext = NavigationContext.GetData<GenericListPageContext>();
this.DataContext = this;
// Check which grid to display
@@ -80,7 +79,7 @@ protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventA
this.NoItemsGrid.Visibility = (this.PageContext.ListItems.Any()) ? System.Windows.Visibility.Collapsed : System.Windows.Visibility.Visible;
// And translate the page
- LanguageResources.Instance.UpdateApplicationPage(this);
+ LanguageResources.Instance.UpdateControl(this);
}
}
@@ -103,7 +102,15 @@ private void ListItemGrid_Tap(object sender, System.Windows.Input.GestureEventAr
private void ContextMenu_Opened(object sender, RoutedEventArgs e)
{
- currentMenu = sender as ContextMenu;
+ var contextMenu = sender as ContextMenu;
+ if (this.PageContext.ContextMenuItems.Any())
+ {
+ currentMenu = contextMenu;
+ }
+ else
+ {
+ contextMenu.IsOpen = false;
+ }
}
private void MenuItem_Click(object sender, RoutedEventArgs e)
@@ -121,5 +128,11 @@ private void ActionPerformed (GenericListPageContext.ContextMenuItem selectedAct
}
PageContext.OnListItemSelected(currentItem, selectedAction);
}
+