Xceed Toolkit Plus for WPF v5.1 Documentation
Xceed.Wpf.ListBox Assembly / Xceed.Wpf.ListBox Namespace / ListBoxGroupHeaderConfiguration Class
Members Example


In This Topic
    ListBoxGroupHeaderConfiguration Class
    In This Topic

    Provides configuration information for a ListBoxGroupHeader.

    Syntax
    'Declaration
     
    <TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
    <NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
    Public Class ListBoxGroupHeaderConfiguration 
       Inherits Xceed.Wpf.ListBox.ListBoxContainerConfiguration(Of ListBoxGroupHeader)
    'Usage
     
    Dim instance As ListBoxGroupHeaderConfiguration
    [TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
    [NameScopeProperty("NameScope", System.Windows.NameScope)]
    public class ListBoxGroupHeaderConfiguration : Xceed.Wpf.ListBox.ListBoxContainerConfiguration<ListBoxGroupHeader> 
    Remarks

    Group headers are not stickable in PathPanel and PathView.

    Example

     

    <sllb:ListBoxGroupHeaderConfiguration x:Key="categoryGroupHeader">
      <sllb:ListBoxGroupHeaderConfiguration.GroupValueDataTemplates>
        <sllb:GroupValueDataTemplate>
          <sllb:GroupValueDataTemplate.FieldNames>
            <s:String>CategoryID</s:String>
          </sllb:GroupValueDataTemplate.FieldNames>
    
          <sllb:GroupValueDataTemplate.Template>
            <DataTemplate>
              <ContentPresenter Content="{Binding Converter={StaticResource categoryIDToCategoryNameConverter}}" />
            </DataTemplate>
          </sllb:GroupValueDataTemplate.Template>
        </sllb:GroupValueDataTemplate>
    
      </sllb:ListBoxGroupHeaderConfiguration.GroupValueDataTemplates>
    </sllb:ListBoxGroupHeaderConfiguration>
    
    ...
    
    <sllb:ListBox x:Name="listBox"
                  SelectionMode="Extended"
                  ItemsSource="{Binding}"
                  ToolPaneVisibility="Collapsed">
      <sllb:ListBox.ContainerConfigurations>
        <sllb:ContainerConfigurations ListBoxGroupHeaderConfiguration="{StaticResource categoryGroupHeader}" />
      </sllb:ListBox.ContainerConfigurations>
    
    </sllb:ListBox>
    Inheritance Hierarchy

    System.Object
       System.Windows.Threading.DispatcherObject
          System.Windows.DependencyObject
             Xceed.Wpf.ListBox.ListBoxContainerConfigurationBase
                Xceed.Wpf.ListBox.ListBoxContainerConfiguration<T>
                   Xceed.Wpf.ListBox.ListBoxGroupHeaderConfiguration

    Public Constructors
     NameDescription
    Public ConstructorOverloaded. Initializes a new instance of the ListBoxGroupHeaderConfiguration class.  
    Top
    Public Properties
     NameDescription
    Public PropertyOverridden. 

    Gets a value indicating whether the container can be sticky.

     
    Public PropertyGets a configuration type indicating what kind of container the configuration represents. (Inherited from Xceed.Wpf.ListBox.ListBoxContainerConfigurationBase)
    Public PropertyGets or sets the style that will be applied to the containers created by this configuration. (Inherited from Xceed.Wpf.ListBox.ListBoxContainerConfigurationBase)
    Public PropertyGets or sets the data template that will be used to display the container's content created by this configuration. (Inherited from Xceed.Wpf.ListBox.ListBoxContainerConfigurationBase)
    Public Property (Inherited from System.Windows.DependencyObject)
    Public Property (Inherited from System.Windows.Threading.DispatcherObject)
    Public PropertyGets a collection of GroupValueDataTemplate objects.  
    Public Property (Inherited from System.Windows.DependencyObject)
    Public PropertyGets or sets a value indicating whether the container is sticky. (Inherited from Xceed.Wpf.ListBox.ListBoxContainerConfigurationBase)
    Public PropertyGets or sets the layout mode of the container. (Inherited from Xceed.Wpf.ListBox.ListBoxContainerConfigurationBase)
    Top
    Public Methods
    Protected Methods
     NameDescription
    Protected Method (Inherited from Xceed.Wpf.ListBox.ListBoxContainerConfigurationBase)
    Protected MethodOverridden. Returns a new instance of ListBoxGroupHeader created with this configuration.  
    Protected Internal MethodOverridden. Returns an instance of ListBoxContainerConfigurationBase.  
    Protected MethodOverridden.   
    Protected Method (Inherited from System.Windows.DependencyObject)
    Protected MethodOverridden.   
    Protected Internal Method (Inherited from System.Windows.DependencyObject)
    Top
    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