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

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.

主站蜘蛛池模板: 岢岚县| 磐石市| 罗源县| 平谷区| 富锦市| 洞口县| 宜君县| 克什克腾旗| 象州县| 霸州市| 商水县| 江油市| 周至县| 柳州市| 茌平县| 进贤县| 尤溪县| 和龙市| 临漳县| 古浪县| 石屏县| 邵东县| 同江市| 留坝县| 新田县| 建湖县| 苗栗县| 象州县| 蓝山县| 安平县| 儋州市| 丹东市| 南开区| 桐城市| 罗城| 邹平县| 元氏县| 松溪县| 河北区| 肥东县| 板桥市|