Learn about Windows Phone7 Development (13. Four basic controls)

Source: Internet
Author: User

Here, put some of the most basic controls out, in fact, there is no collation of the control is placed here.

A. TextBlock: This control is actually a label control.

<textblock x:name= "pagetitle" text= "page Name" margin= " -3,-8,0,0" style= "{StaticResource Phonetexttitle1style}" textwrapping= "Wrap"/>style: Sets the style of font, word color, size, and so on StaticResource can bind preset styles.

TextWrapping: Sets whether the line wraps automatically.

Text: The type to display on the control.

Two. CheckBox: Multiple selection of controls, through the blend tool can also generate a variety of effects, in addition to the selection box to increase, not to be able to set Width,height to complete, but through the rendertransform scale to complete.

<checkbox content= "CheckBox1" height= "" horizontalalignment= "left" margin= "102,113,0,0" name= "CheckBox1" Verticalalignment= "Top" width= "279" borderbrush= "Red" foreground= "Blue" checked= "checkbox1_checked" Background= " Yellow "/>

<checkbox content= "CheckBox2" height= "a" horizontalalignment= "left" margin= "148,0,0,346" name= "CheckBox2" Verticalalignment= "Bottom" checked= "checkbox2_checked" rendertransformorigin= "0.5,0.5" borderbrush= "#BFFB2200" foreground= "#FF1008F7" >

<CheckBox.Background>

<lineargradientbrush endpoint= "0.5,1" mappingmode= "RelativeToBoundingBox" startpoint= "0.5,0" >

<gradientstop color= "White" offset= "0.504"/>

<gradientstop color= "#FFF7E306" offset= "1"/>

<gradientstop color= "#FFF7E306" offset= "0.004"/>

</LinearGradientBrush>

</CheckBox.Background>

<CheckBox.RenderTransform>

<compositetransform scalex= "2" scaley= "2"/>

</CheckBox.RenderTransform>

</CheckBox>

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.