1.Read isolated Storage Each Metro program has three folders: Local,roaming,temp. Access methods are the same for each folder.
Local is used to store the data locally, which is a program-specific folder.
Roaming stored files may be used to synchronize with other programs.
The files in temp can be erased every time the program is started.
The following code is how to use them: Public Async voidIsolatedStorage () {//Settings v
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
Notification/toast/demo.xaml.cs
* * TOAST-Notification * TOASTNOTIFICATION-TOAST notification
according to the application, and the following describes how to reference resources in the detached resource file. It is important to note that the resource file and resource content used in this example will be used more than once in the examples in the following chapter, " Hello World "The story is not unfamiliar to programmers, even slightly stale, but in this chapter by deliberately arranging to use different languages to say" Hello World , expressing the desire of the author to hope t
Run PowerShell as an administrator, enter the following command (you can copy and paste directly):" $($_. installlocation) \appxmanifest.xml"}All of your previously uninstalled apps will be restored after running.
Add-appxpackage-register "C:\Program files\windowsapps\microsoft.windowsstore_2015. 7.22. 0_x64__8wekyb3d8bbwe\appxmanifest.xml "-disabledevelopmentmode"Windows" Win10 store was deleted after th
(Simplified), run the program, click the "Show Info" button, and use Simplified Chinese to display "This is an error action", the effect 18-13 is shown. When setting the language preference to English, run the program and click the "Show Info" button to display the "This was anerror operate" in English, as shown in the effect 18-14 . Figure 18-13 called when the language preference is Chinese (Simplified) Errors resources in the resource file 18-14 language preference is English when you
The specific path is as follows: C disk--program Files--windowsapps, we can open to find
Of course, if we want to modify the default path, refer to the following method
1, Windows button +i out set
2. Click on the network and Internet------or click the network link icon in the lower right corner of the desktop-network settings
3, click on the left side of the data usage, and then click the relevant settings below the stora
File system: Text read/write, binary read/write, stream read/write, recent access list and future access list
Introduced
Re-imagine the Windows 8 Store Apps File system
Demonstrates how to read and write text data
Demonstrates how to read and write binary data
Demonstrates how to read and write streaming data
Shows how to read and write "Recent access lists" and "Future access lists"
Example
1. Demo
Introduced
Re-imagine the Windows 8 Store Apps Animation
Popinthemeanimation-Animation When the control appears, Popoutthemeanimation-animation when the control disappears
Fadeinthemeanimation-Controls fade in animation, fadeoutthemeanimation-Controls fade animation
Pointerdownthemeanimation-Animation of the mouse (finger) when pressed on the control, pointerupthemeanimation-animation when the mouse (fi
Control Basics: Measure, arrange, Generaltransform, Visua
Introduced
Re-imagine the control basics for Windows 8 Store Apps
Measure () and arrange ()-XAML layout systems
Generaltransform-Gets the location information of the element via Uielement.transformtovisual ()
VisualTree-visual tree
Example
1. Demo XAML Layout system
Controls/basic/measurearrange.xaml
Controls/basic/measurearrange.xaml.cs
Control Basics: Dependency properties, attached properties, control inheritance relationships, routed events, and hit tests
Introduced
Re-imagine the control basics for Windows 8 Store Apps
DependencyProperty-Dependency Properties
Attachedproperty-Attached properties
Inheritance relationships for controls
Routed events and hit tests
Example
1. Develop a custom control with DependencyProperty and Att
Multi-thread Task: task base, multitask parallel execution, parallel operation (Parallel)
Introduced
Re-imagine the task of Windows 8 Store Apps
Task-tasks based on the thread pool (under the System.Threading.Tasks namespace)
Concurrent execution of multiple tasks
Parallel-Parallel computing (under the System.Threading.Tasks namespace)
Example
1. The basic application of the task (based on thread poo
Clipboard: Copy/paste text, HTML, picture, file
Introduced
Re-imagine the Windows 8 Store Apps's clipboard
Clipboard-Shearing Plate
Copy/paste Text
Copy/paste HTML
Copy/Paste Picture
Copy/paste File
Example
1. Demonstration of the basic application of shearing board
Clipboard/demo.xaml
Clipboard/demo.xaml.cs
* * Clipboard-Clipboard * setcontent ()-Save the specified datapackage to the Cli
Introduced
Re-imagine the contract for Windows 8 Store Apps
Settings Contract-The right sidebar is called a Charm, where the "setting" is called a settings Contract
Example
Demo Application of Settings Contract
Contracts/settingscontract/demo.xaml
Contracts/settingscontract/demo.xaml.cs
* * Settings Contract-the right sidebar is called the Charm, where the "setting" is called the settings Contra
Introduced
Re-imagine the Windows 8 Store Apps Notice
Tile-Basic applications See http://www.cnblogs.com/webabcd/archive/2013/06/17/3139740.html
Tile-All Tile templates
Tile-Loops display multiple tilenotification on a Tile
Tile-an app with multiple Tile
Tile-Tile notifications are updated as scheduled, polling the service side to update Tile notifications
Example
1, display Tile all 46 kinds of tem
Introduced
Re-imagine the Windows 8 Store Apps Communication
HttpClient Overview
HTTP GET string
HTTP GET Stream
HTTP POST string
HTTP POST Stream
OAuth 2.0 Authenticated clients
Example
Service side for demonstrating HTTP traffic
Webserver/httpdemo.aspx.cs
* * used in response to HTTP request * * using System;
Using System.IO;
Using System.Threading; namespace WebServer {public partial cl
Introduced
Re-imagine the bindings of Windows 8 Store Apps
Add, delete, modify and query data through MVVM mode
Example
1, Model layer
Binding/mvvm/model/productdatabase.cs
* * * Model layer Data persistence operation (local or remote) * * This example is only a demo/using System;
Using System.Collections.Generic;
Using System.Linq; Namespace XamlDemo.Binding.MVVM.Model {public class Productdata
Introduced
Re-imagine the bindings of Windows 8 Store Apps
Provides data for incremental loading of listviewbase by implementing the Isupportincrementalloading interface
Example
Implements the Isupportincrementalloading interface to provide data for incremental loading of listviewbase
Binding/myincrementalloading.cs
* * Demonstrates how to implement the Isupportincrementalloading interface to provide
Binding: Binding with Element Model Indexer Style RelativeSource, and data conversion in bindings
Introduced
Re-imagine the bindings of Windows 8 Store Apps
Binding with Element
With Model binding
Binding with Indexer
Bind a Setter in a Style (bind a static Resource)
Application of an extended tag RelativeSource for Binding
Data transformations in Bindings
Example
1, demonstrates how to bind with
Input: Get input device information, virtual keyboard, Tab navigation, pointer, Tap, Drag, Drop
Introduced
Re-imagine the Windows 8 Store Apps input
Enter information about the device
Application of SIP (Soft Input Panel)
Tab Key Navigation
Pointer-pointers, mouse
Tap-Touch
Drag and Drop
Example
1. Demonstrates how to obtain information about input devices
Input/inputdeviceinfo.xaml
Input/inp
Multi-line Threads other Auxiliary classes: SpinWait, Spinlock, Volatile, SynchronizationContext, Coredispatcher, ThreadLocal, ThreadStaticAttribute
Introduced
Re-imagine other auxiliary classes for multiple threading operations in Windows 8 Store Apps
SpinWait-Spin Wait
Spinlock-Spin Lock
Volatile-must be in memory
SynchronizationContext-Synchronizes data on a specified thread
Coredispatcher-Schedul
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.