Xceed Toolkit Plus for WPF v5.0 Documentation
Xceed.Wpf.DataGrid Assembly / Xceed.Wpf.DataGrid Namespace / HierarchicalGroupLevelIndicatorPane Class
Members Example


In This Topic
    HierarchicalGroupLevelIndicatorPane Class
    In This Topic

    The HierarchicalGroupLevelIndicatorPane class represents a control that contains group-level-indicator panes and detail-level indicators that indicate the group and detail levels in which an item is located.

    Syntax
    'Declaration
     
    <StyleTypedPropertyAttribute(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)>
    <XmlLangPropertyAttribute("Language")>
    <UsableDuringInitializationAttribute(True)>
    <RuntimeNamePropertyAttribute("Name")>
    <UidPropertyAttribute("Uid")>
    <TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
    <NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
    Public Class HierarchicalGroupLevelIndicatorPane 
       Inherits System.Windows.Controls.Control
    'Usage
     
    Dim instance As HierarchicalGroupLevelIndicatorPane
    [StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)]
    [XmlLangProperty("Language")]
    [UsableDuringInitialization(true)]
    [RuntimeNameProperty("Name")]
    [UidProperty("Uid")]
    [TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
    [NameScopeProperty("NameScope", System.Windows.NameScope)]
    public class HierarchicalGroupLevelIndicatorPane : System.Windows.Controls.Control 
    Example
    All examples in this topic assume that the grid is bound to the Employees table of the Northwind database, unless stated otherwise.
    The following example demonstrates how to add a non-row item that will act as a detail separator to the header section of a detail configuration whose indentation will correspond to detail and group levels in which it is contained.
    <Grid xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid"
          xmlns:local="clr-namespace:Xceed.Wpf.Documentation">
      <Grid.Resources>
       <xcdg:DataGridCollectionViewSource x:Key="cvs_employees"
                                          Source="{Binding Source={x:Static Application.Current},
                                                    Path=Employees}"/> 
       
      </Grid.Resources>
     
      <xcdg:DataGridControl x:Name="EmployeesGrid"
                            ItemsSource="{Binding Source={StaticResource cvs_employees}}"
                            AutoCreateDetailConfigurations="True">   
         <xcdg:DataGridControl.Columns>
            <xcdg:Column FieldName="Photo"
                         Visible="False" />
         </xcdg:DataGridControl.Columns>
         <xcdg:DataGridControl.DetailConfigurations>
            <xcdg:DetailConfiguration RelationName="Employee_Orders"
                                      Title="Employee Orders"
                                      UseDefaultHeadersFooters="False">
               <xcdg:DetailConfiguration.Headers>
                  <DataTemplate>
                     <DockPanel>                                    
                        <xcdg:HierarchicalGroupLevelIndicatorPane  xcdg:GroupLevelIndicatorPane.ShowIndicators="False"
                                                                   xcdg:TableView.CanScrollHorizontally="False"
                                                                    DockPanel.Dock="Left" />
                        <Border Height="24"                    
                                xcdg:TableView.CanScrollHorizontally="False"
                                Background="AliceBlue"/>
                     </DockPanel>
                  </DataTemplate>  
                 <DataTemplate>
                     <xcdg:ColumnManagerRow />
                  </DataTemplate>
               </xcdg:DetailConfiguration.Headers>
            </xcdg:DetailConfiguration>
         </xcdg:DataGridControl.DetailConfigurations>        
      </xcdg:DataGridControl>
    </Grid>
    Inheritance Hierarchy

    System.Object
       System.Windows.Threading.DispatcherObject
          System.Windows.DependencyObject
             System.Windows.Media.Visual
                System.Windows.UIElement
                   System.Windows.FrameworkElement
                      System.Windows.Controls.Control
                         Xceed.Wpf.DataGrid.HierarchicalGroupLevelIndicatorPane

    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