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 Windows 8 Store Apps Microsoft account
Get user-related information for Microsoft account
Get or set up pictures and videos of Microsoft account
Microsoft account verification, and the acquisition of relevant information
Example
1, to demonstrate how to obtain the Microsoft account user-related information
Account/accountinfo.xaml
Account/accountinfo.xaml.cs
* * Demo
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
Selector: Contact Selection window, customizing the Contact Selection window
Introduced
Re-imagine the Windows 8 Store Apps Selector
Contactpicker-Contact Selector
Contactpickerui-Custom Contact Selector
Example
Demonstrates how to select one or more contacts through contactpicker and how to develop custom contact selectors
1. Develop a custom contact selector
Picker/mycontactpicker.xaml
Picker/
Selector: Custom file Selection window, custom file Save window
Introduced
Re-imagine the Windows 8 Store Apps Selector
Fileopenpickerui-Custom File Open Selector
Filesavepickerui-Custom File Save Selector
Example
1, develop a custom file Selection window. Note: If you need to activate a custom File Selection window, select the corresponding Provider in the upper left corner of the pop-up selector win
Introduced
Re-imagine the semanticzoom of Windows 8 Store Apps
Demo Semanticzoom's Application
View of custom semanticzoom through Isemanticzoominformation interface
Example
1. Demo Semanticzoom Application
Index.xaml
Introduced
Re-imagine the ScrollViewer of Windows 8 Store Apps
Chaining-chains
Rail-Track
Inertia-inertia
Snap-Snap To
Zoom-Zoom
Example
1, demonstrating the chaining characteristics of ScrollViewer
Scrollviewer/chaining.xaml
Canvas, Grid, StackPanel, virtualizings
Introduced
Re-imagine the layout controls for Windows 8 Store Apps
Canvas-Absolute Positioning layout
GRID-Network format layout
StackPanel-Streaming layout
VirtualizingStackPanel-can only be used for ItemsControl
Wrapgrid-can only be used for ItemsControl
Variablesizedwrapgrid-for Wrap child element collections
Example
1, Canvas's Demo
Canvasdemo.xaml
Image, MediaElement
Introduced
Re-imagine the Windows 8 Store Apps Media Control
Image-Picture control
MediaElement-controls that play video or audio
Example
1, the Image of the Demo
Imagedemo.xaml
Multi-thread thread synchronization: Lock, Monitor, interlocked, Mutex, ReaderWriterLock
Introduced
Re-visualize the thread sync for Windows 8 Store Apps
Lock-is actually a encapsulation of the Monitor.Enter () and Monitor.Exit ()
Monitor-Lock
Interlocked-provides atomic operations for numeric variables shared by multiple threads
Mutex-mutexes, primarily for mutexes across processes within the same sy
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.