Microsoft Singapore
Silverlight on Windows Phone 7Creating our first applicationResponding to control eventsWindows Phone themes and stylesPag...
3
Starts with Silverlight 3, plus…4
            5
                    6
                   http://developer.windowsphone.com7
8
9
10
11
12
                    13
14
<TextBlock x:Name="PageTitle" Text="Damage Calc" Margin="-3,-8,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>     ...
16
17
Shell frame composes all UI into a single sceneCentral page management enables cross-app UI transitions and other effectsS...
                  //The root frame of the Phone Application.public PhoneApplicationFrame RootFrame                    ...
PicturesTake a look atrecent photosPeopleLook up the statusfor a contactPicturesContinue lookingat recent photos 22
               private void hyperlinkButton1_Click(       object sender, RoutedEventArgs e){  NavigationService.Naviga...
private   void button1_Click(     object sender, RoutedEventArgs e){       NavigationService.GoBack();}      24
               25
26
                    27
    private void passParam_Click(object sender, RoutedEventArgse)    {      NavigationService.Navigate(new Uri("/SecondPa...
                 NavigationService.Navigate(           new Uri("/SecondPage.xaml+?Param=value" ,                     ...
30
System Tray and Application Bar                    SystemTray.IsVisible = false;          32
                
1.     2.     3.     4.     5.     6.     7.     8.     9.     10.     11.     12.     13.     14.34
36
37
                    39
40
41
42
Silverlight 3 and them some for Windows Phone Push notificationsare the main building blocks Frame and Page drain the batt...
Building Windows Phone Silverlight Application
Building Windows Phone Silverlight Application
Building Windows Phone Silverlight Application
Building Windows Phone Silverlight Application
Building Windows Phone Silverlight Application
Building Windows Phone Silverlight Application
Upcoming SlideShare
Loading in …5
×

Building Windows Phone Silverlight Application

191
-1

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
191
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Building Windows Phone Silverlight Application

  1. 1. Microsoft Singapore
  2. 2. Silverlight on Windows Phone 7Creating our first applicationResponding to control eventsWindows Phone themes and stylesPage navigationHandling the hardware Back keyApplication BarOrientation-Aware PagesWrap-up text inputCustomising2
  3. 3. 3
  4. 4. Starts with Silverlight 3, plus…4
  5. 5.    5
  6. 6.      6
  7. 7.      http://developer.windowsphone.com7
  8. 8. 8
  9. 9. 9
  10. 10. 10
  11. 11. 11
  12. 12. 12
  13. 13.     13
  14. 14. 14
  15. 15. <TextBlock x:Name="PageTitle" Text="Damage Calc" Margin="-3,-8,0,0" Style="{StaticResource PhoneTextTitle1Style}"/> 15
  16. 16. 16
  17. 17. 17
  18. 18. Shell frame composes all UI into a single sceneCentral page management enables cross-app UI transitions and other effectsSystem-wide Z-order enforcement emphasizes core phone functionality
  19. 19.    //The root frame of the Phone Application.public PhoneApplicationFrame RootFrame { get; private set; }      21
  20. 20. PicturesTake a look atrecent photosPeopleLook up the statusfor a contactPicturesContinue lookingat recent photos 22
  21. 21.    private void hyperlinkButton1_Click( object sender, RoutedEventArgs e){ NavigationService.Navigate( new Uri("/SecondPage.xaml", UriKind.RelativeOrAbsolute) );}23
  22. 22. private void button1_Click( object sender, RoutedEventArgs e){ NavigationService.GoBack();} 24
  23. 23.    25
  24. 24. 26
  25. 25.     27
  26. 26.  private void passParam_Click(object sender, RoutedEventArgse) { NavigationService.Navigate(new Uri("/SecondPage.xaml?msg=" + textBox1.Text, UriKind.Relative)); }protected override void OnNavigatedTo( System.Windows.Navigation.NavigationEventArgs e){ base.OnNavigatedTo(e); string strMsg = ""; if (NavigationContext.QueryString.TryGetValue("msg", out strMsg )) textBlock1.Text = strMsg ;}28
  27. 27.    NavigationService.Navigate( new Uri("/SecondPage.xaml+?Param=value" , UriKind.RelativeOrAbsolute29
  28. 28. 30
  29. 29. System Tray and Application Bar   SystemTray.IsVisible = false;  32
  30. 30.     
  31. 31. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14.34
  32. 32. 36
  33. 33. 37
  34. 34.     39
  35. 35. 40
  36. 36. 41
  37. 37. 42
  38. 38. Silverlight 3 and them some for Windows Phone Push notificationsare the main building blocks Frame and Page drain the battery quickly Use the Windows Phone chrome Automatic Page Oriantation43

×