官术网_书友最值得收藏!

Object element syntax

The XAML object element declares an instance of a type. Each object element starts with an opening angular bracket (<) followed by the name of it. Optionally, it can have a prefix to define its namespace outside of the default scope. The object element can be closed by a closing angular bracket (>) or with a self-closing angular bracket (/>). When the object element has a child element, we use the first one followed by the end tag (<Button>Click Here</Button>), and for the other case, a self-closing element (<Button Content="Click Here" />) is used.

When you specify the object element in an XAML page, the instruction to create an instant of the element is being generated and when you load the XAML, it creates the instance by calling the default constructor of the same.

主站蜘蛛池模板: 德令哈市| 淮安市| 南陵县| 衡水市| 定陶县| 大足县| 三江| 桂东县| 含山县| 广水市| 张掖市| 永年县| 丹凤县| 东乡县| 文登市| 山阴县| 革吉县| 清镇市| 莎车县| 普兰县| 溆浦县| 溆浦县| 乐昌市| 麟游县| 浠水县| 穆棱市| 陇南市| 依兰县| 涿鹿县| 怀化市| 新营市| 白河县| 广州市| 黄骅市| 三明市| 灵丘县| 大荔县| 炉霍县| 宁明县| 怀柔区| 肇东市|