コンテンツの管理
単一 | 複数 | |
---|---|---|
@ | Content | Items |
@ | Child | Children |
Content は、単一の項目からなる、任意のオブジェクトを格納します。
Items は、複数の項目からなる、任意のオブジェクトを格納します。
Child は、単一の子要素 UIElement を格納します。
Children は、複数の子要素 UIElement を格納します。
例 | |
---|---|
Content | ContentControl, Button, CheckBox, ComboBoxItem, GroupItem, Label, ListBoxItem, ListViewItem, RadioButton, Window, @TabItem |
Items | ItemsControl, ListBox, TabControl, TreeView, TreeViewItem |
例 | |
---|---|
Child | Decorator, Border |
Children | Panel, StackPanel, WrapPanel |