Accountsettingsflyout.Xaml, 380 ADO.NET Entity Data Model, 315
Total Page:16
File Type:pdf, Size:1020Kb
Index A templates Blank App template, 31 AccountSettingsFlyout.xaml, 380 Grid App template, 31–32 ADO.NET Entity Data Model, 315 Split App template, 31–32 connection config, 313 touch-centric Windows 8 OS and Store Apps, 28 database connectivity, 312 traditional Windows desktop, 28 existing database, 311 user interface, 29 table selection, 314 Visual Studio usage, 310 blank App solution, 34–35 AppBar controls components of, 35–36 click-event handlers, 56 debugging, 33 code, 55 local machine, 34 context-sensitive icons, 57 remote machine, 34 context-specific commands, 54 simulator, 34 icons, 54 App Store model, 3 Page placeholders, 56 App.xaml.cs, 78 Snapped/Portrait modes, 54 ApressBookModel.edmx file, 314 StackPanels, 56 ApressBooks, 318 with StaticResources, 56 ApressCloudService, 316, 321 top and bottom, 56 ApressDemo, 61 Application data, 129 Apress Featured Books Demo app, 74 Application life-cycle management ApressODataService, 316–317 async-await and race conditions (see Async-await ApressShareTargetDemo, 185 and race conditions) Async-await and race conditions background agents (see Background agents) advantage, 160 events (see Events) APM, 159 process, 147–148 Apress demo app, 162 timing and debugging (see Timing and code leading, 160 debugging) collection of books, 162 AppName, 45 custom data persistence, 160 Apps EAP, 159 application frame, 33 life-cycle events persistence, 161 backstacks, 33 AsyncCallBack, 334 coding in App.xaml file, 36 Asynchronous Programming Model (APM), 159 core kernel, 28 Attached properties, 42 development language, 29 Azure mobile services, 339 OnLaunched() method, 36 app identification, 344 OnSuspending(), 37 Store advanced app configuration features, 344 software tools, 30 Store authentication credentials, 345 459 ■ INDEX Azure mobile services (cont.) C app setup Store app name, 343 Canvas control, 42 Store app name selection, 344 CheckBox controls, 52 Store association, 343 Cinematography, 22 Windows Store dashboard, 342 Cloud augmentation dashboard, 361 cloud computing data table, security, 360 benefit of, 294 mobile services portal, 340 definition, 293 in preview mode, 341 IaaS, 293 SDK, 351 PaaS, 293 client DLL reference, 352 SaaS, 294 install, 352 OData, 306 service-app handshake, 349 CRUD, 333–335 service operations, client custom OData queries, 335–336 app bar button icon, 354 filtering, 336 App.xaml.cs file, 355 Netflix, 305 data table dynamic schema, 355 paging, 337 data table insert, 356 service integration, 326–332 management keys, 353 push notification service setup framework, 337 dashboard, 347 steps, 338 database configuration, 346 service creation process, 306 database new table, 348 service setup code, 317 database settings, 346 user authentication new mobile services, 345 custom authentication in table schema, 349 code, 365–367 service-side scripting service data protection, 360–361 data table custom Twitter authentication, 361–365 scripting, 357 Windows Azure, 294 data table scripting, 357 data persistence, 297–302, 304 scripting help, 359 mobile services, 340–359 toast notification, 358 MSDN benefits, 295–296 Twitter credentials in, 365 service deployment, 322 service packaging, 321 Collection controls B Application title, 45 Background agents Apress books collection, 47 Appxmanifest XML book class, 46 extension, 167 data binding (see Data binding) code execution, 170 FlipView, 43 debugging, 170–171 FlipViewDemo.xaml, 43 definition, 164 Grid control, 45 new project, 164 GridView, 43 Package.Appxmanifest ItemContainerStyle property, 43 declaration, 166 ItemsControl hierarchy, 42 reference manager, 168 ItemSource property, 43 registration, 168–169 ListView, 43 solution explorer, 165 MVVM software, 46 Badges, 278–280 Page title, 45 BookDetails.xaml/cs, 93 SemanticZoom, 43 BookGroupsByTechnology.xaml/cs, 93 static FlipView demo, 44–45 Boxology, 88 static images, 45 Button controls, 54 StaticResource, 45 460 ■ INDEX CollectionViewSource, 79 photos, 184–185 ColumnDefinition, 42 Request.Data property, 178 ComboBox controls, 53 Rowi app, 178–179 Component Object Model (COM), 29 SetText() method, 178 Container controls, 42 share source app, 182–183 Content structuring planning target contract, 185–189 boxology, 88 text share, 178 information architecture, 88 URI link, 181 rules, 87 Controls wireframing, 88 collection (see Collection controls) Contracts container, 42 extensions, 173 filter/navigation (see Filter/navigation controls) file picker contract framework and namespace basics, 39 App Bar icon, 216–217 placeholders, 40 code, 217 selection, 52 declaration, 216 transient UI, 57 enumeration values, 218 MessageDialog, 57–58 File Save Picker, 221–222 Progress controls, 58 multiple file select, 220–221 ToolTip, 58 single file select, 219–220 Create, read, update, delete (CRUD), 333 SuggestedStartLocation property, 218 database, 334 search XAML page, 335 author name filter, 202–203 CreateTileUpdaterForSecondaryTile() charms menu option, 189–190 method, 277 CollectionViewSource, 200 Custom authentication, 365–367 DefaultViewModel, 199 Custom data persistence drop-down search filter, 203–204 DataContractSerializer, 138–139 empty search, 201 local hard drive, 138 filters, 196–197 network calls, 137 implementations, 192–196 real-world scenario, 137 LoadState() event, 199 serialized XML, 138–139 query suggestions, 205–206 result suggestions, 204, 206–208 SearchActivatedEventArgs, 199 D SearchResultsPage.xaml.cs file, 199 Data binding user search, 190–192 with FlipView VisualState XAML markup, 201 data display, 51 working search, 200 DataTemplate, 49 XAML markup, 197–199 global data placeholder, 49 settings global properties, 47 flyout menu, 215 items addition/removal, 51 implementation, 210–211 ItemsControl, 49 Internet Explorer 10 app, 208–209 ItemSource, 50 menu option, 208–209 ItemTemplate, 49 SettingsFlyout control, 210 Load ViewModel method, 48 user control, 211–214 replacing hard-coded images, 49 share showing item, 50 anatomy, 175–176 StackPanel, 49 BookDetails.xaml.cs page, 177 with ListView, 51 charms bar integration, 174–175 Data-bound Grid template, 72 DataRequested event, 177 Data handling DataRequestedEventArgs arguments, 178 application settings DataTransferManager, 177 local storage, 131–132 FeaturedBookList.xaml.cs file, 179 roaming storage, 132–134 FlipView controls, 178 data containers, 129 HTML, 182 data types, 129 461 ■ INDEX Data handling (cont.) Events file system OnLaunched, 149 code debugging, 135 OnLaunch handler, 149–150 custom data (see Custom data persistence) resuming, 149 local storage persistence, 135 suspending, 149 root storage directory, 136–137 XAML Pages, 151 sample file, hard drive, 135–136 relational data ApressBooks, 143–144 F build configuration, 142 FeaturedApressBookListViewModel class, 78 code debugging, 146 FeaturedApressBooks collection, 162 compile error, 142 FeaturedBookListVM ViewModel, 80 database file, SQLite, 145 FeaturedBooklist.xaml/cs, 93 definition, 140 Fierce reductionism, 15 Entity Framework, 143 Filter/navigation controls persistence, SQLite, 144–145 AppBar project reference, 141 click-event handlers, 56 RelationalApressBookModel, 145 code, 55 SQLite, 140–141 context-sensitive icons, 57 sqlite-net, 143 context-specific commands, 54 Windows 8 Store app, 140 icons, 54 storage targets, 130–131 Page placeholders, 56 DataPackage, 176 Snapped/Portrait modes, 54 DataServiceCollection, 331, 334–335 StackPanels, 56 DataServiceContext, 331, 334 with StaticResources, 56 DataTemplate controls, 49–50 top and bottom, 56 DataTemplates, 43 Button, 54 DefaultViewModel, 80, 100, 106 FlipView control, 43 Dependency properties, 41 Flyouts, 19 Device orientation Frame hierarchy, 40 Apress Books Demo app home screen, 111 landscape-flipped mode, 111, 113 G portrait-flipped mode, 111, 114 Grid App template pages, 92 portrait mode, 111–112 Grid App templates, 31 code Grid control, 42 Basic Page template, 116 GridView control, 43 detection, 116, 117 GroupDetailPage.xaml/cs, 92 MSDN documentation, 118 GroupedFeaturedApressBooks, 80 orientation sensor, 117 GroupedItemsPage.xaml/cs, 92 StartLayoutUpdates() method, 116 Grouping, 5 WinRT operation, 117 GroupStyle.HeaderTemplate, 96 configuration file, 115–116 orientation, definition, 109 rotational, 110 H tablet flipping, 111 Hotmail, 371 Windows 8 tablet, 109–110 HTML5 and CSS3, 29 DirectX, 29 Hub-and-spoke model Apress Featured Books Demo BookDetails.xaml/cs, 93 E BookGroupsByTechnology.xaml/cs, 93 .edmx file, 314 BookGroupsByTechnology.xaml Page, 98 EntitySetRights, 318 FeaturedApressBooks, 94 EntitySetRights.All, 318 FeaturedBooklist.xaml/cs, 93 Event-based Asynchronous Programming (EAP), 159 Group Details page, 96, 98 462 ■ INDEX grouped collections, books, 95 ItemsControl hierarchy, 42 GroupedFeaturedApressBooks, 94 ItemSource property, 43 Home page, 93 ItemTemplates, 43 Item Details page, 102–103, 105 DefaultViewModel, 106 L FlipView control, 105 Grid App templates, 91 Language projections, 30 GroupDetailPage.xaml/cs, 92 LaunchActivatedEventArgs, 276 Group Details page, 100 LayoutAwarePage, 80, 90, 156 GroupedItemsPage.xaml/cs, 92 LayoutAwarePage class, 89 IE10 Windows 8 browser app, 91 LayoutAwarePage.cs file, 90 ItemDetailPage.xaml/cs, 92 Life cycle application, 147 LoadState method, 106 ListBox controls, 53 navigation patterns, 91 ListView control, 43 HyperText Transfer Protocol (HTTP), 407 Live Services account settings, 385–386 App management, 405–406 I, J, K App permissions, 389 IBackgroundTask interface, 165 check implementation, 389 Image tile templates, 267–268 contacts