wpf-Controls (1)

Source: Internet
Author: User

Xiao Kee: Recently, the company used WPF to develop a new product, starting from the Zero Foundation to learn WPF, in the process of reading, some of the content needs to be structured together, the final choice of the blog park, I hope that the knowledge they have mastered the regular.

-----------------------------------------------------------------------

WPF Controls (1)

Content Controls :

Contains and displays a piece of content. From a technical point of view, a content control is a control that can contain a single nested element. A content control can contain only one child element compared to a layout container.

lable controls

--Set the memory (mnemonics) for the lable control

<lable target= "{Binding elementname = txta}" >choose _a</lable>

<textbox name= "Txta" ></TextBox>

Use the Alt+a key to quickly move the focus to the Txta control.

ToolTip control

The--tooltip property can be set on other content controls, as attributes exist.

Button control

When the--iscancel property is set to True, the button becomes the window's Cancel button. and pressing the ESC key will trigger the button.

The--isdefault property is set to True, the button becomes the default button, and pressing the ENTER key triggers the default button, except that the focus is on other buttons.

ToggleButton controls and RepeatButton controls later update the content.

RadioButton Controls

The--groupname property is used to group, specifying that the same name is considered in a group.

CheckBox control

The--ischecked property can be True,false,null

Note Specifying a null value in the WPF markup requires the use of a null markup extension, as follows:

<checkbox ischecked= "{x:null}" >a checkbox</checkbox>

ScrollViewer controls

--You can use the scroll bar to place the container in the control. You can set verticalscrollbarvisibility to auto value when it is not displayed when it is not needed.

GroupBox controls

--Appears as a box with rounded corners and headings.

TabItem controls

The--tabitem control represents a page in a TabControl control. Set the Header property to the tab title.

Expander controls

--it encapsulates a piece of content by clicking the small arrow button to show or hide what it contains.

--By setting the IsExpanded property, set whether the control defaults to hidden content or expanded content.

--The default is to expand downward, you can change the value of the Expanddirection property, the optional value is down,up,left,right.

wpf-Controls (1)

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.