WCF Learning (ii) a simple understanding of controls and an introduction to 4 text controls

Source: Internet
Author: User

WPF base Controls

The system provides the underlying controls by default:

Text control introduction and usage Label control

Label control: General User-Descriptive text display.

The user is generally prompted when the label control is used. There is nothing special about the usage, thevalue of the label control is remembered: it is not the text but the content property.

TextBlock controls

The TextBlock control, which is a read-only text box, cannot be edited and is more suitable for displaying text that does not allow editing of the text content.

The TextBlock property that sets the value is that text supports direct assignment and data binding.

Textbox

TextBox is the basic control to support editing, we usually do not develop BS or CS desktop applications, the use of the control should be familiar. I will only introduce a few simple properties here, because in the specific project development process may use:

The properties described above are basically used in the actual project. More ways to use it, specifically in the following example

PassWordBox

This text box is typically used for user input validation or registration, and is rarely used for other modes.

For specific usage, usually in user registration or account information management.

WCF Learning (ii) a simple understanding of controls and an introduction to 4 text controls

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.