Learn about Windows Phone7 Development (13. Control)

Source: Internet
Author: User
Tags silverlight

Windows Phone7 provides a rich Silverlight control, but it differs from Silverlight in that many of the controls are not available, while others are available, but some properties are not. The basics of how each control is used and some special property usages are described later.

Two lists here illustrate the availability and use of controls.

Available Controls:

Unavailable controls:

However, these controls do not work, but some can be replaced with other controls, such as:

ScrollBar: Replaced by ScrollView.

There are also some controls that need to be customized, such as ComboBox.

For these possible controls, there are basically common properties:

Height/width: The size of the control set by the user is the expected size.

Actualheight/actualwidth: Read-only, the actual size of the control.

Cursor: Sets/Gets the control cursor shape.

DataContext: Sets/Gets the control binding data.

Horizontalalignment/verticalalignment: Sets/Gets the horizontal/vertical alignment of the control.

Language: Set/Get localization/globalization language information, such as language= "en-US"

Margin: Sets/Gets the margins of the control and the page.

Maxheight/maxwidth & Minheight/minwidth: Two of three properties (and Height/width) that set the size of the control. If three values collide, the first thing to ensure is min and then Max, but the two values must be valid between Height/width settings.

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.