The Windows 8 Metro platform redefines the way apps access and manipulate data. In this course we learn how to work with application data, that is, working data that is created and accessed by your app on a continuous basis. Traditionally, app data has been local, but Metro blurs the distinction between local and remote data by making things such as cloud storage and app-to-app integration an integral part of both the user and developer experiences. This course looks at accessing files, local and remote, as a content source for our apps; it explores app data storage and roaming as well as the settings contract; and it takes an in-depth look at app-to-app sharing through the sharing contract. Before doing so, however, it starts with a fresh look at the UI side of things, including Metro controls and data binding. After watching this course, you should feel comfortable accessing, listing, updating, roaming and sharing data in your metro apps.
Yacine has been involved in the development of database-driven, n-tier web applications for over 10 years. Over time he has taken on various roles, including development, project management, offshore platform management and technical consulting. He has helped build a few solutions for Microsoft North Africa.
Working With File Data Welcome to Part 2 of this course on Windows 8 Metro App Data. In this talk, we discuss building apps that are driven by user file data, userContent files are commonly located in Windows Libraries local into the PC, but also in locations outside the local machine such as the local network, external drives, other installed apps and on the web. And as we'll see Windows 8 makes it easy access and work with these files in a location transparent manner and use them as the data that powers RUI. So, we'll start with an overview of some key concepts about files and file access in Windows 8 Metro. And follow of the discussion of the Windows storage API and how to enables us to work with files in a location agnostic manner. Then we'll look at massaging file data by pivoting on file metadata and creating file grouping in the form of virtual folder that are as easy to work with as regular folders. We also examine the Window Search API which lets us Search & filter user files based on metadata properties using windows built in search capability. Then we take a brief look at Updating file metadata through the storage APIs a synchronous method exposed by files and metadata properties and we finished up with an exploration of the picker APIs that empower the user with full control over App access through files and folders both on the local machine and outside of it.
Working With App Data Welcome back. This is the third module of this course on Windows 8 application data. In this talk, well take an in-depth look at the local data persistence mechanisms that are made available by the platform to each app. We'll look at storing and accessing app files and settings locally on the device. And we explore a new feature in Windows, app data roaming, which enables our app data to synchronize across the user's devices via the Cloud. We start with an overview of the app data storage mechanisms that our apps can take advantage of including local, roaming, and temporary storage for both app data files and settings. We then zoom in on local app data storage. We look at how we can use the general Windows storage API to work with local app files in a location transparent manner and the local settings map to manipulate our custom settings without worrying about the underlying store. Along the way, we take a few moments to examine Windows 8's settings UI and the settings contract that we can implement to integrate with the Windows settings charm. Then we discuss app data roaming, a great new feature that leverages Cloud storage to transparently perform sync operations across devices for a user in a nonintrusive way. And we look at how our app can take advantage of this powerful feature to easily roam user preferences for example, and small application states. And finally we go over a special kind of settings, composite settings which allow us to group related settings together.
App to App Sharing Hello, and welcome to the last module of this course on Windows 8 Metro Application Data. In this module we explore Windows app to app sharing feature which lets the user share content from an app with another app through Windows share charm and as we'll see depending on our apps purpose, we can decide to make our app a sharing source or a sharing target or both by participating in the standard share contract thus taking part in the overall Windows Share experience. We begin with a look at the Metro share experience and the underlying share mechanism that involves the source app, the target app and the data transfer manager. Then we dive into the specifics of the sharing contract and we start with the source end of the contract. And we look at retrieving and filling the system provided data package with our shared content so that the system can pass it on to the target app. We then move on to the target side of the contract and we'll learn how to create the share user experience and how to handle app activation and how to retrieve and use the shared content passed on by the source app. Next, we look at more advanced share scenarios involving a synchronize share operations first on the source side and then on the target side. And we explore an alternative pole approach that's appropriate for long running tasks. And we finish with a focus on the Quicklink mechanism which stream lines to share experience by providing a shortcuts to a previous share configuration.