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

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.

主站蜘蛛池模板: 高淳县| 新龙县| 闽清县| 庄河市| 武汉市| 德江县| 丽江市| 巴南区| 江口县| 雅江县| 崇阳县| 平邑县| 长垣县| 嘉荫县| 永泰县| 邯郸市| 宣化县| 乾安县| 大同市| 葵青区| 香格里拉县| 彰武县| 宝清县| 马边| 阳信县| 哈密市| 东阳市| 临湘市| 兴文县| 乌审旗| 白玉县| 轮台县| 丹东市| 丰顺县| 海城市| 老河口市| 怀柔区| 沭阳县| 芦山县| 固阳县| 宁阳县|