Xceed Toolkit Plus for WPF v5.0 Documentation
Xceed.Wpf.ListBox Assembly / Xceed.Wpf.ListBox Namespace / ListBox Class / ItemTemplate Property


In This Topic
    ItemTemplate Property (ListBox)
    In This Topic
    Gets or sets the DataTemplate used to display each item.
    Syntax
    'Declaration
     
    Public Property ItemTemplate As DataTemplate
    'Usage
     
    Dim instance As ListBox
    Dim value As DataTemplate
     
    instance.ItemTemplate = value
     
    value = instance.ItemTemplate
    public DataTemplate ItemTemplate {get; set;}

    Property Value

    The template that specifies the visualization of the data objects. The default is null.
    Remarks
    If the ContentTemplate property of the ListBoxItemConfiguration accessible via the ListBox's ContainerConfigurations.ListBoxItemConfiguration property is set, it will take precedence over this one.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also