Stable transformation of SL review notes-basics (II. controls and data access)

Source: Internet
Author: User

The project progress can only be sorted in trivial time.ArticleNot too long.
To continue with "XAML", open the specified page of "SL Project" in "Web" or other types of projects. This can be passed using parameters named "initparameters". You can obtain it in "app. XAML. cs" and then process it.

Next, recall the control together.
1. layout controls. Canvas, stackpanel, and grid.
Canvas: Coordinates X and Y. Absolute positioning. controls or elements can overlap with each other.
Stackpanel: vertical or horizontal.
Grid: it is a bit like "table" in HTML, and similar to "layoutpanel" in winform. It seems that the two are in a "network" arrangement.
2. image.
Pay attention to the path problem. Is the image path starting. When dragging an image, you can place the image in the "border" control and process its corresponding mouse events.
3. WCF. People who have worked in WebService and distributed development, I believe they all know the power of "WCF. Data Interaction between SL and server segments must be implemented through it.
4. SL access server.
For example, session. First, viewstate or UI controls are used. viewstate has a large resource overhead, a small amount of data, and is not secure. Second, initparameter is similar to the first one. The third method is the above mentioned WCF.
5. SL can access the HTML document that carries it, call the js method, and implement it through the "htmlpage" class.

A treasure of the latest technical resources

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.