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

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.

主站蜘蛛池模板: 梅河口市| 湘潭县| 喀喇| 惠东县| 西安市| 从化市| 星座| 久治县| 博罗县| 无极县| 赤峰市| 福建省| 佛学| 志丹县| 新郑市| 南宫市| 佛山市| 贺兰县| 神池县| 武川县| 常熟市| 抚顺县| 刚察县| 凉城县| 余姚市| 栖霞市| 荆州市| 容城县| 天镇县| 博野县| 宣威市| 夏津县| 南召县| 武陟县| 苏尼特左旗| 丹寨县| 益阳市| 建昌县| 怀集县| 镇江市| 阿克苏市|