Xceed Toolkit Plus for WPF v4.6 Documentation
ListBoxGroupHeaderConfiguration Class
Members  Example 


Xceed.Wpf.ListBox Assembly > Xceed.Wpf.ListBox Namespace : ListBoxGroupHeaderConfiguration Class

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

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

Reference

ListBoxGroupHeaderConfiguration Members
Xceed.Wpf.ListBox Namespace