[]
        
(Showing Draft Content)

C1.WPF.FlexGrid.C1FlexGridGroupPanel

C1FlexGridGroupPanel Class

Class that provides a UI for manipulating groups in a C1FlexGrid control that is bound to an ICollectionView.

Namespace: C1.WPF.FlexGrid
Assembly: C1.WPF.FlexGrid.GroupPanel.4.6.2.dll
Syntax
[TemplatePart(Name = "Watermark", Type = typeof(TextBlock))]
[TemplatePart(Name = "Markers", Type = typeof(StackPanel))]
public class C1FlexGridGroupPanel : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient
Remarks
<p>The <xref href="C1.WPF.FlexGrid.C1FlexGridGroupPanel" data-throw-if-not-resolved="false"></xref> is an independent element that is 

connected to a C1FlexGrid through the FlexGrid property.

The C1FlexGridGroupPanel shows a panel and allows users to create groups by dragging column headers into the panel. Users can reorder the groups by dragging the group markers, or sort and remove groups by clicking the group markers.

The appearance of the group markers is automatically determined by the grid that is connected to the C1FlexGridGroupPanel. You don't have to select any fonts or brushes.

The XAML below shows how you would create a C1FlexGridGroupPanel and connect it to a grid:

<pre><code class="lang-csharp"><c1:C1FlexGridGroupPanel 
  x:Name="_groupPanel" Grid.Row="0" Background="WhiteSmoke"
  FlexGrid="{Binding ElementName=_flex}"
  WatermarkText="Drag column headers here to create groups."
  MaxGroups="8"
  HideGroupedColumns="True"
  DragMarkerColor="#312DFF" /></code></pre>

Constructors

Name Description
C1FlexGridGroupPanel()

Initializes a new instance of a C1FlexGridGroupPanel.

Fields

Name Description
DragMarkerColorProperty

Identifies the DragMarkerColor dependency property.

FlexGridProperty

Identifies the FlexGrid dependency property.

HideGroupedColumnsProperty

Identifies the HideGroupedColumns dependency property.

MaxGroupsProperty

Identifies the MaxGroups dependency property.

Properties

Name Description
DragMarkerColor

Gets or sets the color used to show the drag and drop indicators.

FlexGrid

Gets or sets the C1FlexGrid that is connected to this C1FlexGridGroupPanel.

HideGroupedColumns

Gets or sets whether the control should automatically hide grouped columns.

MaxGroups

Gets or sets the maximum number of groups allowed.

Watermark

Gets the TextBlock that shows the watermark in the empty group area.

WatermarkText

Gets or sets the message that appears in the empty group area.

Methods

Name Description
OnApplyTemplate()
OnPropertyGroupCreated(PropertyGroupCreatedEventArgs)

Raises the PropertyGroupCreated event.

Events

Name Description
PropertyGroupCreated

Event that occurs when a new PropertyGroupDescription has been created.