Gets or sets the geometry used to define the outline of the contents of an element. Gets or sets a cached representation of the UIElement. Gets or sets the border thickness of a control. Gets or sets a brush that describes the border background of a control. Gets or sets an input source for the bitmap effect that applies directly to the rendered content for this element. Gets or sets the BindingGroup that is used for the element. Gets or sets a brush that describes the background of a control. Gets a value that indicates whether at least one touch is pressed over this element or any child elements in its visual tree. Gets a value that indicates whether at least one touch is pressed over this element. Gets a value that indicates whether at least one touch is captured to this element or to any child elements in its visual tree. Gets a value that indicates whether at least one touch is captured to this element. Gets or sets the number of alternating item containers in the ItemsControl, which enables alternating containers to have a unique appearance. Gets or sets a value indicating whether this element can be used as the target of a drag-and-drop operation. Gets the rendered height of this element. Identifies the SelectedValue dependency property. Identifies the SelectedValuePath dependency property. Identifies the SelectedItem dependency property. Identifies the SelectedItemChanged routed event. Initializes a new instance of the TreeView class. You can find a list of visual properties in the Changing the Visual Structure of a Control section in the Customizing the Appearance of an Existing Control by Creating a ControlTemplate article. Setting a visual property only has an effect if that property is both present in the control's default template and is set by using a TemplateBinding. The default style is determined by which desktop theme is used when the application is running. If a property is set by a default style, the property might change from its default value when the control appears in the application. To see the parts and states that are specific to the TreeView, see TreeView Styles and Templates.ĭependency properties for this control might be set by the control's default style. For more information about creating a ControlTemplate, see Customizing the Appearance of an Existing Control by Creating a ControlTemplate. You can modify the default ControlTemplate to give the control a unique appearance. To apply the same property settings to multiple TreeView controls, use the Style property. To improve the performance of a TreeView, see How to: Improve the Performance of a TreeView.įor more information about the TreeView control, see the TreeView Overview.Ī TreeView has a limited number of levels. See Optimizing Performance: Controls for more information. Examples of data sources include XmlDataProvider and ObservableCollection objects.ĭisplaying a large number of items may cause performance issues. A TreeView is defined as a hierarchy of TreeViewItem objects.Ī TreeView can populate its tree by binding to a data source and using HierarchicalDataTemplate objects. A TreeViewItem can contain one or more TreeViewItem objects as its descendants. The contents of a TreeView are TreeViewItem controls that can contain rich content, such as Button and Image controls. The following illustration shows a simple TreeView. For more information, see the ItemsControl class. TreeView is an ItemsControl, which means it can contain a collection of objects of any type (such as string, image, or panel). The following example shows how to create a TreeView.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |