Post on 14-May-2018
Windows Phone 7. . Microsoft
http://msdn.microsoft.com/ru-ru/windowsphone/?WT.mc_id=SEARCH[13.03.2012 0:07:34]
(P)
, Silverlight XNA , .
Visual Studio 11 Windows 8 DevCon12 2 Windows 8 Camp, Metro- Windows 8 VisualStudio 11, beta- ... , 5 I.Vorontsov
MSDN! ! MSDN 10 :Web Helicon Zoo. GoliathWindowsPhone Splash Scre... , 28 I.Vorontsov
100 TechEd Europe 2012 100 TechEdEurope 2012, 26 29 2012 . ... , 21 I.Vorontsov
Beta TechDays! beta techdays! . ... , 20 I.Vorontsov
MSDN MSDN RSS . RSS , ... , 16 I.Vorontsov
,
Pivot Panorama
(Launchers)
(Choosers)
Map
WebBrowser
c HTTP
,
/
Push Notification
1. 2. MSDN3.
Splash Screen Windows Phone
-. , ,
-.
-.
-. . 16-
Metro-
3D
Windows Phone 7
Marketplace
Marketplace
Windows Phone 7 Facebook
- Windows Phone
WP7. Metro-
"45 Windows Phone 7
Windows Phone 7
Windows Phone 7
- Windows Phone 7
https://login.live.com/login.srf?wa=wsignin1.0&rpsnv=11&ct=1331582834&rver=6.0.5276.0&wp=MCLBI&wlcxt=msdn%24msdn%24msdn&wreply=http%3a%2f%2fmsdn.microsoft.com%2fru-ru%2fwindowsphone%2f%3fWT.mc_id%3dSEARCH&lc=1049&id=254354&mkt=ru-RUhttp://msdn.microsoft.com/ru-ru/windowsphonehttp://msdn.microsoft.com/ru-ruhttp://msdn.microsoft.com/ru-ruhttp://blogs.msdn.com/b/rudevnews/archive/2012/03/05/visual-studio-11-windows-8-devcon-12.aspxhttp://blogs.msdn.com/b/rudevnews/archive/2012/03/05/visual-studio-11-windows-8-devcon-12.aspxhttp://blogs.msdn.com/b/rudevnews/archive/2012/03/05/visual-studio-11-windows-8-devcon-12.aspxhttp://blogs.msdn.com/b/rudevnews/archive/2012/02/28/new-content.aspxhttp://blogs.msdn.com/b/rudevnews/archive/2012/02/28/new-content.aspxhttp://blogs.msdn.com/b/rudevnews/archive/2012/02/22/100-teched-europe-2012.aspxhttp://blogs.msdn.com/b/rudevnews/archive/2012/02/22/100-teched-europe-2012.aspxhttp://blogs.msdn.com/b/rudevnews/archive/2012/02/20/beta-techdays.aspxhttp://blogs.msdn.com/b/rudevnews/archive/2012/02/20/beta-techdays.aspxhttp://blogs.msdn.com/b/rudevnews/archive/2012/02/17/new-feeds.aspxhttp://blogs.msdn.com/b/rudevnews/archive/2012/02/17/new-feeds.aspxjavascript:Silverlight.getSilverlight("4.0.60531.0");http://msdn.microsoft.com/ru-ru/subscriptions/aa718661.aspxhttp://msdn.microsoft.com/ru-ru/subscriptions/buy.aspxhttps://msdn.microsoft.com/ru-ru/subscriptions/managehttp://msdn.microsoft.com/ru-ru/vstudio/https://rusdpe.blob.core.windows.net/downloads/RusWP7TrainingKit.ziphttp://msdn.microsoft.com/ru-ru/hh780995http://msdn.microsoft.com/ru-ru/hh780995http://msdn.microsoft.com/ru-ru/hh780996http://msdn.microsoft.com/ru-ru/hh824681http://msdn.microsoft.com/ru-ru/hh824682http://msdn.microsoft.com/ru-ru/hh824682http://msdn.microsoft.com/ru-ru/hh833741http://msdn.microsoft.com/ru-ru/hh680827http://create.msdn.com/http://create.msdn.com/http://www.facebook.com/group.php?gid=155210464502802http://www.facebook.com/group.php?gid=155210464502802http://msdn.microsoft.com/ru-ru/library/ff402535.aspxhttp://social.msdn.microsoft.com/Forums/ru-ru/formobiledevicesru/threadshttp://blogs.msdn.com/b/rudevnews/rss.aspx?Tags=windows%20phonehttp://newsengine.cloudapp.net/MSDN/rss?tag=Windows%20Phone
Windows Phone 7. . Microsoft
http://msdn.microsoft.com/ru-ru/windowsphone/?WT.mc_id=SEARCH[13.03.2012 0:07:34]
- 23 Nokia Windows Phone. ... , 24 Mik Chernomordikov
- 14 Nokia Windows Phone. ... , 15 Mik Chernomordikov
- WP7 Training Kit ! , ... , 3 Mik Chernomordikov
Marketplace - ! Nokia ... , 26 Mik Chernomordikov
. Adidas KFC .. ? ... , 12
MVP - (WP7 XNA) . ... , 11
windows mobile 6.5 & visual studio 2010 ultimate ! ! windows mobile 6.5 C#? ... , 10
Button . . . , ... , 8
| | MSDN 2012 Microsoft. . | | | Site Feedback
Windows Phone 7.( )
http://blogs.msdn.com/b/mikcher/archive/2012/02/24/10272206.aspxhttp://blogs.msdn.com/b/mikcher/archive/2012/02/24/10272206.aspxhttp://blogs.msdn.com/b/mikcher/archive/2012/02/15/10268196.aspxhttp://blogs.msdn.com/b/mikcher/archive/2012/02/15/10268196.aspxhttp://blogs.msdn.com/b/mikcher/archive/2012/01/03/wp7-training-kit.aspxhttp://blogs.msdn.com/b/mikcher/archive/2012/01/03/wp7-training-kit.aspxhttp://blogs.msdn.com/b/mikcher/archive/2011/12/26/marketplace-results.aspxhttp://blogs.msdn.com/b/mikcher/archive/2011/12/26/marketplace-results.aspxhttp://social.msdn.microsoft.com/Forums/ru-RU/formobiledevicesru/thread/bdfbd3b8-b482-4da0-9f4d-64600b13ed82http://social.msdn.microsoft.com/Forums/ru-RU/formobiledevicesru/thread/bdfbd3b8-b482-4da0-9f4d-64600b13ed82http://social.msdn.microsoft.com/Forums/ru-RU/formobiledevicesru/thread/bdfbd3b8-b482-4da0-9f4d-64600b13ed82http://social.msdn.microsoft.com/Forums/ru-RU/formobiledevicesru/thread/60577ffc-dd87-4d83-9539-dd17a5c11e15http://social.msdn.microsoft.com/Forums/ru-RU/formobiledevicesru/thread/60577ffc-dd87-4d83-9539-dd17a5c11e15http://social.msdn.microsoft.com/Forums/ru-RU/formobiledevicesru/thread/60577ffc-dd87-4d83-9539-dd17a5c11e15http://social.msdn.microsoft.com/Forums/ru-RU/formobiledevicesru/thread/aeef4315-f4f0-48d3-9554-0146550c95e6http://social.msdn.microsoft.com/Forums/ru-RU/formobiledevicesru/thread/aeef4315-f4f0-48d3-9554-0146550c95e6http://social.msdn.microsoft.com/Forums/ru-RU/formobiledevicesru/thread/592d3ffa-c78d-444c-9fa2-4a7b020d545ehttp://social.msdn.microsoft.com/Forums/ru-RU/formobiledevicesru/thread/592d3ffa-c78d-444c-9fa2-4a7b020d545ehttp://go.microsoft.com/?linkid=8786242&lcid=1049http://www.microsoft.com/legal/http://www.microsoft.com/Rus/Msdn/flash/Default.mspxhttp://msdn.microsoft.com/ru-ru/cc300389.aspxhttp://www.microsoft.com/library/toolbar/3.0/trademarks/ru-ru.mspxhttp://www.microsoft.com/info/ru/privacy.mspxhttps://lab.msdn.microsoft.com/mailform/contactus.aspx?refurl=http%3a%2f%2fmsdn.microsoft.com%2fru-ru%2fwindowsphone%2fff191182%3fWT.mc_id%3dSEARCH.aspx&loc=ru-ruhttp://www.microsoft.com/downloads/ru-ru/details.aspx?familyid=0a373422-6680-46a7-89e1-e9a468a14259&displaylang=ruhttp://download.microsoft.com/documents/rus/visualstudio/ProgrammingWindowsPhone7.pdfhttp://rusdpe.blob.core.windows.net/downloads/Programming_Windows_Phone_7_ru.pdfhttp://rusdpe.blob.core.windows.net/downloads/Programming_Windows_Phone_7_ru.pdfhttp://www.microsoft.com/rus/feeds/msdn/winphone7.opmlhttp://www.microsoft.com/rus/feeds/msdn/winphone7.opmlhttp://social.msdn.microsoft.com/Forums/ru-RU/aspnetru/http://social.msdn.microsoft.com/Forums/ru-RU/aspnetru/threads?outputAs=rss
Windows Phone: 1: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420941[13.03.2012 0:07:51]
(P)
Windows Phone: 1: , , , .
Visual Studio 2010
Windows Phone Visual Studio 2010 c Service Pack 1 Professional . Visual Studio 2010, Windows Phone, Visual Studio 2010 Express forWindows Phone, Windows Phone.
Visual Studio , Windows.
, , , , Zune (http://zune.net). , , Windows Phone Developer Registration Tool, Windows Phone SDK.
Windows Phone SDK
, App Hub http://create.msdn.com , , . , Windows Phone SDK 7.1 Release Candidate Go Live Windows Phone Marketplace.Windows Phone SDK 7.1 Release Candidate :
Windows Phone SDK 7.1
Windows Phone Emulator
Windows Phone SDK 7.1 Assemblies
Silverlight 4 SDK and DRT
Windows Phone SDK 7.1 Extensions for XNA Game Studio 4.0
Expression Blend SDK for Windows Phone 7
Expression Blend SDK for Windows Phone OS 7.1
WCF Data Services Client for Windows Phone
Microsoft Advertising SDK for Windows Phone
Visual Studio 2010 Professional, Expression Bland 4 XNAGame Studio 4.0, :
Visual Studio 2010 Express for Windows Phone
Expression Blend 4 for Windows Phone
XNA Game Studio 4.0
Expression Blend Expression Blend for Windows Phone
Expression Blend XAML, Silverlight Windows Presentation Foundation (WPF). , , , . XAML. Expression Blend , , Windows Phone, ExpressionBlend 4 for Windows Phone . Windows Phone SDK, Expression Blend. Expression Blend 4 MSDN: http://msdn.microsoft.com/ru-ru/library/cc296227.aspx
XNA Game Studio 4.0
1: ,
2: ,
3:
4: HTTP
5: ,
6: , Live Tiles PushNotification
https://login.live.com/login.srf?wa=wsignin1.0&rpsnv=11&ct=1331582855&rver=6.0.5276.0&wp=MCLBI&wlcxt=msdn%24msdn%24msdn&wreply=http%3a%2f%2fmsdn.microsoft.com%2fru-ru%2fwindowsphone%2fhh420941&lc=1049&id=254354&mkt=ru-RUhttp://msdn.microsoft.com/ru-ru/windowsphonehttp://msdn.microsoft.com/ru-ruhttp://msdn.microsoft.com/ru-ruhttp://www.microsoft.com/ru/ru/softmicrosoft/windowsPhone.aspxhttp://zune.net/http://create.msdn.com/http://msdn.microsoft.com/ru-ru/library/cc296227.aspxhttp://msdn.microsoft.com/ru-ru/library/cc296227.aspxhttp://msdn.microsoft.com/ru-ru/library/ff402535.aspxhttp://social.msdn.microsoft.com/Forums/ru-ru/formobiledevicesru/threads
Windows Phone: 1: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420941[13.03.2012 0:07:51]
XNA Game Studio , Visual Studio Windows Phone, Xbox 360 Windows. XNAFramework, . MSDN: http://msdn.microsoft.com/ru-ru/library/bb200104.aspx
Windows Phone Emulator
, Windows Phone Emulator , , .
Windows Phone Emulator Zune. Internet Explorer, Internet Explorer 9 HTML5.
SMS , , , , .
MSDN: http://msdn.microsoft.com/ru-ru/library/ff402563(v=VS.92).aspx
Windows Phone Developer Registration Tool
, , . . Marketplace 3 ( , , ). : http://create.msdn.com
Windows Phone Profiler
Windows Phone Profiler Debug Visual Studio Windows Phone SDK.
, . MSDN: http://msdn.microsoft.com/ru-ru/library/hh202934(v=VS.92).aspx
Silverlight Toolkit for Windows Phone
Silverlight Toolkit for Windows Phone Silverlight WindowsPhone , Silverlight. , . , http://silverlight.codeplex.com NuGet.
, ContextMenu, DatePicker TimePicker,ToggleSwitch, WrapPanel GestureHelper.
http://msdn.microsoft.com/ru-ru/library/bb200104.aspxhttp://msdn.microsoft.com/ru-ru/library/ff402563(v=VS.92).aspxhttp://create.msdn.com/http://msdn.microsoft.com/ru-ru/library/hh202934(v=VS.92).aspxhttp://msdn.microsoft.com/ru-ru/library/hh202934(v=VS.92).aspxhttp://silverlight.codeplex.com/
Windows Phone: 1: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420941[13.03.2012 0:07:51]
Windows Phone SDK New Project Visual Studio Silverlight for Windows Phone:
XNA Game Studio 4.0 Windows Phone:
Windows Phone Silverlight, .
Silverlight for Windows Phone:
Windows Phone Application
Windows Phone Databound Application
Windows Phone Class Library
Windows Phone Panorama Application
Windows Phone Pivot Application
Windows Phone Silverlight and XNA Application
Windows Phone Audio Playback Agent
Windows Phone Audio Streaming Agent
Windows Phone: 1: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420941[13.03.2012 0:07:51]
Windows Phone Scheduled Task Agent
, Windows Phone Metro-.
Windows Phone Metro-
Windows Phone . , Metro- Metro.
, Expression Blend 4 Expression Blend for Windows Phone, Windows Phone SDK.
,, - , Windows Phone?
. -, Silverlight Metro-, Metro-. -, ,, Windows Phone SDK, , Metro-.
, , XAML, Silverlight, , , Metro.
Windows Phone http://msdn.microsoft.com/ru-ru/library/hh202915.aspx
, , , , . , WindowsPhone.
, Windows Phone:
Windows Phone Application
Windows Phone Pivot Application
Windows Phone Panorama Application
Windows Phone Application , .
Windows Phone Pivot Application , . , , , / ., , . Pivot.
Windows Phone Panorama Application , , ; , , , ;
http://msdn.microsoft.com/ru-ru/library/hh202915.aspx
Windows Phone: 1: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420941[13.03.2012 0:07:51]
. , Windows Phone: People, Marketplace, Pictures,Music+Videos . Panorama.
, Agent , :
Windows Phone Audio Playback Agent
Windows Phone Audio Streaming Agent
Windows Phone Scheduled Task Agent
Windows Phone Databound Application VeiwModel.
Windows Phone Class Library Windows Phone.
Windows Phone Silverlight and XNA Application Silverlight , XNA .
New Project Visual Studio Visual C#, Silverlight for Windows Phone Windows Phone Application ExploringXAMLFeatures.
Windows Phone OS 7.1
, Visual Studio
Windows Phone: 1: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420941[13.03.2012 0:07:51]
Solution Explorer:
AppManifest.xml , XAP , .
AssemblyInfo.cs , (Assembly) .
WMAppManifest.xml , :, , , ...
App.xaml .
Windows Phone: 1: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420941[13.03.2012 0:07:51]
1.
2.
3.
4.
. Name? , . ID . - . Button ( ). XAML, Button, Click InteliSense , :
Home.xaml.cs XAML:
1. public MainPage()
2. {
3. InitializeComponent();
4. MyButton.Click +=new RoutedEventHandler(MyButton_Click);
5. }
. . XAML. MyButton_Click
( ) ( ). .
App.xaml.cs (code-behind) App.xaml. , tombstoning. , .
ApplicationIcon.png , . , , .
Background.png , (start screen). . ApplicationIcon.png.
MainPage.xaml . MainPaige , . , .
MainPage.xaml.cs MainPage.xaml.
SplashScreenImage.jpg +. , , . XNA, .
XAML . - XML XAML.
, , , .
, , , .
XAML
, Visual Studio , XAML .
, MainPage.xaml.
XAML MainPage.xaml Grid ContentPanel Button:
Windows Phone: 1: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420941[13.03.2012 0:07:51]
, . , , TextBlock PageTitle (PageTitle Name, ) wp7. :
1. private void MyButton_Click(object sender, RoutedEventArgs e)
2. {
3. PageTitle.Text = "wp7";
4. }
Windows Device Emulator
, F5. , :
. . Pivot, Panorama, MVVM (Model-View-ViewModel), .
Windows Phone: 1: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420941[13.03.2012 0:07:51]
Solution Explorer , , Add, New Item, Windows Phone PortraitPage SecondPage.xaml:
XAML , MainPage.xaml , .
, XAML SecondPage TextBlock Name PageTitle Text, :
1.
, , MainPage.xaml. MainPage.xaml SecondPage.xaml?
, .
XAML MainPage.xaml Button, HyperlinkButton, :
1.
2.
3.
4.
5.
HyperlinkButton e NavigateUri, Uri . /SecondPage.xaml, :
1.
(F5).
, , , SecondPage.xaml. Back, () .
. using :
Windows Phone: 1: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420941[13.03.2012 0:07:51]
1. using System.Windows.Navigation;
, MyButton_Click :
1. private void MyButton_Click(object sender, RoutedEventArgs e)
2. {
3. NavigationService.Navigate(new Uri("/SecondPage.xaml", UriKind.Relative));
4. }
(F5) , .
(SecondPage.xaml) , .
XAML SecondPage.xaml Grid ContentPanel Button HyperlinkButton, :
1.
2.
3.
4.
5.
Click MyButton SecondPage MyButton_Click XAML Navigae to Event Handler.
(F5) , MainPage.
. SecondPage.xaml.cs using :
1. using System.Windows.Navigation;
, MyButton_Click :
1. private void MyButton_Click(object sender, RoutedEventArgs e)
2. {
3. NavigationService.GoBack();
4. }
(F5) , MainPage.
, , , , , NavigationService , .
/ , , , .
SecondPage.xaml.cs MyButton_Click:
1. protected override void OnNavigatingFrom(NavigatingCancelEventArgs e)
2. {
3. base.OnNavigatingFrom(e);
4.
5. //,,
6. if (e.IsCancelable)
7. {
8. MessageBoxResult result = MessageBox.Show("?
", "", MessageBoxButton.OKCancel);
9. if (result == MessageBoxResult.OK)
10. {
11. //
12. e.Cancel = true;
13. return;
14. }
15. }
Windows Phone: 1: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420941[13.03.2012 0:07:51]
16. }
, .
(F5) , , MainPage .
.
MainPage.xaml . MainPage.xaml TextBox, Button, :
1.
2.
3.
4.
5.
6.
SecondPage.xaml . SecondPage.xaml TextBox, Button, MainPage:
1.
2.
3.
4.
5.
6.
, MyButton_Click MainPage Uri :
1. private void MyButton_Click(object sender, RoutedEventArgs e)
2. {
3. NavigationService.Navigate(new Uri("/SecondPage.xaml?
text="+Uri.EscapeDataString(MyTextBox.Text), UriKind.Relative));
4. }
, , SecondPage.xaml.cs, OnNavigatedFrom, OnNavigatedTo MyTextBox:
1. protected override void OnNavigatedTo(NavigationEventArgs e)
2. {
3. base.OnNavigatedTo(e);
4.
5. if (NavigationContext.QueryString.ContainsKey("text"))
6. {
7. MyTextBox.Text = NavigationContext.QueryString["text"].ToString();
8. }
9.
10. }
(F5) , , , MainPage SecondPage.
, , Windows Phone 7, . , XAML , .
, Silverlight, , , .
Windows Phone: 1: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420941[13.03.2012 0:07:51]
ExploringXAMLFeatures
| | MSDN 2012 Microsoft. . | | | Site Feedback
http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-44-58-Code/2783.ExploringXAMLFeatures.ziphttp://go.microsoft.com/?linkid=8786242&lcid=1049http://www.microsoft.com/legal/http://www.microsoft.com/Rus/Msdn/flash/Default.mspxhttp://msdn.microsoft.com/ru-ru/cc300389.aspxhttp://www.microsoft.com/library/toolbar/3.0/trademarks/ru-ru.mspxhttp://www.microsoft.com/info/ru/privacy.mspxhttps://lab.msdn.microsoft.com/mailform/contactus.aspx?refurl=http%3a%2f%2fmsdn.microsoft.com%2fru-ru%2fwindowsphone%2fhh420941.aspx&loc=ru-ru
Windows Phone: 2: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420943[13.03.2012 0:08:07]
(P)
Windows Phone: 2: ,
1.
2.
Canvas
Canvas . . Canvas, (AttachedProperties). ( Button). Button Canvas, , :
1.
2.
3.
4.
5.
(F5) :
, XAML. ,, Toolbox ,
Silverlight . , . , Silverlight, , :
Canvas
StackPanel
Grid
, , . , Button. Windows Phone Application, ExploreBaseControls. , , , MainPage.xaml Grid:
1: ,
2: ,
3:
4: HTTP
5: ,
6: , Live Tiles PushNotification
https://login.live.com/login.srf?wa=wsignin1.0&rpsnv=11&ct=1331582871&rver=6.0.5276.0&wp=MCLBI&wlcxt=msdn%24msdn%24msdn&wreply=http%3a%2f%2fmsdn.microsoft.com%2fru-ru%2fwindowsphone%2fhh420943&lc=1049&id=254354&mkt=ru-RUhttp://msdn.microsoft.com/ru-ru/windowsphonehttp://msdn.microsoft.com/ru-ruhttp://msdn.microsoft.com/ru-ruhttp://msdn.microsoft.com/ru-ru/hh529873http://msdn.microsoft.com/ru-ru/library/ff402535.aspxhttp://social.msdn.microsoft.com/Forums/ru-ru/formobiledevicesru/threads
Windows Phone: 2: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420943[13.03.2012 0:08:07]
, . , ZIndex, . Canvas , , , , . , c Canvas , , StackPanel Grid.
StackPanel
StackPanel , , , ( ). Button:
1.
2.
3.
4.
5.
(F5) :
Windows Phone: 2: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420943[13.03.2012 0:08:07]
, ( Orientation StackPanel):
1.
2.
3.
4.
5.
(F5) :
Windows Phone: 2: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420943[13.03.2012 0:08:07]
StackPanel , .
Grid
Grid . Grid , . XAML Grid -, . Grid, , , .
( , , , , , ):
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
Windows Phone: 2: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420943[13.03.2012 0:08:07]
12.
13.
14.
15.
16.
17.
18.
Grid 3 3 . , Button Grid . :
, Button (Grid.Column Grid.Row) , .
, Visual Studio, Expression Blend. , XAML-.
Pivot Panorama
Windows Phone ,
Windows Phone: 2: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420943[13.03.2012 0:08:07]
:
Pivot
Panorama
Metro-, . , : Windows Phone Pivot Application Windows Phone Panorama Application. , Pivot Panorama ExploreBaseControls.
Pivot
MainPage.xaml . XAML Grid c x:Name LayoutRoot:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
, XAML :
1.
2.
3.
4.
Pivot. , Toolbox Visual Studio, XAML .
, , XAML .
Pivot , : Microsoft.Phone.Controls
XAML MainPage.xaml:
1.
Windows Phone: 2: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420943[13.03.2012 0:08:07]
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Enter :
xmlns:controls=
IntelliSense :
Microsoft.Phone.Controls (Microsoft.Phone.Cotrols).
:
xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
XAML MainPage.xaml :
1.
(Ctrl+Shift+B). , IntelliSense.
Pivot .
MainPage.xaml . XAML Grid c x:Name LayoutRoot, :
1.
2.
3.
4.
:
Windows Phone: 2: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420943[13.03.2012 0:08:07]
, Pivot Panorama PivotItem PanoramaItem.
XAML Pivot 3 PivotItem, , , XAML :
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
(F5) , Pivot.
Windows Phone: 2: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420943[13.03.2012 0:08:07]
PivotItem , , / .
XAML Canvas,StackPanel Grid . XAML :
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
Windows Phone: 2: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420943[13.03.2012 0:08:07]
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
(F5) , / Pivot /.
Windows Phone: 2: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420943[13.03.2012 0:08:07]
Windows Phone: 2: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420943[13.03.2012 0:08:07]
Windows Phone: 2: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420943[13.03.2012 0:08:07]
, Pivot / Pivot /, , Pivot-, .
Panorama
MainPage.xaml . XAML Grid c x:Name LayoutRoot, , Pivot.
XAML , Panorama 3 PanoramaItem Grid c x:Name LayoutRoot, , :
1.
2.
3.
4.
, XAML :
1.
Windows Phone: 2: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420943[13.03.2012 0:08:07]
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
(F5) , Panorama.
/Panorama .
, PNG 1024x768 PanoramaBackground.png, MainPage.xaml
Windows Phone: 2: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420943[13.03.2012 0:08:07]
XAML , PanoramaBackground.png:
1.
2.
3.
(F5) , Panorama .
/Panorama , Expression Blend , . Expression :http://www.microsoft.com/design/toolbox/
PanoramaItem, . , - .
, . , , - :
http://www.microsoft.com/design/toolbox/
Windows Phone: 2: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420943[13.03.2012 0:08:07]
Windows Phone: 2: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420943[13.03.2012 0:08:07]
Windows Phone: 2: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420943[13.03.2012 0:08:07]
, , . , Silverlight Windows Phone. , .
Border / .
Button , Click.
CheckBox . , .
HyperlinkButton , . , NavigateUri.
Image .
ListBox , . .
MediaElement .
Windows Phone: 2: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420943[13.03.2012 0:08:07]
PasswordBox , .
ProgressBar .
RadioButton . ( GroupName) .
ScrollViewer .
Slider . Value.
TextBlock , .
TextBox , .
Map Bing
WebBrowser HTML
, , . ExploreBaseControls MainPage.xaml , Grid:
1.
2.
, Toolbox - , , , .
XAML
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13. 1
14. 2
15. 3
16. 4
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
, MainPage.xaml.cs
1. private void MyButton_Click(object sender, RoutedEventArgs e)
2. {
3. MyProgressBar.Value += 1;
4. }
5.
6. private void MySlider_ValueChanged(object sender, RoutedPropertyChangedEventArgs e)
7. {
Windows Phone: 2: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420943[13.03.2012 0:08:07]
8. MyProgressBar.Value = MySlider.Value;
9. }
10.
11. private void MyProgressBar_ValueChanged(object sender, RoutedPropertyChangedEventArgs
e)
12. {
13. MySlider.Value = MyProgressBar.Value;
14. }
Silverlight for Windows Phone Toolkit , :
AutoCompleteBox TextBox .
ListPicker TextBo, .
LongListSelector ListBox
ContextMenu .
DatePicker .
TimePicker .
ToggleSwitch /
WrapPanel , .
, , . , . , .
Windows Phone Application, ExploreTextContexts. , , , MainPage.xaml Grid:
1.
2.
60 , : http://msdn.microsoft.com/en-us/library/system.windows.input.inputscopenamevalue(VS.95).aspx
:
. .
Text , , , .
Number
TelephoneNumber
EmailSmtpAddress @
CurrencyAmountAndSymbol
URL , .com Go
, Grid XAML :
1.
2.
3.
4.
http://msdn.microsoft.com/en-us/library/system.windows.input.inputscopenamevalue(VS.95).aspx
Windows Phone: 2: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh420943[13.03.2012 0:08:07]
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15. E-mail
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
(F5) , . , .
, , Windows Phone 7, Pivot Panorama, , .
, .
ExploreBaseControls ExploreBaseControls Pivot ExploreBaseControls Panorama ExploreTextContext
| | MSDN 2012 Microsoft. . | | | Site Feedback
http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-44-58-Code/0284.ExploreBaseControls.BaseControls.ziphttp://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-44-58-Code/7043.ExploreBaseControls.Pivot.ziphttp://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-44-58-Code/0434.ExploreBaseControls.Panorama.ziphttp://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-44-58-Code/1323.ExploreTextContexts.ziphttp://go.microsoft.com/?linkid=8786242&lcid=1049http://www.microsoft.com/legal/http://www.microsoft.com/Rus/Msdn/flash/Default.mspxhttp://msdn.microsoft.com/ru-ru/cc300389.aspxhttp://www.microsoft.com/library/toolbar/3.0/trademarks/ru-ru.mspxhttp://www.microsoft.com/info/ru/privacy.mspxhttps://lab.msdn.microsoft.com/mailform/contactus.aspx?refurl=http%3a%2f%2fmsdn.microsoft.com%2fru-ru%2fwindowsphone%2fhh420943.aspx&loc=ru-ru
Windows Phone: 3:
http://msdn.microsoft.com/ru-ru/windowsphone/hh420944[13.03.2012 0:08:25]
(P)
Windows Phone: 3: . Windows Phone , Map WebBrowser, , .
. . .
(launchers)
, :
1. .2. .3. Show .
:
BingMapsDirectionsTask Bing Maps . . .
BingMapsTask Bing Maps, .
ConnectionSettingsTask .
EmailComposeTask e-mail c . e-mail .
MarketplaceDetailTask Windows Phone Marketplace .
MarketplaceHubTask Windows Phone Marketplace.
MarketplaceReviewTask Windows Phone Marketplace
MarketplaceSearchTask Windows Phone Marketplace .
MediaPlayerLauncher .
PhoneCallTask Phone. .
SearchTask .
ShareLinkTask .
ShareStatusTask .
SmsComposeTask Messaging .
WebBrowserTask -.
Windows Phone Application,
1: ,
2: ,
3:
4: HTTP
5: ,
6: , Live Tiles PushNotification
https://login.live.com/login.srf?wa=wsignin1.0&rpsnv=11&ct=1331582888&rver=6.0.5276.0&wp=MCLBI&wlcxt=msdn%24msdn%24msdn&wreply=http%3a%2f%2fmsdn.microsoft.com%2fru-ru%2fwindowsphone%2fhh420944&lc=1049&id=254354&mkt=ru-RUhttp://msdn.microsoft.com/ru-ru/windowsphonehttp://msdn.microsoft.com/ru-ruhttp://msdn.microsoft.com/ru-ruhttp://msdn.microsoft.com/ru-ru/hh529873http://msdn.microsoft.com/ru-ru/library/ff402535.aspxhttp://social.msdn.microsoft.com/Forums/ru-ru/formobiledevicesru/threads
Windows Phone: 3:
http://msdn.microsoft.com/ru-ru/windowsphone/hh420944[13.03.2012 0:08:25]
1.
2.
XAML , :
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
using .
1. using Microsoft.Phone.Tasks;
2.
3. MainPage:
4. private void EMailMe_Click(object sender, RoutedEventArgs e)
5. {
6. EmailComposeTask compose = new EmailComposeTask();
7. compose.To = "rush4apps@microsoft.com";
8. compose.Body="!!,!
";
9. compose.Show();
10. }
11.
12. private void AppDetails_Click(object sender, RoutedEventArgs e)
13. {
14. //MarketplaceDetailTask marketDetails = new MarketplaceDetailTask();
15. //marketDetails.ContentType = MarketplaceContentType.Applications;
16. //marketDetails.ContentIdentifier="";
17. //marketDetails.Show();
18. }
19.
20. private void MarketHub_Click(object sender, RoutedEventArgs e)
21. {
22. MarketplaceHubTask marketHub = new MarketplaceHubTask();
23. marketHub.ContentType = MarketplaceContentType.Applications;
24. marketHub.Show();
25. }
26.
27. private void MarketSearch_Click(object sender, RoutedEventArgs e)
28. {
29. MarketplaceSearchTask marketSearch = new MarketplaceSearchTask();
30. marketSearch.ContentType = MarketplaceContentType.Applications;
31. marketSearch.SearchTerms = "GPSInfo";
32. marketSearch.Show();
33. }
34.
35. private void MediaPlayer_Click(object sender, RoutedEventArgs e)
ExploreLaunchers. , , , MainPage.xaml Grid:
Windows Phone: 3:
http://msdn.microsoft.com/ru-ru/windowsphone/hh420944[13.03.2012 0:08:25]
36. {
37. //MediaPlayerLauncher player = new MediaPlayerLauncher();
38. //player.Controls = MediaPlaybackControls.Stop;
39. //player.Media="URI";
40. //player.Show();
41. }
42.
43. private void PhoneCall_Click(object sender, RoutedEventArgs e)
44. {
45. PhoneCallTask call = new PhoneCallTask();
46. call.DisplayName="";
47. call.PhoneNumber = "+7 555 555 5555";
48. call.Show();
49. }
50.
51. private void Search_Click(object sender, RoutedEventArgs e)
52. {
53. SearchTask search = new SearchTask();
54. search.SearchQuery = "rush4apps";
55. search.Show();
56. }
57.
58. private void SendSms_Click(object sender, RoutedEventArgs e)
59. {
60. SmsComposeTask sms = new SmsComposeTask();
61. sms.Body="WindowsPhone7-!";
62. sms.Show();
63. }
64.
65. private void WebBrowse_Click(object sender, RoutedEventArgs e)
66. {
67. WebBrowserTask web = new WebBrowserTask();
68. web.Uri = new Uri("http://msdn.com/ru-ru/");
69. web.Show();
70. }
. . , .
(F5), , .
Windows Phone: 3:
http://msdn.microsoft.com/ru-ru/windowsphone/hh420944[13.03.2012 0:08:25]
.
(choosers)
, :
1. .2. Completed.
Windows Phone: 3:
http://msdn.microsoft.com/ru-ru/windowsphone/hh420944[13.03.2012 0:08:25]
3. .4. Show .5. Completed.
:
AddressChooserTask Contacts. , , .
CameraCaptureTask Camera. , .
EmailAddressChooserTask Contacts. , e-mail , .
GameInviteTask .
PhoneNumberChooserTask Contacts. , , .
PhotoChooserTask PhotoChooser. , .
SaveContactTask
SaveEmailAddressTask Contacts. , e-mail .
SavePhoneNumberTask Contacts. , .
SaveRingtoneTask .
Windows Phone Application, ExploreChoosers. , , , MainPage.xaml Grid:
1.
2.
XAML , :
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
using .
1. using Microsoft.Phone.Tasks;
MainPage :
1. private void Camera_Click(object sender, RoutedEventArgs e)
2. {
3. CameraCaptureTask camera = new CameraCaptureTask();
Windows Phone: 3:
http://msdn.microsoft.com/ru-ru/windowsphone/hh420944[13.03.2012 0:08:25]
4. camera.Completed += new EventHandler(camera_Completed);
5. camera.Show();
6. }
7.
8. void camera_Completed(object sender, PhotoResult e)
9. {
10. if (e.TaskResult == TaskResult.OK)
11. MessageBox.Show(":" + e.OriginalFileName);
12. }
13.
14. private void Email_Click(object sender, RoutedEventArgs e)
15. {
16. EmailAddressChooserTask email = new EmailAddressChooserTask();
17. email.Completed += new EventHandler(email_Completed);
18. email.Show();
19. }
20.
21. void email_Completed(object sender, EmailResult e)
22. {
23. if (e.TaskResult == TaskResult.OK)
24. MessageBox.Show(e.Email);
25. }
26.
27. private void Phone_Click(object sender, RoutedEventArgs e)
28. {
29. PhoneNumberChooserTask phone = new PhoneNumberChooserTask();
30. phone.Completed += new EventHandler(phone_Completed);
31. phone.Show();
32. }
33.
34. void phone_Completed(object sender, PhoneNumberResult e)
35. {
36. if (e.TaskResult == TaskResult.OK)
37. MessageBox.Show(e.PhoneNumber);
38. }
39.
40. private void ChoosePhoto_Click(object sender, RoutedEventArgs e)
41. {
42. PhotoChooserTask photo = new PhotoChooserTask();
43. photo.Completed += new EventHandler(photo_Completed);
44. photo.Show();
45. }
46.
47. void photo_Completed(object sender, PhotoResult e)
48. {
49. if (e.TaskResult == TaskResult.OK)
50. MessageBox.Show(e.OriginalFileName);
51. }
52.
53. private void SaveEMail_Click(object sender, RoutedEventArgs e)
54. {
55. SaveEmailAddressTask saveEmail = new SaveEmailAddressTask();
56. saveEmail.Completed += new EventHandler(saveEmail_Completed);
57. saveEmail.Email = "rush4apps@microsoft.com";
58. saveEmail.Show();
59. }
60.
61. void saveEmail_Completed(object sender, TaskEventArgs e)
62. {
63. if (e.TaskResult == TaskResult.OK)
64. MessageBox.Show("EMail!");
65. }
66.
67. private void SavePhone_Click(object sender, RoutedEventArgs e)
68. {
69. SavePhoneNumberTask savePhone = new SavePhoneNumberTask();
70. savePhone.Completed += new EventHandler(savePhone_Completed);
71. savePhone.PhoneNumber = "+7 495 555 5555";
72. savePhone.Show();
73. }
74.
75. void savePhone_Completed(object sender, TaskEventArgs e)
76. {
77. if (e.TaskResult == TaskResult.OK)
78. MessageBox.Show("!");
79. }
Completed .
Windows Phone: 3:
http://msdn.microsoft.com/ru-ru/windowsphone/hh420944[13.03.2012 0:08:25]
(F5), , .
Windows Phone: 3:
http://msdn.microsoft.com/ru-ru/windowsphone/hh420944[13.03.2012 0:08:25]
.
Map
Map, Windows Phone Application, ExploreMapControl.
, , , :
Toolbox, , Map
Windows Phone: 3:
http://msdn.microsoft.com/ru-ru/windowsphone/hh420944[13.03.2012 0:08:25]
, Microsoft.Phone.Controls.Map:
MainPage.xaml , XAML .
Map my:
1.
XAML , :
Windows Phone: 3:
http://msdn.microsoft.com/ru-ru/windowsphone/hh420944[13.03.2012 0:08:25]
1. xmlns:my="clr-namespace:Microsoft.Phone.Controls.Maps;assembly=Microsoft.Phone.Controls.Maps"
my map, :
1. xmlns:map="clr-namespace:Microsoft.Phone.Controls.Maps;assembly=Microsoft.Phone.Controls.Maps"
1.
XAML Map Properites , MyMap:
(F5) , .
, , ? Bing . Bing Maps: http://www.bingmapsportal.com/
, CredentialsProvider , .
: / , :
1.
2.
3.
4.
5.
6.
http://www.bingmapsportal.com/
Windows Phone: 3:
http://msdn.microsoft.com/ru-ru/windowsphone/hh420944[13.03.2012 0:08:25]
7.
8.
9.
10.
11.
:
1. private void ZoomIn_Click(object sender, RoutedEventArgs e)
2. {
3. MyMap.ZoomLevel += 1;
4. }
5.
6. private void ZoomOut_Click(object sender, RoutedEventArgs e)
7. {
8. MyMap.ZoomLevel -= 1;
9. }
10.
11. private void LayoutChange_Click(object sender, RoutedEventArgs e)
12. {
13. if (MyMap.Mode is RoadMode)
14. {
15. MyMap.Mode = new AerialMode(true);
16. }
17. else
18. {
19. MyMap.Mode = new RoadMode();
20. }
21.
22. }
using :
using Microsoft.Phone.Controls.Maps; (F5) , , .
Metro- Application Bar, . , Application Bar XAML Metro.
WebBrowser
Map, Windows Phone Application, ExploreWebControl.
, , , :
Windows Phone: 3:
http://msdn.microsoft.com/ru-ru/windowsphone/hh420944[13.03.2012 0:08:25]
Toolbox, , WebBrowser
, :
Windows Phone: 3:
http://msdn.microsoft.com/ru-ru/windowsphone/hh420944[13.03.2012 0:08:25]
MainPage.xaml , XAML .
1.
phone, :
1. xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
XAML :
1.
XAML WebBrowser Properites , MyBrowser, XAML Source, , HTML . MSDN:
(F5) , .
Windows Phone: 3:
http://msdn.microsoft.com/ru-ru/windowsphone/hh420944[13.03.2012 0:08:25]
: Go, URL .
XAML :
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
:
1. private void Go_Click(object sender, RoutedEventArgs e)
2. {
3. try
4. {
5. Uri url = new Uri(Url.Text);
6. MyBrowser.Navigate(url);
7. }
8. catch (Exception ex)
9. {
10. MessageBox.Show(ex.Message);
11. }
12. }
(F5) , , URL.
.
ExploreMapControl .
Windows Phone: 3:
http://msdn.microsoft.com/ru-ru/windowsphone/hh420944[13.03.2012 0:08:25]
Microsoft.Devices.Sensors. Solution Explorer Refernce , Add Reference Microsoft.Devices.Sensors. , using :
using Microsoft.Devices.Sensors;
.
, . , .
:
private Accelerometer myAccel;
, :
myAccel = new Accelerometer();
myAccel.CurrentValueChanged += new EventHandler(myAccel_CurrentValueChanged);
myAccel.Start();
Vector3 Microsoft.Xna.Framework. Microsoft.Xna.Framework, Microsoft.Devices.Sensors, using :
using Microsoft.Xna.Framework;
, , , ( ) . :
1. private Vector3 currentValues;
2. :
3. void myAccel_CurrentValueChanged(object sender, SensorReadingEventArgs
e)
4. {
5. if (myAccel.IsDataValid)
6. {
7. float deltaZ = (currentValues - e.SensorReading.Acceleration).Z;
8. float Z = e.SensorReading.Acceleration.Z;
9.
10. currentValues = e.SensorReading.Acceleration;
11.
12. if (Z < 0 && deltaZ > 0)
13. {
14. //
15. }
16. if (Z > 0 && deltaZ < 0)
17. {
18. //
19. }
20. }
21.
22. }
. . Dispatcher:
Dispatcher.BeginInvoke :
1. private void HandleZoomIn()
2. {
3. MyMap.ZoomLevel += 1;
4. }
5.
6. private void HandleZoomOut()
7. {
8. MyMap.ZoomLevel -= 1;
9. }
Dispatcher:
Windows Phone: 3:
http://msdn.microsoft.com/ru-ru/windowsphone/hh420944[13.03.2012 0:08:25]
Dispatcher.BeginInvoke(() => HandleZoomIn());
Dispatcher.BeginInvoke(() => HandleZoomOut()); :
1. private Accelerometer myAccel;
2. private Vector3 currentValues;
3.
4. // Constructor
5. public MainPage()
6. {
7. InitializeComponent();
8.
9. myAccel = new Accelerometer();
10. myAccel.CurrentValueChanged += new EventHandler(myAccel_CurrentValueChanged);
11.
12. myAccel.Start();
13. currentValues = myAccel.CurrentValue.Acceleration;
14. }
15.
16.
17.
18. void myAccel_CurrentValueChanged(object sender, SensorReadingEventArgs e)
19. {
20. if (myAccel.IsDataValid)
21. {
22. float deltaZ = (currentValues - e.SensorReading.Acceleration).Z;
23. float Z = e.SensorReading.Acceleration.Z;
24.
25. currentValues = e.SensorReading.Acceleration;
26.
27. if (Z < 0 && deltaZ > 0)
28. {
29. Dispatcher.BeginInvoke(() => HandleZoomIn());
30. }
31. if (Z > 0 && deltaZ < 0)
32. {
33. Dispatcher.BeginInvoke(() => HandleZoomOut());
34. }
35. }
36.
37. }
38.
39. private void HandleZoomIn()
40. {
41. MyMap.ZoomLevel += 1;
42. }
43.
44. private void HandleZoomOut()
45. {
46. MyMap.ZoomLevel -= 1;
47. }
48.
49. private void ZoomIn_Click(object sender, RoutedEventArgs e)
50. {
51. MyMap.ZoomLevel += 1;
52. }
53.
54. private void ZoomOut_Click(object sender, RoutedEventArgs e)
55. {
56. MyMap.ZoomLevel -= 1;
57. }
58.
59. private void LayoutChange_Click(object sender, RoutedEventArgs e)
60. {
61. if (MyMap.Mode is RoadMode)
62. {
63. MyMap.Mode = new AerialMode(true);
64. }
65. else
66. {
67. MyMap.Mode = new RoadMode();
68. }
69.
70. }
Windows Phone: 3:
http://msdn.microsoft.com/ru-ru/windowsphone/hh420944[13.03.2012 0:08:25]
(F5) , , . , .
, . , Wi-Fi, GPS .
Windows Phone: 3:
http://msdn.microsoft.com/ru-ru/windowsphone/hh420944[13.03.2012 0:08:25]
ExploreMapControl .
, using :
using Microsoft.Devices.Sensors; /.
, , .
GeoCoordinateWatcher, .
private GeoCoordinateWatcher myGeoWatcher;
, ( , ..) .
1. yGeoWatcher = new GeoCoordinateWatcher();
2. myGeoWatcher.MovementThreshold = 100.0f;
3.
4. myGeoWatcher.StatusChanged += new EventHandler(
myGeoWatcher_StatusChanged);
5.
6. myGeoWatcher.PositionChanged += new EventHandler(myGeoWatcher_PositionChanged);
, .. . , , .
, , , :
myGeoWatcher.TryStart(false, TimeSpan.FromSeconds(60));
Visual Studio StatusChanged PositionChanged, , NotImplemented:
throw new NotImplementedException();
PositionChanged , :
1. void myGeoWatcher_PositionChanged(object sender, GeoPositionChangedEventArgs e
)
2. {
3. MyMap.Center = e.Position.Location;
4. }
(F5) , . , , .
Windows Phone: 3:
http://msdn.microsoft.com/ru-ru/windowsphone/hh420944[13.03.2012 0:08:25]
, , , , .
, using :
using System.Threading;
Windows Phone: 3:
http://msdn.microsoft.com/ru-ru/windowsphone/hh420944[13.03.2012 0:08:25]
:
new Thread(startMyGeoWotcher).Start();
, , startMyGeoWotcher :
1. void startMyGeoWotcher()
2. {
3. myGeoWatcher.TryStart(false, TimeSpan.FromSeconds(60));
4. }
TextBlock
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
StatusChanged:
1. void myGeoWatcher_StatusChanged(object sender, GeoPositionStatusChangedEventArgs e)
2. {
3. switch (e.Status)
4. {
5. case GeoPositionStatus.Disabled:
6. if (myGeoWatcher.Permission == GeoPositionPermission.Denied)
7. {
8. GeoStatus.Text = "";
9. }
10. else
11. {
12. GeoStatus.Text = "";
13. }
14. break;
15. case GeoPositionStatus.Initializing:
16. GeoStatus.Text = "";
17. break;
18. case GeoPositionStatus.NoData:
19. GeoStatus.Text = "";
20. break;
21. case GeoPositionStatus.Ready:
22. GeoStatus.Text = "";
23. break;
24. }
25.
26. }
, .
Pushpin:
private Pushpin myPushpin;
:
myPushpin = new Pushpin();
Windows Phone: 3:
http://msdn.microsoft.com/ru-ru/windowsphone/hh420944[13.03.2012 0:08:25]
, :
myPushpin.Location = e.Position.Location;
if (!MyMap.Children.Contains(myPushpin)) MyMap.Children.Add(myPushpin);
(F5) , . , , ; .
Windows Phone: 3:
http://msdn.microsoft.com/ru-ru/windowsphone/hh420944[13.03.2012 0:08:25]
, , . , , Map WebBrowser, , .
.
ExploreLaunchers ExploreChoosers ExploreMapControl ExploreMapControl ExploreMapControl ExploreWebControl
| | MSDN 2012 Microsoft. . | | | Site Feedback
http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-44-58-Code/2475.ExploreLaunchers.ziphttp://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-44-58-Code/3007.ExploreChoosers.ziphttp://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-44-58-Code/7127.ExploreMapControl.ziphttp://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-44-58-Code/6087.ExploreMapControl.Geo.ziphttp://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-44-58-Code/0451.ExploreMapControl.Accelerometr.ziphttp://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-44-58-Code/6180.ExploreWebControl.ziphttp://go.microsoft.com/?linkid=8786242&lcid=1049http://www.microsoft.com/legal/http://www.microsoft.com/Rus/Msdn/flash/Default.mspxhttp://msdn.microsoft.com/ru-ru/cc300389.aspxhttp://www.microsoft.com/library/toolbar/3.0/trademarks/ru-ru.mspxhttp://www.microsoft.com/info/ru/privacy.mspxhttps://lab.msdn.microsoft.com/mailform/contactus.aspx?refurl=http%3a%2f%2fmsdn.microsoft.com%2fru-ru%2fwindowsphone%2fhh420944.aspx&loc=ru-ru
Windows Phone: 4: HTTP
http://msdn.microsoft.com/ru-ru/windowsphone/hh425066[13.03.2012 0:08:41]
(P)
Windows Phone: 4: HTTP
1. private void LoadRSS()
2. {
3. WebClient client = new WebClient();
4. client.DownloadStringCompleted += new DownloadStringCompletedEventHandler(client_Download
StringCompleted);
5. client.DownloadStringAsync(new Uri(RSS));
6. }
:
string RSSString = ""; , , :
1. void client_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
2. {
3. if (e.Error == null)
4. {
5. RSSString = e.Result;
6. }
7. }
, TextBlock , , XAML :
1.
2.
3.
Windows Phone: 4: HTTP
http://msdn.microsoft.com/ru-ru/windowsphone/hh425066[13.03.2012 0:08:41]
honeTextNormalStyle}"/>
4.
5.
6.
7.
8.
9.
10.
LoadRSS, , Text RSSText .
(F5) , .
HTTP. , HttpWebRequest , callback .
.
TextBlok ListBox .
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
, pubDate title. LINQ XML.
PostMessage pubDate title
Windows Phone: 4: HTTP
http://msdn.microsoft.com/ru-ru/windowsphone/hh425066[13.03.2012 0:08:41]
:
1. public class PostMessage
2. {
3. public string pubDate { get; set; }
4.
5. public string title { get; set; }
6. }
System.Xml.Linq using MainPage.xaml.cs
using System.Xml.Linq; , ListBox, .
1. XElement twitterElements = XElement.Parse(e.Result);
2.
3. var postList =
4. from tweet in twitterElements.Descendants("item")
5. select new PostMessage
6. {
7. title = tweet.Element("title").Value,
8. pubDate = tweet.Element("pubDate").Value
9. };
10.
11. RssList.ItemsSource = postList;
(F5) , RSS.
, . , , RSS .
, , .
PostMessage link:
1. public class PostMessage
Windows Phone: 4: HTTP
http://msdn.microsoft.com/ru-ru/windowsphone/hh425066[13.03.2012 0:08:41]
2. {
3. public string pubDate { get; set; }
4.
5. public string title { get; set; }
6.
7. public string link { get; set; }
8. }
RSS :
1. var postList =
2. from tweet in twitterElements.Descendants("item")
3. select new PostMessage
4. {
5. title = tweet.Element("title").Value,
6. pubDate = tweet.Element("pubDate").Value,
7. link = tweet.Element("link").Value
8. };
XAML MainPage SelectionChanged :
1. private void RssList_SelectionChanged(object sender, SelectionChangedEventArgs e)
2. {
3. WebBrowserTask webTask = new WebBrowserTask();
4. webTask.Uri = new Uri(((PostMessage)(RssList.SelectedItem)).link);
5. webTask.Show();
6. }
using :
using Microsoft.Phone.Tasks; (F5) , .
Windows Phone :
: /, IsolatedStorageSettings;
IsolatedStorageFile;
LINQ SQL.
, - .
, , .
, , RSS , .
, using :
using System.IO.IsolatedStorage; using System.IO; . :
const string RSSFileName = "rss.xml"; :
1. void SaveRSSToIsolatedStorage(string RSSText)
2. {
3. IsolatedStorageFile rssFileStorage = IsolatedStorageFile.GetUserStoreForApplicatio
n();
4. IsolatedStorageFileStream rssFileStream = rssFileStorage.CreateFile(RSSFileName);
5.
Windows Phone: 4: HTTP
http://msdn.microsoft.com/ru-ru/windowsphone/hh425066[13.03.2012 0:08:41]
6. StreamWriter sw = new StreamWriter(rssFileStream);
7. sw.Write(RSSText);
8. sw.Close();
9.
10. rssFileStream.Close();
11. }
12.
13.
14. string LoadRSSFromIsolatedStorage()
15. {
16. IsolatedStorageFile rssFileStorage = IsolatedStorageFile.GetUserStoreForApplicatio
n();
17. IsolatedStorageFileStream rssFileStream = rssFileStorage.OpenFile(RSSFileName, Sy
stem.IO.FileMode.Open);
18.
19. StreamReader sr = new StreamReader(rssFileStream);
20. string RSS = sr.ReadToEnd();
21. sr.Close();
22. rssFileStream.Close();
23.
24. return RSS;
25. }
, .
1. bool IsRSSExist()
2. {
3. IsolatedStorageFile rssFileStorage = IsolatedStorageFile.GetUserStoreForApplicatio
n();
4. return rssFileStorage.FileExists(RSSFileName);
5. }
:
1. void ParseRSSAndBindData(string RSSText)
2. {
3. XElement twitterElements = XElement.Parse(RSSText);
4.
5. var postList =
6. from tweet in twitterElements.Descendants("item")
7. select new PostMessage
8. {
9. title = tweet.Element("title").Value,
10. pubDate = tweet.Element("pubDate").Value,
11. link = tweet.Element("link").Value
12. };
13.
14. RssList.ItemsSource = postList;
15. }
:
1. void client_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
2. {
3. if (e.Error == null)
4. {
5. RSSString = e.Result;
6.
7. ParseRSSAndBindData(RSSString);
8.
9. SaveRSSToIsolatedStorage(RSSString);
10. }
11. }
LoadRSS():
1. private void LoadRSS()
2. {
3. if (IsRSSExist())
4. {
5. RSSString = LoadRSSFromIsolatedStorage();
6. ParseRSSAndBindData(RSSString);
Windows Phone: 4: HTTP
http://msdn.microsoft.com/ru-ru/windowsphone/hh425066[13.03.2012 0:08:41]
7. }
8. else
9. {
10. RequestRSS();
11. }
12. }
RequestRSS() LoadRSS():
1. private void RequestRSS()
2. {
3. WebClient client = new WebClient();
4. client.DownloadStringCompleted += new DownloadStringCompletedEventHandler(client_D
ownloadStringCompleted);
5. client.DownloadStringAsync(new Uri(RSS));
6.
7. }
, .
, .
, , , , , . .
, System.Data.Linq, using :
1. using System.Data.Linq;
2. using System.Data.Linq.Mapping;
3. using System.ComponentModel;
4. using System.Collections.ObjectModel;
, , ([Table] [Column] ) 2 INotifyPropertyChanged, INotifyPropertyChanging, .
, DataContext . .
.
, :http://msdn.microsoft.com/en-us/library/hh202876(v=VS.92).aspx
, MVVM : http://go.microsoft.com/fwlink/?LinkId=219066 , http://msdn.microsoft.com/en-us/library/hh286405(v=VS.92).aspx
, , . , , EntityFramework .
, .
SimpleRussianRSSReader SimpleRussianRSSReader Isolated Storage
| | MSDN 2012 Microsoft. . | | | Site Feedback
http://msdn.microsoft.com/en-us/library/hh202876(v=VS.92).aspxhttp://go.microsoft.com/fwlink/?LinkId=219066http://msdn.microsoft.com/en-us/library/hh286405(v=VS.92).aspxhttp://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-44-58-Code/7380.SimpleRussianRSSReader.HTTP.ziphttp://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-44-58-Code/4113.SimpleRussianRSSReader.IsoStorage.ziphttp://go.microsoft.com/?linkid=8786242&lcid=1049http://www.microsoft.com/legal/http://www.microsoft.com/Rus/Msdn/flash/Default.mspxhttp://msdn.microsoft.com/ru-ru/cc300389.aspxhttp://www.microsoft.com/library/toolbar/3.0/trademarks/ru-ru.mspxhttp://www.microsoft.com/info/ru/privacy.mspxhttps://lab.msdn.microsoft.com/mailform/contactus.aspx?refurl=http%3a%2f%2fmsdn.microsoft.com%2fru-ru%2fwindowsphone%2fhh425066.aspx&loc=ru-ru
Windows Phone: 4: HTTP
http://msdn.microsoft.com/ru-ru/windowsphone/hh425066[13.03.2012 0:08:41]
Windows Phone: 5: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh425067[13.03.2012 0:08:55]
(P)
Windows Phone: 5: , , , , ,
Windows Phone / . , (dormant). , (dormant) . , , .
Windows Phone , , .
Launching, Closing, Activated Deactivated. - - , : OnNavigatedTo OnNavogatedFrom.
, , , .
, , Back , :
1. , Launching2. , OnNavigatedTo3. .4. , Back,
.5. OnNavigatedFrom 6. Closing .
, , , , ( ), Back , .
1. , Launching2. , OnNavigatedTo3. .4. , Back,
.5. OnNavigatedFrom 6. Deactivated .7. (dormant) .8. ,
.9. , Back
, .10. Activated .11.
OnNavigatedTo12. .
1: ,
2: ,
3:
4: HTTP
5: ,
6: , Live Tiles PushNotification
https://login.live.com/login.srf?wa=wsignin1.0&rpsnv=11&ct=1331582920&rver=6.0.5276.0&wp=MCLBI&wlcxt=msdn%24msdn%24msdn&wreply=http%3a%2f%2fmsdn.microsoft.com%2fru-ru%2fwindowsphone%2fhh425067&lc=1049&id=254354&mkt=ru-RUhttp://msdn.microsoft.com/ru-ru/windowsphonehttp://msdn.microsoft.com/ru-ruhttp://msdn.microsoft.com/ru-ruhttp://www.microsoft.com/ru/ru/softmicrosoft/windowsPhone.aspxhttp://msdn.microsoft.com/ru-ru/library/ff402535.aspxhttp://social.msdn.microsoft.com/Forums/ru-ru/formobiledevicesru/threads
Windows Phone: 5: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh425067[13.03.2012 0:08:55]
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
(F5). - , , . Back , . , , .. (dormant) .
, , ?
, , (PhoneApplicationService.State) (PhoneApplicationPage.State) Tombstoned. , (dormant) , , , . , IsApplicationInstancePreserved ActivatedEventArgs. true , false Tombstone .
Tombstoned . , , Launching.
:http://msdn.microsoft.com/en-us/library/ff769557(v=VS.92).aspx
.
Windows Phone Application ApplicationStateExample.
XAML :
http://msdn.microsoft.com/en-us/library/ff769557(v=VS.92).aspx
Windows Phone: 5: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh425067[13.03.2012 0:08:55]
, Tombstone upondeactivation while debugging:
(F5). - , , . Back , . , , .. Tombstone, .
MainPage.xaml.cs OnNavigatedFrom OnNavigatedTo, :
1. protected override void OnNavigatedFrom(System.Windows.Navigation.NavigationEventArgs e)
2. {
3. base.OnNavigatedFrom(e);
4.
5. this.State.Add("text", Message.Text);
6. }
7.
8. protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e
)
9. {
10. base.OnNavigatedTo(e);
11.
12. if (this.State.ContainsKey("text"))
Windows Phone: 5: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh425067[13.03.2012 0:08:55]
13. {
14. Message.Text = (string)this.State["text"];
15. }
16. }
C (F5). - , , . Back , . , , , Tombstone, .. .
, .. , , .
, , ( , , , tomnstone ) :
1. bool isNewlyCreatedPage = false;
2.
3. // Constructor
4. public MainPage()
5. {
6. InitializeComponent();
7.
8. isNewlyCreatedPage = true;
9. }
1. protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
2. {
3. base.OnNavigatedTo(e);
4.
5. if (this.State.ContainsKey("text") && isNewlyCreatedPage)
6. {
7. Message.Text = (string)this.State["text"];
8. }
9.
10. isNewlyCreatedPage = false;
11. }
(F5) , .
Tombstone upon deactivation while debugging , (dormant) .
, .
TextBlock Click XAML :
1.
2.
3.
4.
5.
App.xaml.cs AppState:
public string AppState = "";
MainPage.xaml.cs, TextBox AppState TextBlock, AppState TextBlock:
1. protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
2. {
3. base.OnNavigatedTo(e);
4.
5. if (this.State.ContainsKey("text") && isNewlyCreatedPage)
6. {
Windows Phone: 5: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh425067[13.03.2012 0:08:55]
7. Message.Text = (string)this.State["text"];
8.
9. App myApp = App.Current as App;
10. AppState.Text = myApp.AppState;
11. }
12.
13. isNewlyCreatedPage = false;
14. }
15.
16. private void Log_Click(object sender, RoutedEventArgs e)
17. {
18. AppState.Text = Message.Text;
19.
20. App myApp = App.Current as App;
21.
22. myApp.AppState = AppState.Text;
23. }
/ App.xaml.cs:
1. // Code to execute when the application is activated (brought to foreground)
2. // This code will not execute when the application is first launched
3. private void Application_Activated(object sender, ActivatedEventArgs e)
4. {
5. if (!e.IsApplicationInstancePreserved)
6. {
7. AppState = (string)PhoneApplicationService.Current.State["appState"];
8.
9. }
10. }
11.
12. // Code to execute when the application is deactivated (sent to background)
13. // This code will not execute when the application is closing
14. private void Application_Deactivated(object sender, DeactivatedEventArgs e)
15. {
16. PhoneApplicationService.Current.State.Add("appState", AppState);
17. }
Tombstone upon deactivation while debugging, (F5) , .
, , Deactivated.
, Windows Phone , , , .
, , / , (Alarms) (Reminders). , .
,
: (PeriodicTask) (ResourceIntensiveTask). , , , . API Microsoft.Phone.Scheduler.
, , , :
, , ;
API ;
;
;
14 ( );
- - , ;
Windows Phone: 5: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh425067[13.03.2012 0:08:55]
.
:
, 30 , (, ) +/- 10
90%
25 10
6 , 10% 6
, API . API MSDN: http://msdn.microsoft.com/en-us/library/hh202962(v=VS.92).aspx , , API , :
API API
Tiles UI
Toast XNA
Location
Network
Isolated Storage
Sockets
Silverlight API
, .
Windows Phone Application, BackgroundAgentExample. Solution Explorer, , Add, Add, New Project. WindowsPhone Scheduled Task Agent ToastAgent.
ToastAgent, ScheduledAgent.cs.
using :
using Microsoft.Phone.Shell; OnInvoke, , toast:
1. protected override void OnInvoke(ScheduledTask task)
2. {
3. ShellToast toast = new ShellToast();
4. toast.Title = "Toast Agent";
5. toast.Content = "";
6. toast.Show();
7.
8. #if DEBUG
9. ScheduledActionService.LaunchForTest(task.Name, System.TimeSpan.FromSeconds(10));
10. #endif
11.
12. NotifyComplete();
http://msdn.microsoft.com/en-us/library/hh202962(v=VS.92).aspxhttp://msdn.microsoft.com/en-us/library/hh202962(v=VS.92).aspx
Windows Phone: 5: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh425067[13.03.2012 0:08:55]
13. }
. 30 , 10 .
.
ToastAgent. References, Add Refernce, Projects, Solution, ToastAgent Add, Close.
MainPage.xaml. , Click:
1.
2.
3.
4.
using :
using Microsoft.Phone.Scheduler;
MainPage:
const string ToastAgentName = "Agent-Toast";
, ToastAgent.
1. private void StartAgent_Click(object sender, RoutedEventArgs e)
2. {
3. PeriodicTask myPeriodicTask = ScheduledActionService.Find(ToastAgentName) as Peri
odicTask;
4.
5. if (myPeriodicTask != null)
6. {
7. try
8. {
9. ScheduledActionService.Remove(ToastAgentName);
10. }
11. catch (Exception ex)
12. {
13. MessageBox.Show(":"+ex.Message);
14. }
15. }
16.
17. myPeriodicTask = new PeriodicTask(ToastAgentName);
18. myPeriodicTask.Description = "Agent-Toast";
19.
20.
21. try
22. {
Windows Phone: 5: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh425067[13.03.2012 0:08:55]
23. ScheduledActionService.Add(myPeriodicTask);
24.
25.
26.
27. #if DEBUG
28. ScheduledActionService.LaunchForTest(ToastAgentName, TimeSpan.FromSeconds(10))
;
29. #endif
30. }
31. catch (Exception ex)
32. {
33. MessageBox.Show(":" + ex.Message);
34. }
35.
36. }
, .
, , 10.
(F5) : , StartToast, , .
, background tasks ,
Windows Phone: 5: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh425067[13.03.2012 0:08:55]
, , , .
/
/ API, Microsoft.Phone.BackgroundTransfer.
/ / (Isolated Storage) , , . , . GET/POST HTTP/HTTPS POST HTTP/HTTPS .
, / . 5 , 20 , 100 (WiFi) ( ).
5 / . , / . , 500 / .
, SimpeRussianRSSReader RSS.
. RSS , RSS .
RSS , .
, :/shared/transfers
1. using (IsolatedStorageFile rssStore = IsolatedStorageFile.GetUserStoreForApplication())
2. {
3. if (!rssStore.DirectoryExists("/shared/transfers"))
4. {
5. rssStore.CreateDirectory("/shared/transfers");
6. }
7. }
Windows Phone: 5: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh425067[13.03.2012 0:08:55]
, . .
LoadRSS, :
1. Uri transferUri = new Uri(RSS);
2.
3. BackgroundTransferRequest transferRequest = new BackgroundTransferRequest(tra
nsferUri);
4.
5. transferRequest.Method = "GET";
6.
7.
8. Uri downloadUri = new Uri("shared/transfers/" + RSSFileName, UriKind.Relative
OrAbsolute);
9. transferRequest.DownloadLocation = downloadUri;
10.
11. transferRequest.TransferStatusChanged += new EventHandler(transferRequest_TransferStatusChanged);
12.
13. try
14. {
15. BackgroundTransferService.Add(transferRequest);
16. }
17. catch (Exception ex)
18. {
19.
20. MessageBox.Show(":" + ex.Message);
21. }
URL RSS, URI, /shared/transfers RSS GET, , .
, , , :
1. void transferRequest_TransferStatusChanged(object sender, BackgroundTransferEventArgs e)
2. {
3. //-UI
4. if (e.Request.TransferStatus == TransferStatus.Completed)
5. {
6. try
7. {
8. BackgroundTransferService.Remove(e.Request);
9. }
10. catch (Exception ex)
11. {
12.
13. MessageBox.Show(":" + ex.M
essage);
14. }
15.
16. using (IsolatedStorageFile rssStore = IsolatedStorageFile.GetUserStoreForAppl
ication())
17. {
18. if (rssStore.FileExists("/shared/transfers/" + RSSFileName))
19. {
20. rssStore.CopyFile("/shared/transfers/" + RSSFileName, RSSFileName, tr
ue);
21.
22. RSSString = LoadRSSFromIsolatedStorage();
23. ParseRSSAndBindData(RSSString);
24. }
25. }
26.
27. }
28. }
, , URL RSS:
1. //const string RSS = "http://blogs.msdn.com/b/rustudents/rss.aspx";
Windows Phone: 5: ,
http://msdn.microsoft.com/ru-ru/windowsphone/hh425067[13.03.2012 0:08:55]
, (F5) , RSS . , RSS, Visual Studio ( ).
, , URL :
1. //const string RSS = "http://blogs.msdn.com/b/rudevnews/rss.aspx";
2. const string RSS = "http://blogs.msdn.com/b/rustudents/rss.aspx";
(F5) RSS .
API , Microsoft.Phone.BackgroundAudio. , , .
Windows Audio Playback Agent Windows Audio Streaming Agent .
Windows Phone.
MSDN: http://msdn.microsoft.com/ru-ru/library/hh394039(v=VS.92).aspx
http://msdn.microsoft.com/ru-ru/library/hh202978(v=VS.92).aspx , .
, , , Live Tiles.
ApplicationStateExample BackgroundAgentExample SimpleRussianRSSReader Background File Transfer
| | MSDN 2012 Microsoft. . | | | Site Feedback
http://msdn.microsoft.com/ru-ru/library/hh394039(v=VS.92).aspxhttp://msdn.microsoft.com/ru-ru/library/hh202978(v=VS.92).aspxhttp://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-44-58-Code/6518.ApplicationStateExample.ziphttp://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-44-58-Code/5633.BackgroundAgentExample.ziphttp://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-44-58-Code/0564.SimpleRussianRSSReader.BackgroundFileTransfer.ziphttp://go.microsoft.com/?linkid=8786242&lcid=1049http://www.microsoft.com/legal/http://www.microsoft.com/Rus/Msdn/flash/Default.mspxhttp://msdn.microsoft.com/ru-ru/cc300389.aspxhttp://www.microsoft.com/library/toolbar/3.0/trademarks/ru-ru.mspxhttp://www.microsoft.com/info/ru/privacy.mspxhttps://lab.msdn.microsoft.com/mailform/contactus.aspx?refurl=http%3a%2f%2fmsdn.microsoft.com%2fru-ru%2fwindowsphone%2fhh425067.aspx&loc=ru-ru
Windows Phone: 6: , Live Tiles Push Notification
http://msdn.microsoft.com/ru-ru/windowsphone/hh505822[13.03.2012 0:09:11]
(P)
Windows Phone: 6: , Live Tiles Push Notification ? , , , , - - . , , !
(Alarm) (Reminder)
Windows Phone : (Alarms) (Reminders), , . , . .
Alarm Reminder ScheduledNotification , , . Alarm , Reminder .
, 50 , .
.
(Alarm)
(Alarm) 2- (snooze) (dismiss), . , . , , (Alarm) , , .
(Alarm) , , .
, , , , .
(Reminder)
1: ,
2: ,
3:
4: HTTP
5: ,
6: , Live Tiles PushNotification
https://login.live.com/login.srf?wa=wsignin1.0&rpsnv=11&ct=1331582935&rver=6.0.5276.0&wp=MCLBI&wlcxt=msdn%24msdn%24msdn&wreply=http%3a%2f%2fmsdn.microsoft.com%2fru-ru%2fwindowsphone%2fhh505822&lc=1049&id=254354&mkt=ru-RUhttp://msdn.microsoft.com/ru-ru/windowsphonehttp://msdn.microsoft.com/ru-ruhttp://msdn.microsoft.com/ru-ruhttp://www.microsoft.com/visualstudio/save/ru-ruhttp://msdn.microsoft.com/ru-ru/library/ff402535.aspxhttp://social.msdn.microsoft.com/Forums/ru-ru/formobiledevicesru/threads
Windows Phone: 6: , Live Tiles Push Notification
http://msdn.microsoft.com/ru-ru/windowsphone/hh505822[13.03.2012 0:09:11]
(Reminder) 2- , , .
, . , , , , , , .
, , , , , URI , .
(Alarm) .
.
Windows Phone Application SimpleNotificationManager.
, , Silverlight forWindows Phone Toolkit.
, NuGet Package Manager (Tools -> Extension Manager )
Windows Phone: 6: , Live Tiles Push Notification
http://msdn.microsoft.com/ru-ru/windowsphone/hh505822[13.03.2012 0:09:11]
.
Visual Studio , Tools -> Library Package Manager -> Manage NuGetPackages
NuGet. Silverlight forWindows Phone Toolkit.
Windows Phone: 6: , Live Tiles Push Notification
http://msdn.microsoft.com/ru-ru/windowsphone/hh505822[13.03.2012 0:09:11]
1. xmlns:toolkit="clr-
namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
XAML :
, .
, , Toolkit.Content (BuildAction) Content ( Resource).
, Silverlight for Windows Phone Toolkit . , , toolkit XAML MainPage.xaml, Silverlight for Windows Phone Toolkit :
:
Windows Phone: 6: , Live Tiles Push Notification
http://msdn.microsoft.com/ru-ru/windowsphone/hh505822[13.03.2012 0:09:11]
1.
. , , ( ) . StackPanel:
, XAML MainPage.xaml ( phone:PhoneApplicationPage) :
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
Windows Phone: 6: , Live Tiles Push Notification
http://msdn.microsoft.com/ru-ru/windowsphone/hh505822[13.03.2012 0:09:11]
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
NotificationList. , . .
, , , . , . , .
- XAML , , , , /. , Loaded , -:
1. // Constructor
2. public MainPage()
3. {
4. InitializeComponent();
5.
6. this.Loaded += new RoutedEventHandler(MainPage_Loaded);
7. }
8.
9. void MainPage_Loaded(object sender, RoutedEventArgs e)
10. {
11.