Original: Quickly build Windows 8 style apps 20-mediaelementThis post mainly introduces MediaElement overview, MediaElement object Introduction, MediaElement Common Properties, how to control media playback.MediaElement OverviewYou typically use the MediaElement class to build when you play audio or video files in a Windows
Original: Quickly build Windows 8 style apps 25-data bindingThis post focuses on how to bind UI elements to data, the direction of data binding, data change notifications, data transformations, and binding scenarios supported by data binding. Data binding is a simple way to display data, and a connection or binding between a UI element and a data object allows th
panel.Our target application can also use Shareoperation.quicklinkid to determine whether or not to enter the target application from QuickLink in the method of acquiring the packet data, and to do special processing according to different quicklinkid.Datatransfermanager classThe Datatransfermanager class plays a very important role in implementing share contract, so what are the important methods and events involved?1) datarequested event: Triggered
Information: Get package information, System information, hardware information, PNP information, common equipment information
Introduced
Re-imagine the information for Windows 8 Store Apps
Get package information
Get System Information
Getting hardware information
Get information for devices with Plug and Play (Pnp:plug)
Get Common device information
Exam
ToolTip, Frame, AppBar, ContentControl
Introduced
Re-imagine the content controls for Windows 8 Store Apps
ToolTip-Prompt Box control
Frame-framework control, for navigating content
AppBar-Application Bar controls
ContentControl Contentpresenter-contentpresenter used to present the Content of ContentControl
Re-visualize the container control for
"); StorageFile Samplefile = await Temporaryfolder.createfileasync ("DataFile.txt" createcollisionoption.replaceexisting); Await Fileio.writetextasync (Samplefile, formatter. Format (DateTime.Now));}3. Get temporary data from the fileUse Windows.Storage.StorageFolder.GetFileAsync, Windows.Storage.StorageFile.GetFileFromApplicationUriAsync and Windows.Storage.FileIO.ReadTextAsync Open and read files in the temporary app data store.void Readtimestamp (){ Try { StorageFile Sampl
Selector: cachedfileupdater (cached file update)
Introduced
Re-imagine the Windows 8 Store Apps Selector
Cachedfileupdater-Cache file Update
Example
First, create a new Windows application store project to update the program as a cached file
1. Open a file and associat
Introduced
Re-imagine the Windows 8 Store Apps Notice
Toast-Application of notifications
Application of Tile-porcelain paste
Badge-Application of the coat of arms
Badge-Polling the service side to update Badge notifications
Example
1, the basic application of demo toast
Notification/toast/demo.xaml
Notific
File system: File operation in application Data, file operation in Package
Introduced
Re-imagine the Windows 8 Store Apps File system
File operations in Application data (application Datastore)
Application The settings action in the data (application Datastore)
Referencing media (Pictures, videos, or audio) in application data (application Datastore) by URI
Introduced
Re-imagine the contract for Windows 8 Store Apps
Search Contract-The right-hand sidebar is called Charm, where "searching" is known as search Contract
Use search Contract to suggest that the data source is local and that you get relevant information from the Input Method Editor
Use search Contract to suggest that the data source is on the server si
Introduced
Re-imagine the Windows 8 Store Apps Animation
Overview of the Themetransition
Entrancethemetransition-transition effect between page jumps
Contentthemetransition-Transition effects when content changes
Repositionthemetransition-Transition effect when position changes
Popupthemetransition-The transition effect when ejected
Adddeletethemetransitio
Introduced
Re-imagine the Windows 8 Store Apps Drawing
Shape-Graphics
Path-Paths
Stroke-Strokes
Brush-Brushes
Example
1, show how to draw graphics
Drawing/shape.xaml
Control UI RenderTransform, projection, Clip, Usela
Introduced
Re-imagine the Windows 8 Store Apps Control UI
RenderTransform-Transformations (for displacement, rotation, scaling, distortion, etc.)
Projection-Mapping
Clip-trims and displays the specified area of the UIElement
UseLayoutRounding-Use full pixel layout
Example
Introduced
Re-imagine the ListView and GridView of Windows 8 Store Apps
ListView-List control
GridView-Grid Control
Example
1, ListView's Demo
Listviewdemo.xaml
Introduced
Re-imagine the encryption and decryption of Windows 8 Store Apps
Hash algorithm (MD5, SHA1, SHA256, SHA384, SHA512)
HMAC algorithm (MD5, SHA1, SHA256, SHA384, SHA512)
Encrypted decryption of local data
Symmetric algorithm (AES, DES, 3DES, RC2, RC4)
Example
1. Demonstrates how to use the hash algorithm
Multi-thread Asynchronous programming: Classic and newest asynchronous programming model, Iasyncinfo and Task conversion
Introduced
Re-imagine the asynchronous programming of Windows 8 Store Apps
Classic Asynchronous Programming model (IAsyncResult)
The latest asynchronous programming model (async and await)
Convert Iasyncinfo into a Task
Convert Task to Ia
Introduced
Re-imagine Windows 8 Store Apps after a task
Control channel (Controlchannel)
Example
1, client and server to do Controlchannel communication key code
Controlchannelhelper/appcontext.cs
* * This example uses global static variables to share information about the app and task so that background tasks can
Introduced
Re-imagine Windows 8 Store Apps after a task
Background playback and control of music
Example
An object to hold information about each piece of music
Backgroundtask/songmodel.cs
* * * for the preservation of each piece of music related information * *
using System;
Using System.Threading.Tasks;
Using Windows.storage;
Namespace Xamldemo.
Introduced
Re-imagine the Windows 8 Store Apps Communication
Socket-tcp Demo
Socket-Implements a custom HTTP server
SOCKET-UDP Demo
Example
1, Demo socket TCP Application (this example is to do both server and client)
Communication/socket/tcpdemo.xaml
Communication/socket/tcpdemo.xaml.cs
* * Demo Socket
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.