Windows Phone API QuickStart

Fundamental Types and Threading and cont. cont. Wallet▲ Date / Time Synchronization .NET .Phone.Maps.Controls Microsoft.Devices Map, MapLayer, MapOverlay, .NET Microsoft.Phone.Maps.Services Microsoft.Phone.Tasks Windows Runtime PhotoCamera, CameraButtons, CameraVideo- ♦♣ Windows Runtime + GeocodeQuery, ReverseGeocodeQuery, Route- AddWalletItem Windows.Foundation ♦ BrushExtensions Windows.System.Threading Microsoft.Phone Query Microsoft.Phone.Wallet DateTime, Uri ThreadPool, ThreadPoolTimer Microsoft.Phone.Tasks Wallet, Deal, WalletTransactionItem, WalletAgent ♦♣ ♦ PictureDecoder Windows.Foundation.Collections Windows.UI.Core MapsTask, MapsDirectionsTask, MapDownload- Microsoft.Phone.Tasks ▲ IIterable, IVector , IMap, IVec- CoreDispatcher, CoreWindow, erTask Multitasking torView MediaPlayerLauncher, CameraCaptureTask, ♦ Note: You can get the current dispatcher from PhotoChooserTask, ShareMediaTask, SaveRing- System.Device.Location Windows.Storage.Streams CoreWindow.GetForCurrentThread() GeoCoordinateWatcher .NET Buffer toneTask Microsoft.Xna.Framework.Audio Microsoft.Phone.BackgroundAudio .NET BackgroundAudioPlayer, AudioTrack, AudioPlay- Microphone, SoundEffect, DynamicSoundEffec- ▲ .NET System tInstance erAgent, AudioStreamingAgent ♦ + VoIP System WindowsRuntimeSystemExtensions Microsoft.Xna.Framework.Media Microsoft.Phone.BackgroundTransfer ■ Object, Byte, Char, Int32, Single, Double, String, System.Threading MediaLibrary, MediaPlayer, Song Windows Runtime BackgroundTransferService, BackgroundTransfer- Array, Buffer, Uri, DateTime, TimeSpan, Convert, Thread, ThreadPool, Timer, AutoResetEvent, Microsoft.Xna.Framework.Media.PhoneExtensions Windows.Phone.Media.Capture Request Math, Random, Type, Exception, Action, ManualResetEvent, Mutex MediaLibraryExtensions+ AudioVideoCaptureDevice, KnownCameraAu- Microsoft.Phone.Networking.Voip Func ♦ VoipCallInProgressAgent, VoipForegroundLife- ♦ System.Threading.Tasks System.Windows.Media dioVideoProperties System.Collections Task, TaskCompletionSource, CaptureSource, CaptureDeviceConfiguration, Windows.Phone.Media.Devices timeAgent List, Dictionary, Queue, TaskFactory MediaStreamSource, VideoBrush AudioRoutingManager Microsoft.Phone.Scheduler Stack ScheduledActionService, PeriodicTask, ResourceIn- ♦ System.Windows.Threading System.Windows.Media.Imaging Windows.Phone.Networking.Voip System.Collections.ObjectModel Dispatcher, DispatcherTimer WriteableBitmap, BitmapImage, Extensions+ VoipCallCoordinator, VoipPhoneCall tensiveTask Collection, ObservableCollection Note: You can get the global dispatcher from Note: See Messaging, Sharing & Miscellaneous for Microsoft.Phone.Shell System.Linq System.Windows.Deployment.Current key DRM .NET ShellToast Note: Contains extension methods; no need to use Microsoft.Phone.Wallet Microsoft.Phone.Media specific types WalletAgent Native MediaStreamerFactory System.Runtime.InteropServices.WindowsRuntime ♦ Threads Microsoft.Phone.Networking.Voip WindowsRuntimeBuffer, WindowsRuntime- + GetCurrentThread, GetCurrentThreadId VoipBackgroundProcess, VoipHttpIncoming- Push, Live Tiles and Lock Screen BufferExtensions ♦ ▲ Synchronization Native Note: You can also use standard C# and VB types ■ CallTask, VoipKeepAliveTask WaitForSingleObjectEx, WaitForMultipleObject- See also: Multitasking Windows Runtime and libraries, ‘dynamic’ types, and ‘async’ methods MFSStartup, IMFMediaEngineClassFactory, IMF- via ‘await’ sEx, CreateMutexExW, ReleaseMutex, Crea- Windows.Phone.System.UserProfile MediaEngine, MFShutdown LockScreen, LockScreenManager teEventExW, SetEvent, ResetEvent, CloseHandle, ♦ XAudio2 Native Native InitializeCriticalSectionEx, EnterCriticalSection, Audio ♦ LeaveCriticalSection, DeleteCriticalSection XAudio2Create, X3DAudioInitialize, X3DAudio- .NET Platform Calculate ActivateAudioInterface, GetDefaultAudioCaptu- Object, String, Array, Exception reId, GetDefaultAudioRenderId, Microsoft.Phone.Notification ♦ CaptureDevice Native APIs HttpNotificationChannel Platform::Collections ICameraCaptureDeviceNative, IAudioVideoCap- Vector, VectorView, Map, Microsoft.Phone.Shell File System tureDeviceNative Controls and Animation (XAML) ShellTile, FlipTileData, IconicTileData, CycleTile- MapView, VectorIterator Note: These are accessible from the Windows ♦ Data, Date & Time and Streams Runtime objects .NET GetLocalTime, GetSytemTime, GetDynamicTi- Microsoft.Advertising.Mobile.UI♥ meZoneInformation, SystemTimeToFileTime, Windows Runtime AdControl Contacts, Appointments ♥ FileTimeToSystemTime Windows.Storage■ XML, Databases Microsoft.Expression.Interactivity.Core and Reminders Note: You can also use standard C types and the ApplicationData, StorageFile, StorageFolder GoToStateAction, NavigateToPageAction, Call- C++ standard libraries Note: You can get install folder from Windows.Ap- and Serialization MethodAction, ChangePropertyAction ♥ Windows Runtime plicationModel.Package.Current.InstalledLocation .NET Microsoft.Expression.Interactivity.Media Windows.Phone.PersonalInformation • Core App Framework, Memory Windows.Storage.FileProperties System.Data.Linq ControlStoryboardAction, PlaySoundAction ContactStore, StoredContact, ContactInformation, BasicProperties DataContext Microsoft.Phone.Controls KnownContactProperties & Debugging ■ Windows.Storage.Streams System.Data.Linq.Mapping LongListSelector, Panorama, Pivot, WebBrowser Windows Runtime DataReader, DataWriter TableAttribute, ColumnAttribute Microsoft.Phone.Maps.Controls .NET ■♣ ♦ Map, MapLayer, MapOverlay, Windows.ApplicationModel.Core System.Runtime.Serialization ° Microsoft.Phone.Scheduler CoreApplication .NET DataContractSerializer System.Windows.Controls Alarm, Reminder ■♣ ♦ Windows.Graphics.Display Microsoft.Phone.Storage System.Runtime.Serialization.Json Button, CheckBox, RadioButton, HyperlinkBut- Microsoft.Phone.Tasks DisplayProperties ExternalStorage DataContractJsonSerializer ton, TextBlock, TextBox, PasswordBox, RichText- PhoneCallTask, PhoneNumberChooserTask, ♣ ♦ ♦ Windows.Phone.UI.Core System.IO System.Xml Box, Image, MediaElement, ProgressBar, Border, EmailAddressChooserTask, AddressChooserTask, KeyboardInputBuffer StreamReader, StreamWriter, StringReader, XmlReader, XmlWriter Canvas, Grid, ListBox, StackPanel, ScrollViewer, SaveAppointmentTask, SaveContactTask, ♣ ♦ Windows.Phone.UI.Input StringWriter, BinaryReader, BinaryWriter, System.Xml.Linq ViewBox Microsoft.Phone.UserData HardwareButtons MemoryStream, WindowsRuntimeStorageExten- XDocument, XElement, XAttribute, XNamespace, System.Windows.Controls.Primitives Contacts, Appointments ♣ + Windows.UI.Core■ + + Extensions Popup, ViewportControl sions , WindowsRuntimeStreamExtensions ■ ♥ CoreWindow Note: Avoid using the File, FileInfo, Directory, Direc- System.Xml.Serialization System.Windows.Interactivity Messaging, Sharing toryInfo, and Path types XmlSerializer Interaction, InvokeCommandAction, System.IO.IsolatedStorage System.Windows.Media.Animation and Miscellaneous .NET Storyboard, DoubleAnimation, DoubleAnima- Microsoft.Phone.Controls IsolatedStorageFile Windows Runtime In-App Purchase, Licensing tionUsingKeyFrames, DiscreteDoubleKeyFrame, ♣ Windows.ApplicationModel.DataTransfer• PhoneApplicationFrame, PhoneApplicationPage ObjectAnimationUsingKeyFrames, DiscreteOb- Microsoft.Phone.Shell Native and Marketplace DataPackage, DataTransferManager ♦ jectKeyFrame File I/O Windows.Phone.Devices.Power PhoneApplicationService, ApplicationBar, System.Windows.Shapes CreateFile2, ReadFile, WriteFile, DeleteFileW, Windows Runtime Battery SystemTray ■ Rectangle, Ellipse, Polygon ♦ Windows.ApplicationModel.Store Windows.Phone.Management.Deployment System.Diagnostics CloseHandle, FindFirstFileExW, FindClose Note: Use Visual Studio or Expression Blend for CurrentApp InstallationManager Debug, Debugger • layout. Use Expression Blend to add interactivity, Windows.System Windows.Phone.Storage.SharedAccess System.Windows Networking, Web ▲ animation, and visual states. Application, MessageBox, ResourceDictionary Launcher.LaunchUriAsync SharedStorageAccessManager System.Windows.Navigation and Proximity ▲ Windows.Phone.System.Analytics NavigationService, NavigationContext, .NET 3D Graphics HostInformation Windows.Phone.System.Memory UriMapper Windows Runtime Microsoft.Phone.Marketplace .NET LicenseInformation MemoryManager Windows.Networking System.Windows.Controls Microsoft.Phone.Tasks Windows.Phone.System.Power Native HostName DrawingSurface, DrawingSurfaceBackground- ♦ ♦ MarketplaceDetailsTask, MarketplaceRe- PowerManager COM Windows.Networking.Proximity Grid viewTask, MarketplaceSearchTask Windows.System CoInitializeEx, CoUninitialize, CoCreateInstance- PeerFinder, ProximityDevice XNA ▲ ■ Launcher FromApp, StringFromCLSID, CoTaskMemFree, Windows.Networking.Sockets Note: XNA is fully supported for Windows Phone 7.5 CoFreeUnusedLibrariesEx DatagramSocket, StreamSocket ♦ apps only; see documentation. Memory & Libraries Maps, Location and Sensors .NET GetProcessHeap, HeapAlloc, HeapFree, Load- .NET Native Microsoft.Phone.Info PackagedLibrary, GetProcAddress, FreeLibrary Microsoft.Phone.Controls DeviceStatus Note: You can also use C++ new and delete opera- + Windows Runtime WebBrowser, WebBrowserExtensions ♦ D3D11CreateDevice, CreateSwapChainForCore- Microsoft.Phone.Tasks tors Windows.Devices.Geolocation ♦ Microsoft.Phone.Tasks Window, ID3D11Device1, ID3D11DeviceCon- PhoneCallTask, SmsComposeTask, EmailCompo- Errors & Debugging Geolocator WebBrowserTask text1, IDXGISwapChain1 seTask, ShareLinkTask, ShareStatusTask, ShareMe- GetLastError, IsDebuggerPresent, OutputDebug- ■ ■ System.Net Windows.Devices.Sensors Note: See documentation for complete list of D3D diaTask, SearchTask, ConnectionSettingsTask StringW WebClient, HttpWebRequest, WebUtility Accelerometer, Compass, Gyrometer, Orienta- interfaces and APIs System.Security.Cryptography System.Net.Sockets tionSensor ProtectedData, RNGCryptoServiceProvider, RSAC- Text, Globalization & Resources Socket Windows.Phone.Devices.Notification ryptoServiceProvider, SHA256Managed, AesMan- Note: Provided for compatibility; new apps should VibrationDevice Speech aged .NET use Windows.Networking.Sockets System.Security.Cryptography.X509Certificates Microsoft.Phone.Globalization .NET Windows Runtime X509Certificate Microsoft.Devices ♦▲ SortedLocaleGrouping Native Windows.Phone.Speech.Recognition System.Windows.Media ♦ VibrateController System.Globalization■ HTTP SpeechRecognizerUI, SpeechRecognizer, In- DomainAcquirer, LicenseAcquirer Microsoft.Devices.Sensors CultureInfo, RegionInfo IXMLHTTPRequest2 stalledSpeechRecognizers Accelerometer, Compass, Gyroscope, Motion System.Resources Windows.Phone.Speech.Synthesis WSAStartup, socket, gethostbyname, WSAAd- SpeechSynthesizer, InstalledVoices Native ResourceManager Hardware ♦ dressToString, bind, connect, send, recv, accept, Windows.Phone.Speech.VoiceCommands System.Text IsProcessorFeaturePresent StringBuilder, Encoding listen, closesocket, WSACleanup VoiceCommandService ♦ System,Text, RegularExpressions Regex Windows Phone Toolkit NuGet Package Manager Please see the docs for more info Media, Sounds http://phone.codeplex.com http://nuget.codeplex.com/ System.Windows Same or very similar to Application.GetResourceStream() and Pictures Microsoft Media Player Framework DirectX Helpers http://smf.codeplex.com/ http://directxtex.codeplex.com/, Mostly overlaps with Windows 8 Smooth Streaming Client http://directxtk.codeplex.com/ Native Windows Runtime Additional Frameworks: http://www.iis.net/downloads/microsoft/smooth-streaming-client-sdk OData Client Limited overlap with Windows 8 ♦ Windows.Phone.Media.Capture Text & Resources http://msdn.microsoft.com/en-us/jj658961 FormatMessageW, MultiByteToWideChar, PhotoCaptureDevice, AudioVideoCaptureDevice, Supported in native apps only WideCharToMultiByte, CompareStringEx KnownCameraPhotoProperties • NFC -> Networking, Web, & Proximity • Facebook & Twitter -> Messaging, Sharing & Miscellaneous ♦ •♣ Extension methods NLS Windows.Storage.Pickers • Bluetooth -> Networking, Web, & Proximity • Rumble / Vibration -> Maps, Location & Sensors GetDateFormatEx, GetTimeFormatEx, Ge- FileOpenPicker • GPS -> Maps, Location & Sensors; Multitasking • Battery & Power -> Messaging, Sharing & Miscellaneous Similar to Windows.UI.Xaml • Background audio -> Multitasking; Media • Memory -> Messaging, Sharing & Miscellaneous tUserDefaultLocaleName, GetLocaleInfoEx Note: Can only be used to pick photos from the namespace in Windows • Alarms & Reminders -> Multitasking; Contacts, • App launching -> Messaging, Sharing & Miscellaneous MUI Photos Hub Appointments & Reminders • Ringtones -> Media, Sounds & Pictures Use Add Reference Extensions GetUserPrefferedUILanguages yellow black • Calendar -> Contacts, Appointments & Reminders • Security -> Messaging, Sharing & Miscellaneous dialog to add to project See Also: • E-mail & SMS -> Messaging, Sharing & Miscellaneous • DRM -> Messaging, Sharing & Miscellaneous Legend 064028- cyan magenta