skip to content
Windows Phone 8 unleashed Preview this item
ClosePreview this item
Checking...

Windows Phone 8 unleashed

Author: Daniel Vaughan
Publisher: Indianapolis, Ind. : Sams Pub., ©2013.
Series: Unleashed.
Edition/Format:   eBook : Document : EnglishView all editions and formats
Rating:

(not yet rated) 0 with reviews - Be the first.

Subjects
More like this

Find a copy online

Links to this item

Find a copy in the library

&AllPage.SpinnerRetrieving; Finding libraries that hold this item...

Details

Genre/Form: Electronic books
Additional Physical Format: Print version:
Vaughan, Daniel.
Windows Phone 8 unleashed.
Indianapolis, Ind. : Sams Pub., ©2013
(OCoLC)846919796
Material Type: Document, Internet resource
Document Type: Internet Resource, Computer File
All Authors / Contributors: Daniel Vaughan
ISBN: 9780133383959 0133383954 0672336898 9780672336898 9780133383928 013338392X
OCLC Number: 852251541
Description: 1 online resource (1 volume) : illustrations
Contents: Preface xxii Part I Windows Phone App Development Fundamentals Chapter 1 Introduction to Windows Phone App Development 1Installing the Windows Phone SDK........................................................2Creating Your First XAML for Windows Phone App.................................2The Application Class..................................................................7Summary...........................................................................................11 Chapter 2 Fundamental Concepts in Windows Phone Development 13Understanding the Role of XAP Files....................................................14The Application Deployment Tool...............................................15The Windows Phone Capabilities Model...............................................16Determining App Capabilities Using the Marketplace Test Kit.........17The Threading Model for XAML-Based Graphics and Animation in Windows Phone...........................................................................18Performance and Element Visibility..............................................19Deciding Between Visibility and Opacity......................................20Understanding the Frame Rate Counter................................................20The Windows Phone Application Analysis Tool.....................................22External Events..........................................................................25Frame Rate Graph.......................................................................25CPU Usage Graph.......................................................................25Memory Usage MB Graph...........................................................26Storyboards................................................................................26Image Loads...............................................................................26GC Events..................................................................................26Viewing Detailed Profiling Information........................................26Reading Device Information................................................................27Calculating Available Memory.....................................................28DeviceStatus Events...................................................................29Applying the Model-View-ViewModel Pattern to a Windows Phone App......31 Implementing the MVVM Pattern................................................31ViewModelBase Class...................................................................32Property Change Notification..............................................................33Implementing INotifyPropertyChanged: The Traditional Approach.........33 Implementing INotifyPropertyChanged: An Alternative Approach..........35Using Commands...............................................................................38Argument Validation..........................................................................39A Platform-Agnostic Dialog Service.......................................................41Consuming Local Web Applications.....................................................44Summary...........................................................................................46 Chapter 3 Understanding the Application Execution Model 47Exploring the Execution Model............................................................48Application State........................................................................49Life Cycle Events........................................................................49Programmatically Exiting an App.................................................53Saving Transient State.................................................................53Restoring Transient State.............................................................55Saving Persistent State.................................................................56Implementing Fast App Resume...........................................................56Enabling Fast App Resume...........................................................56Optimizing the Resume Experience..............................................57Running Under the Lock Screen...........................................................63Lock Screen Management............................................................64Page Navigation..................................................................................67Navigation Using Unmapped URIs...............................................69Passing Page Arguments Using Query Strings................................71URI Mapping.............................................................................73Navigation Using the NavigationService.....................................75Handling Page Navigation...........................................................76Canceling Navigation.................................................................77Cross-Page Communication.........................................................77Page Redirection.........................................................................78Hardware Back Button................................................................79Creating an Application Splash Screen..................................................80Walking Through the Bookshop Sample Application.............................83Displaying the Product List..........................................................86Design-Time Data.......................................................................92Image Caching...........................................................................93Overview of the Sample Bookshop WCF Service............................95Summary...........................................................................................97 Chapter 4 Controlling Page Orientation 99Orientation and the PhoneApplicationPage Class..................................99OrientationChanged Event.........................................................100 PhoneApplicationPage Orientation Property...............................102Setting Page Orientation at Runtime...........................................105Animating Page Elements When the Page Orientation Changes.....106Animating the Entire Page When Orientation Changes.................108Windows Phone Toolkit Animated Page Transitions.............................110Using Windows Phone Toolkit Transitions..................................111Reusing the Transition Attached Properties..................................113Summary...................................................................................114 Part II Essential Elements Chapter 5 Using Content Controls, Items Controls, and Range Controls 115Control Type Taxonomy....................................................................116Identifying Controls Not Supported or Absent in Windows Phone.........118Content Controls...............................................................................119Defining the Default Content Property........................................120Receiving Input with Buttons..............................................................121Tap and Click Events.................................................................123Button Click Mode....................................................................124Hyperlink Button......................................................................124Repeat and Toggle Buttons.........................................................124Radio Button.............................................................................128Check Box................................................................................131ToolTip....................................................................................138Items Controls............................................................................138ListBox....................................................................................140ComboBox................................................................................142Range Controls............................................................................142ProgressBar..............................................................................144Progress Indicator......................................................................145Slider......................................................................................151ScrollBar.................................................................................152Summary....................................................................................152 Chapter 6 Mastering Text Elements and Fonts 153Understanding Text Element Types.....................................................154Displaying Text Using the TextBlock...................................................155Using the Run and LineBreak Objects..........................................155Multiline TextBlock Text...........................................................158Controlling Font Properties................................................................158Understanding the Built-In Fonts........................................................160 Using Third-Party Fonts via Font Embedding.......................................162Leveraging FontSource to Assign a Font Using a Stream................164Receiving Input Using a TextBox.........................................................165Software Input Panel..................................................................165Input Scope...............................................................................168Input Scope Sample Overview.....................................................169Receiving Password Text Using a PasswordBox......................................175Displaying Rich Content Using a RichTextBox.....................................176Formatting Text at Runtime.......................................................178Further Reading.........................................................................179Placing Text on the Clipboard............................................................179Summary.....................................................................180 Chapter 7 Employing Media and Web Elements 183Displaying Images with the Image Element..........................................184Image Sizing.............................................................................185Providing a Drawing Surface with the InkPresenter Element................186Capturing User Input.................................................................188InkPresenter Sample Code........................................................190Playing Audio and Video with the MediaElement..................................193MediaElement Sample Code........................................................194XNA SoundEffect Class..............................................................201Harnessing the XNA Game Loop Via the GameTimer Class.....................202XNA Environment Initialization.................................................203Saving Music to the Media Library......................................................205Viewing High-Resolution Images with the MultiScaleImage Element.....207Image Tiling..............................................................................208Creating a Deep Zoom Image.....................................................208Exploring the MultiScaleImage API.............................................210Deep Zoom Viewer Sample Code................................................212Displaying Web Content with the WebBrowser Element.........................217Monitoring and Canceling Navigation........................................217Communicating with a Web Page...............................................218Injecting Web Page Behavior......................................................222Storing and Browsing Content in Isolated Storage........................225Summary.........................................................................228 Chapter 8 Taming the Application Bar 231Exploring the Built-In Application Bar.................................................231Using the ApplicationBar..........................................................232Modifying the Application Bar's Appearance................................234Icon Button and Menu Item.......................................................234 Icon Button Image.....................................................................235Retrieving a Button or Menu Item at Runtime..............................236Introducing the Custom AppBar..........................................................237AppBar Buttons and Menu Items.................................................237Button and Menu Item Visibility.................................................238Sample Code.............................................................................238Switching to Full-Screen.............................................................244Customizing the Appearance of the System Tray..........................247Inside the AppBar Control..........................................................248Summary...........................................................................252 Chapter 9 Enriching the User Experience with the Windows Phone Toolkit Controls 253Getting Started with the Toolkit..........................................................254In-Place Selection Using the ListPicker..............................................255Display Modes...........................................................................255Suggesting Text with the AutoCompleteBox.....................................259Using AutoCompleteBox with MVVM...........................................260Defining a Custom Filter Using the ItemFilter Property..............264Dynamic Population of the Suggestion List..................................266Styling the Suggestion List..........................................................268Data Binding and the AutoCompleteBox.Text Property..................270Displaying a ContextMenu...........................................................271ContextMenu and MVVM............................................................273Hosting a ContextMenu in a ListBoxItem.....................................275Selecting Date and Time Values with the DatePicker and TimePicker....277Using the DatePicker and TimePicker.........................................279Adding a Control Header...........................................................281Customizing the Value Format...................................................281Customizing the Full-Screen Picker Page......................................282Providing Custom Looping Lists with the LoopingSelector...................287Providing Touch Feedback with the TiltEffect...................................291Supporting Other Controls.........................................................292Providing a Boolean Option with the ToggleSwitch..............................293Using the ToggleSwitch.............................................................294Localizing the ToggleSwitch.......................................................295Changing the Switch Color........................................................297Using Flexible Layouts with the WrapPanel...........................................297Child Element Spacing...............................................................298Sample Overview.......................................................................298Using a WrapPanel in Conjunction with a ListBox.......................300Summary...........................................................................302 Chapter 10 Creating Jump Lists with the Long List Selector 303Visual Structure of the Long List Selector.............................................304Presenting Flat Lists.....................................................................305Presenting Grouped Lists....................................................................307Marketplace App List Sample..............................................................307Displaying a List of Contacts Using the LongListSelector....................316Summary........................................................................................323 Chapter 11 Creating Expansive and Engaging Apps with the Pivot and Panorama 325Pivot and Panorama Differences and Similarities...................................326Style Assumptions.....................................................................326Introduction to the Pivot Control..............................................327Introduction to the Panorama Control.........................................327Pivot and Panorama Placement in the FCL...........................................328Performance Improvements in Windows Phone 8.................................329Using the Pivot Control.....................................................................329 Placing a Pivot on a Page...........................................................329Creating a Pivot Application with the Visual Studio New Project Dialog..................................331Pivot Anatomy.........................................................................331Setting the Active PivotItem......................................................332Pivot Load Events.....................................................................333Hosting Multiple Application Bars with the Pivot........................333Populating a Pivot Via a Data Bound Collection..........................344Using the Panorama Control........................................................347 Panorama Anatomy....................................................................347PanoramaItem Control................................................................349Sample Panorama Application......................................................350Things to Avoid When Using the Panorama and Pivot..........................355Windows Phone Toolkit Lockable Pivot...............................................355Summary.......................................................................................355 Part III Windows Phone App Development Chapter 12 Processing Touch Input 357Handling Touch with Mouse Events....................................................358Touch and TouchPoint Classes.............................................................360Mouse Event Promotion.............................................................361Handling the Touch.FrameReported Event...................................362Manipulation Events..........................................................................363Handling Manipulation Events...................................................364Manipulation Events Example....................................................366 UIElement Touch Gesture Events.........................................................368Tap Gesture..............................................................................369Double Tap Gesture...................................................................370Hold Gesture.............................................................................371Windows Phone Toolkit Gestures........................................................372Getting Started with Toolkit Gestures..........................................373GestureListener Events in Detail...............................................373GestureBegin and GestureCompleted Events................................380Gesture Sample Code.................................................................381Designing Touch-Friendly User Interfaces............................................386Three Components of Touch......................................................386Sizing and Spacing Constraints...................................................387General Guidelines....................................................................387Summary..................................................................................388 Chapter 13 Portraying Your App with Live Tiles 389Getting Started with Live Tiles............................................................389Tile Sizes and Resolutions...........................................................391Introducing the Cycle Tile Template....................................................391Introducing the Flip Tile Template......................................................394Introducing the Iconic Tile Template...................................................395Programmatically Updating Shell Tiles.................................................396Controlling the Lock Screen's Background and Notification Area...........397Setting the Lock Screen's Background Image................................399Setting the Lock Screen's Notification Text..................................401Creating a Lock Screen Icon.......................................................403Summary........................................................................404 Chapter 14 Leveraging Built-In Apps via Launchers and Choosers 405API Overview....................................................................................405Choosers and the Application Execution Model....................................407Internal Workings of the ChooserBase.Completed Event...............407Launchers and Choosers in Detail.......................................................408Retrieve Driving Directions Using the BingMapsDirectionsTask.....409Displaying a Location on a Map Using the BingMapsTask..............413Navigating to a Connection Setting Page Using the ConnectionSettingsTask..........................................................413Selecting an Email Address with the EmailAddressChooserTask.....414Preparing an Email with the EmailComposeTask............................417Saving a Contact's Email Using the SaveEmailAddressTask...........418Navigating to an App on the Marketplace with the MarketplaceDetailTask...........................................................422Launching the Marketplace App with the MarketplaceHubTask......425 Allowing the User to Review Your App Using the MarketplaceReviewTask...........................................................426Searching the Marketplace with the MarketplaceSearchTask.........427Playing a Media File Using the MediaPlayerLauncher....................428Placing a Call with the PhoneCallTask.........................................435Selecting a Phone Number with the PhoneNumberChooserTask.......437Saving a Contact's Phone Number with the SavePhoneNumberTask...439Searching the Web with the SearchTask......................................442Sending Contacts a Link Using the ShareLinkTask.......................444Posting a Status Update to Social Networks Using the ShareStatusTask.....................................................................445Preparing an SMS With the SmsComposeTask................................445Navigating to a Web Page Using the WebBrowserTask....................446Selecting a Contact's Address Using the AddressChooserTask........447Saving a Contact to the Phone's Contact List Using the SaveContactTask.....................................................................449Taking a Photo with the CameraCaptureTask................................450Inviting Game Players with the GameInviteTask...........................453Selecting a Photo from the Photo Hub Using the PhotoChooserTask...................................................................454Sharing Images with Other Devices Using NFC or with Other Registered Phone Services...............................................460Creating a Ringtone with an Audio File Using the SaveRingtoneTask...................................................................461Contacts and Appointments...............................................................464Retrieving Contacts...................................................................464Storing Contacts in the Custom Contact Store.............................469Detecting Changes in Stored Contacts.........................................477Converting a Stored Contact to and from a vCard........................478Retrieving Appointments............................................................478Saving an Appointment Using the SaveAppointmentTask......................483Summary......................................................................484 Chapter 15 Receiving Messages from the Cloud Using Push Notification 485Push Notifications Types....................................................................485Benefits of Push Notification..............................................................486Understanding Push Notification........................................................487Getting Started with Push Notification................................................489Subscribing to Push Notification.........................................................489Binding to the Shell...................................................................490HttpNotificationChannel Events................................................491Handling Channel Errors...........................................................492 Power Management and Push Notification...........................................493Sending Push Notifications.................................................................495Toast Notifications.............................................................................495Receiving a Toast Notification from Within an Application...........496Sending a Toast Notification.......................................................497Tile Notifications...............................................................................500Sending a Tile Notification.........................................................501Updating an Application Tile Using a Shell Tile Schedule..............504Raw Notifications..............................................................................505Sending a Raw Notification........................................................505Receiving a Raw Notification......................................................508Identifying Notifications in an HttpWebResponse..................................509Notification Classes......................................................509Cloud Service Authentication.............................................................511Authenticating a Cloud Service...................................................511Creating a Notification Channel for an Authenticated Cloud Service.....511Building a Stock Ticker Application.....................................................511Sample App Notifications...........................................................520Summary.......................................................................524 Chapter 16 Sensing Motion and Attitude 525Sensors Overview....................................................525Measuring Force with the Accelerometer..............................................527Using the Accelerometer Class...................................................528Simulating Acceleration with the Emulator..................................529Smoothing Accelerometer Readings.............................................530Calibrating the Accelerometer.....................................................533Shake Detection........................................................................537Measuring Direction with the Compass...............................................539Using the Compass Sensor..........................................................539Compass Orientation.................................................................545Calibrating the Compass............................................................546Sensing Rotation with the Gyroscope..................................................548Using the Gyroscope Sensor.......................................................549Improving Sensor Accuracy with the Motion Sensor.............................552Using the Motion Sensor............................................................553Summary...........................................................................557 Chapter 17 Building Location Aware Apps 559Location Sensing Technologies...........................................................559A-GPS.......................................................................................560Cell Tower Triangulation............................................................561Wi-Fi Triangulation...................................................................562 Geographic Location Architecture.......................................................562Getting Started with Location.............................................................563Geolocator Class.......................................................................563Background Location Tracking............................................................569Testing Apps That Use the Geolocator.................................................570Code-Driven Location Simulation.......................................................571A Walkthrough of the Location Viewer Sample....................................575GeoLocationViewModel Class.......................................................575Displaying Location Using the GeoLocationView Page...................577Civic Address Resolution............................................................580Sampling the PositionChanged Event with Rx......................................580Getting Started with Rx for Windows Phone................................580Summary..............................................................................584 Chapter 18 Incorporating Map-Based Positioning 585Getting Started with the Map Control.................................................586Obtaining an ApplicationId and AuthenticationToken................587Overview of the Sample Map View......................................................587Adjusting for Low Light Conditions....................................................588Changing Cartographic Modes............................................................589Panning and Zooming the Map Control..............................................590Centering the Map to the Phone's Current Location.....................590Setting the Viewable Area of the Map..........................................592Adjusting Pitch and Heading..............................................................593Location Tracking..............................................................................594Overlaying Custom Map Content........................................................596Calculating and Displaying a Route.....................................................598Calculating the Shortest Route Between Two Points......................598Using the Route Calculator.........................................................601Searching for a Route Using the View..........................................602Modifying Page Elements Using Visual States.......................................604Displaying the Route and Itinerary..............................................609Showing a Location with the Built-In Maps App...................................610Showing Directions with the Built-In Maps App...................................611Downloading Maps for Offline Use.....................................................612Summary...............................................................................612 Chapter 19 Supporting Multiple Cultures and Languages 613Terminology...................................................................613Localizability Using Resx Files.............................................................614Getting Started with Resx Files....................................................615Working with Resx Files.............................................................615 Dynamic Localizability-Updating the UI When the Culture Changes....618Localizing Images Using Resx Files......................................................620The Resx Localizability Sample............................................................621Controlling the UI Culture from the LocalizabilityViewModel.....622Displaying Localized Text and Images Within the LocalizabilityView Page..........625RTL Support..............................................................................629Summary...................................................................630 Chapter 20 Extending the Windows Phone Picture Viewer 631Creating a Photos Extras Application...................................................632Adding Your App to the Extras Menu..........................................634An Edge-Tracing Extras Application.............................................634Saving the Image.......................................................................643Share Menu Extensibility....................................................................645Adding Your App to the Share Menu...........................................646A Simple Photo Upload Share Application...................................647Summary.......................................................................654 Chapter 21 Capturing Images and Video with the Camera 655PhotoCamera...................................................................656Building a PhotoCamera App.......................................................658Using the Silverlight Webcam API.......................................................678CaptureSourceViewModel............................................................680Displaying Video in the CaptureSourceView.................................684Extending the Camera Experience with a Lens.....................................686Registering as a Lens..................................................................687Creating Lens Icons...................................................................689Summary............................................................................689 Chapter 22 Recording Audio with the Microphone 691Recording Audio with the Microphone................................................691Creating a Helium Voice App.....................................................692Summary...................................................................698 Chapter 23 Creating Speech Driven Experiences 699User Input with Speech Recognition....................................................700Getting Started with Speech Recognition.....................................700Overview of Recognition Grammars............................................701Recognizing Speech Using the Dictation and Web Search Grammars....702Recognizing Speech with Phrase List Grammars...........................703 Recognizing Speech with SRGS Grammars...................................710Speech Recognizer Settings.........................................................717Providing a Custom Speech Recognition UI.................................718Recognizing Speech in Other Languages......................................721Launching Your App via Voice Commands..........................................723Understanding the Structure of the VCD File...............................724Installing a VCD........................................................................726Updating a Phrase List Programmatically.....................................731Making the Phone Speak with Text-to-Speech......................................732Getting Started with TTS............................................................732Creating a Speech Synthesis Markup Language File.......................733Summary......................................................................735 Chapter 24 Unit Testing Apps 737Automated Testing........................................................738Unit Testing..............................................................................738Integration Testing....................................................................739Coded UI Testing.......................................................................739Introduction to the Windows Phone Unit Test Framework....................739Creating a Test Project.......................................................................740Creating a Test Class.......................................741Tag Expressions.........................................................743Setting the Tag Expression Programmatically...............................744Metadata and Assertions..................................................744TestClass Attribute...................................................................744TestMethod Attribute.................................................................745Metadata for Test Initialization and Cleanup................................745Miscellaneous Metadata.............................................................747WorkItemTest: The Base TestClass Type......................................751Verifying Conditions with Assertions..........................................751Verifying Collection Conditions with CollectionAssert...............752Verifying String Conditions with StringAssert............................752Hiding the Expressions Editor.....................................................752Testing Multiple Assemblies........................................................753Testing Nonpublic Members.......................................................753A Testable Chat Client.......................................................................754Building the View......................................................................758Code Driven UI Testing..............................................................760Using Automation Peers to Manipulate UI Elements at Runtime....763Inversion of Control (IoC)..................................................................765A Custom IoC Container and DI Framework................................766Testing Trial Conditions.....................................................................767Abstracting the LicenseInformation Class...................................767 Testing with Launchers and Choosers..................................................769Summary............................................................................771 Chapter 25 Manage Payment Instruments Using Wallet Extensibility 773Introducing the Wallet Hub................................................................774Required Capabilities for Wallet Integration.........................................775Storing Payment Instruments in the Wallet..........................................775Overview of the Payment Instruments Sample App......................777Keeping Payment Instruments Up-To-Date with a Background Agent...................................................................789Storing Membership Information in the Wallet....................................792Storing Deals in the Wallet.................................................................796Keeping Deals and Membership Information Up-to-Date with a Background Agent.........................................................802Summary......................................................................804 Part IV Building Data Driven Apps Chapter 26 Validating User Input 805Defining Input Validation..................................................................805Syntactic Validation...................................................................806Semantic Validation...................................................................806Input Validation Using Property Setters...............................................806Validation Class........................................................................809Critical Exceptions.....................................................................809Binding Errors...........................................................................809Defining Validation Visual States in Windows Phone............................810Validating a TextBox as the User Types........................................815Performing Group Validation.....................................................818Displaying Error Details.............................................................820Property Setter Validation Limitations.........................................823Asynchronous and Composite Validation............................................824A Reusable Implementation of the NotifyDataErrorInfo Interface.................................................................................825Provisioning for Asynchronous or Synchronous Validation...........827Asynchronous Validation of All Properties...................................833An Example of Asynchronous Input Validation............................836Detecting a Change of Data Context...........................................840Adding INotifyDataErrorInfo Support to the ValidationSummary Control......................................................842Incorporating Group Validation..................................................844Summary........................................................................847 Chapter 27 Communicating with Network Services 849Network Service Technologies.............................................................850Monitoring Network Connectivity......................................................850Connection Priorities.................................................................850Introduction to OData.......................................................................855Consuming OData.............................................................................855OData URI Structure..................................................................856Generating an OData Proxy........................................................858OData Query Options................................................................858Using an OData Proxy........................................................................860Building an eBay OData Consumer Application....................................862Creating an OData Wrapper.......................................................862EbaySearchViewModel Class........................................................864EbaySearchView Page.................................................................867Fetching Data When the User Scrolls to the End of a List......................871Extending OData Entity Classes..................................................874Simulating Real-World Conditions with the Simulation Dashboard........876Moderating Data Usage with Data Sense..............................................877Using the Data Sense API...........................................................877Summary..............................................................................879 Chapter 28 Preserving App State and Settings 881Understanding Managed Storage.........................................................882Working with Files and Directories......................................................883Introducing the .NET Isolated Storage API....................................884Introducing the WinPRT Windows Storage API............................887Measuring the Amount of Available Free Space............................888Application Settings...................................................................888Abstracting IsolatedStorageSettings.................................................889Building an Automatic State Preservation System..................................890Customizing ViewModel State Preservation..................................892Automatic State Preservation Inner Workings...............................893Unwinding a Property Lambda Expression...................................901Creating Property Accessor Delegates...........................................902Summary........................................................................903 Chapter 29 Storing App Data in a Local Database 905SQL Server Compact.........................................................906Deployment of Local Databases...........................................................906LINQ to SQL on the Phone.................................................................908LINQ to SQL Platform Differences.......................................................909 Getting Started with Local Databases...................................................909Code-First Data Model Creation..................................................909Sample Twitter Timeline Viewer..........................................................910Using the Column Attribute.........................................................912Data Context Change Tracking...................................................915TwitterUser Class.....................................................................915Multiplicity and the Association Attribute..................................917Twitter DataContext..................................................................918Database Utilities.......................................................................919Connection Strings....................................................................920Leveraging a Custom Twitter Service...........................................924Gathering the User's Credentials with the Sign-In View................929Viewing Tweets with the Timeline View......................................932Viewing a Local Database Schema.......................................................937File Explorers for Isolated Storage................................................938Viewing and Modifying an SQL CE Database File.........................940Database-First Using SqlMetal.............................................................942Deploying a Database to Isolated Storage..........................................943Abstracting the Navigation Service......................................................946Observing LINQ to SQL Queries with a Custom Log.............................948Updating a Database Schema................................................951AddColumn.................................................................................952AddTable...................................................................................952AddIndex...................................................................................954AddAssociation.........................................................................955Schema Versioning....................................................................957Mapping an Inheritance Hierarchy......................................................958Concurrency.....................................................................................962ColumnAttribute.UpdateCheck...................................................965Summary............................................................................966 Chapter 30 Auto-Launching with File and Protocol Associations 967Understanding File and Protocol Associations......................................968A Note About the Sample...................................................................968Auto-Launching with a File Extension Association................................968Registering a File Association......................................................968Receiving a File Launch Request..................................................970Launching a File........................................................................973How File and Protocol Associations Affect the User Experience..............976Auto-Launching with a Protocol Association........................................977Registering for a Protocol Association..........................................977Receiving a Protocol Launch Request...........................................977 Launching a Protocol URI..........................................................979Reserved Protocol Names............................................................981Launching Built-In Apps.....................................................................981Summary..............................................................................982 Chapter 31 Extending the Search Experience 983Understanding Quick Cards................................................................983Configuring Your App for Search Integration.......................................985Configuring the Application Manifest.........................................985Customizing Captions via the Extras.xml File..............................987Defining a Quick Card Target Page..............................................989Creating a Landing Page to Display Quick Card Information.................994App Instant Answer...........................................................................996Summary....................................................................................996 Part V Multitasking Chapter 32 Conducting Background Activities with Scheduled Actions 997Background Tasks................................................................998Scheduled Notifications......................................................................998Alarm Registration...................................................................1001Alarm Sample..........................................................................1002Reminder Registration..............................................................1005Reminder Sample....................................................................1006Scheduled Tasks.....................................................................1010Background Agent Types..........................................................1011Using Scheduled Tasks.............................................................1015To-Do List Scheduled Task Sample............................................1019Updating Tiles Using a Scheduled Task Agent............................1035Scheduled Task API Limitations................................................1036Using a Mutex to Access Common Resources Safely.............................1038Summary..........................................................................1041 Chapter 33 Performing Background File Transfers 1043Background Transfer Requests............................................1043Handling App Termination and Resubscription to Transfer Events......1048Background File Transfer Sample Code..............................................1048Using URL Rerouting with a WCF Service..................................1049Retrieving the User's Windows Live Anonymous ID...................1050TodoListViewModel..................................................................1052 Backing Up the Local Database.................................................1052Restoring the Local Database....................................................1055Summary......................................................................1058 Chapter 34 Coordinating Background Audio Playback 1059Background Agent Recap..................................................................1059Background Audio Overview.............................................................1060Background Audio Player..................................................................1060Representing Audio Files with the AudioTrack Class............................1062Creating a Custom Audio Player Agent..............................................1063AudioPlayerAgent Sample................................................................1064AudioPlayerAgent Virtual Methods...........................................1066Controlling Background Audio from Your Foreground App.........1070Audio Streaming Agents...................................................................1076Using a MediaStreamSource to Play Back an Assembly Resource...1078Summary........................................................................1079 Bibliography 1081 9780672336898 TOC 4/18/2013
Series Title: Unleashed.
Other Titles: Windows Phone eight unleashed
Responsibility: Daniel Vaughan.

Reviews

Editorial reviews

Publisher Synopsis

"With its attention to detail and its extensive content, it's hard to resist the conclusion that it's likely to remain the Windows Phone app developers bible for quite some time to come." -- Ron H. Read more...

 
User-contributed reviews
Retrieving GoodReads reviews...
Retrieving DOGObooks reviews...

Tags

Be the first.
Confirm this request

You may have already requested this item. Please select Ok if you would like to proceed with this request anyway.

Linked Data


Primary Entity

<http://www.worldcat.org/oclc/852251541> # Windows Phone 8 unleashed
    a schema:MediaObject, schema:CreativeWork, schema:Book ;
    library:oclcnum "852251541" ;
    library:placeOfPublication <http://experiment.worldcat.org/entity/work/data/1766799879#Place/indianapolis_ind> ; # Indianapolis, Ind.
    library:placeOfPublication <http://id.loc.gov/vocabulary/countries/inu> ;
    schema:about <http://dewey.info/class/004.167/e23/> ;
    schema:about <http://experiment.worldcat.org/entity/work/data/1766799879#CreativeWork/windows_phone_computer_file> ; # Windows phone (Computer file)
    schema:about <http://experiment.worldcat.org/entity/work/data/1766799879#Topic/smartphones_programming> ; # Smartphones--Programming
    schema:about <http://id.worldcat.org/fast/1796042> ; # Windows phone (Computer file)
    schema:about <http://experiment.worldcat.org/entity/work/data/1766799879#Topic/mobile_computing_programming> ; # Mobile computing--Programming
    schema:about <http://id.worldcat.org/fast/1792639> ; # Silverlight (Electronic resource)
    schema:about <http://experiment.worldcat.org/entity/work/data/1766799879#CreativeWork/silverlight_electronic_resource> ; # Silverlight (Electronic resource)
    schema:about <http://id.loc.gov/authorities/subjects/sh95009362> ; # Application software--Development
    schema:about <http://experiment.worldcat.org/entity/work/data/1766799879#Topic/application_software_development> ; # Application software--Development
    schema:about <http://id.worldcat.org/fast/811707> ; # Application software--Development
    schema:alternateName "Windows Phone eight unleashed" ;
    schema:bookFormat schema:EBook ;
    schema:copyrightYear "2013" ;
    schema:creator <http://viaf.org/viaf/233086568> ; # Daniel Vaughan
    schema:datePublished "2013" ;
    schema:exampleOfWork <http://worldcat.org/entity/work/id/1766799879> ;
    schema:genre "Electronic books"@en ;
    schema:inLanguage "en" ;
    schema:isPartOf <http://experiment.worldcat.org/entity/work/data/1766799879#Series/unleashed> ; # Unleashed.
    schema:isSimilarTo <http://www.worldcat.org/oclc/846919796> ;
    schema:name "Windows Phone 8 unleashed"@en ;
    schema:productID "852251541" ;
    schema:publication <http://www.worldcat.org/title/-/oclc/852251541#PublicationEvent/indianapolis_ind_sams_pub_2013> ;
    schema:publisher <http://experiment.worldcat.org/entity/work/data/1766799879#Agent/sams_pub> ; # Sams Pub.
    schema:url <http://proquest.safaribooksonline.com/9780133383959> ;
    schema:url <http://proquest.tech.safaribooksonline.de/9780133383959> ;
    schema:workExample <http://worldcat.org/isbn/9780133383928> ;
    schema:workExample <http://worldcat.org/isbn/9780133383959> ;
    schema:workExample <http://worldcat.org/isbn/9780672336898> ;
    wdrs:describedby <http://www.worldcat.org/title/-/oclc/852251541> ;
    .


Related Entities

<http://experiment.worldcat.org/entity/work/data/1766799879#CreativeWork/silverlight_electronic_resource> # Silverlight (Electronic resource)
    a schema:CreativeWork ;
    schema:name "Silverlight (Electronic resource)" ;
    .

<http://experiment.worldcat.org/entity/work/data/1766799879#CreativeWork/windows_phone_computer_file> # Windows phone (Computer file)
    a schema:CreativeWork ;
    schema:name "Windows phone (Computer file)" ;
    .

<http://experiment.worldcat.org/entity/work/data/1766799879#Place/indianapolis_ind> # Indianapolis, Ind.
    a schema:Place ;
    schema:name "Indianapolis, Ind." ;
    .

<http://experiment.worldcat.org/entity/work/data/1766799879#Series/unleashed> # Unleashed.
    a bgn:PublicationSeries ;
    schema:hasPart <http://www.worldcat.org/oclc/852251541> ; # Windows Phone 8 unleashed
    schema:name "Unleashed." ;
    schema:name "Unleashed" ;
    .

<http://experiment.worldcat.org/entity/work/data/1766799879#Topic/application_software_development> # Application software--Development
    a schema:Intangible ;
    schema:name "Application software--Development"@en ;
    .

<http://id.loc.gov/authorities/subjects/sh95009362> # Application software--Development
    a schema:Intangible ;
    schema:name "Application software--Development"@en ;
    .

<http://id.worldcat.org/fast/1792639> # Silverlight (Electronic resource)
    a schema:CreativeWork ;
    schema:name "Silverlight (Electronic resource)" ;
    .

<http://id.worldcat.org/fast/1796042> # Windows phone (Computer file)
    a schema:CreativeWork ;
    schema:name "Windows phone (Computer file)" ;
    .

<http://id.worldcat.org/fast/811707> # Application software--Development
    a schema:Intangible ;
    schema:hasPart <http://id.loc.gov/authorities/subjects/sh95009362> ; # Application software--Development
    schema:name "Application software--Development"@en ;
    .

<http://viaf.org/viaf/233086568> # Daniel Vaughan
    a schema:Person ;
    schema:familyName "Vaughan" ;
    schema:givenName "Daniel" ;
    schema:name "Daniel Vaughan" ;
    .

<http://worldcat.org/isbn/9780133383928>
    a schema:ProductModel ;
    schema:isbn "013338392X" ;
    schema:isbn "9780133383928" ;
    .

<http://worldcat.org/isbn/9780133383959>
    a schema:ProductModel ;
    schema:isbn "0133383954" ;
    schema:isbn "9780133383959" ;
    .

<http://worldcat.org/isbn/9780672336898>
    a schema:ProductModel ;
    schema:isbn "0672336898" ;
    schema:isbn "9780672336898" ;
    .

<http://www.worldcat.org/oclc/846919796>
    a schema:CreativeWork ;
    rdfs:label "Windows Phone 8 unleashed." ;
    schema:description "Print version:" ;
    schema:isSimilarTo <http://www.worldcat.org/oclc/852251541> ; # Windows Phone 8 unleashed
    .


Content-negotiable representations

Close Window

Please sign in to WorldCat 

Don't have an account? You can easily create a free account.