Class GroupDropArea
Represents a class that provides the common functionalities of group drop area control.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.DataGrid
Assembly: Syncfusion.Grid.WinUI.dll
Syntax
public class GroupDropArea : Control, IDisposableConstructors
GroupDropArea()
Initializes a new instance of GroupDropArea class.
Declaration
public GroupDropArea()Fields
GroupDropAreaTextProperty
Dependency registration for GroupDropAreaTextProperty.
Declaration
public static readonly DependencyProperty GroupDropAreaTextPropertyField Value
| Type | 
|---|
| Microsoft.UI.Xaml.DependencyProperty | 
IsExpandedProperty
Dependency registration for IsExpandedProperty.
Declaration
public static readonly DependencyProperty IsExpandedPropertyField Value
| Type | 
|---|
| Microsoft.UI.Xaml.DependencyProperty | 
WatermarkTextVisibilityProperty
Dependency registration for WaterMarkTextVisibility.
Declaration
public static readonly DependencyProperty WatermarkTextVisibilityPropertyField Value
| Type | 
|---|
| Microsoft.UI.Xaml.DependencyProperty | 
Properties
GroupDropAreaText
Gets or sets the group drop area text.
Declaration
public string GroupDropAreaText { get; set; }Property Value
| Type | Description | 
|---|---|
| System.String | The group drop area text. | 
IsExpanded
Gets or sets a value indicating whether group drop area is expanded or not.
Declaration
public bool IsExpanded { get; set; }Property Value
| Type | 
|---|
| System.Boolean | 
WatermarkTextVisibility
Gets or sets the visibility for WaterMarkText.
Declaration
public Visibility WatermarkTextVisibility { get; set; }Property Value
| Type | 
|---|
| Microsoft.UI.Xaml.Visibility | 
Methods
Dispose()
Disposes all the resources used by the GroupDropArea class.
Declaration
public void Dispose()Dispose(Boolean)
Disposes all the resources used by the GroupDropArea class.
Declaration
protected virtual void Dispose(bool isDisposing)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | isDisposing | Indicates whether the call is from Dispose method or from a finalizer. | 
OnApplyTemplate()
Invoked to apply template for GroupDropArea.
Declaration
protected override void OnApplyTemplate()OnCreateAutomationPeer()
Returns a class-specific AutomationPeer Implementations for the Microsoft UI Automation infrastructure.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()Returns
| Type | Description | 
|---|---|
| Microsoft.UI.Xaml.Automation.Peers.AutomationPeer | The class-specific AutomationPeer subclass. | 
OnHolding(HoldingRoutedEventArgs)
When long press on SfDataGrid Cell, Context menu appears for the selected cell. We are using this event for context menu support in Group Drop Area.
Declaration
protected override void OnHolding(HoldingRoutedEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| Microsoft.UI.Xaml.Input.HoldingRoutedEventArgs | e | Holding event arguments | 
OnRightTapped(RightTappedRoutedEventArgs)
When Right click SfDataGrid Cell, Context menu appears for the selected cell. We are using this event for context menu support in Group drop area cell.
Declaration
protected override void OnRightTapped(RightTappedRoutedEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| Microsoft.UI.Xaml.Input.RightTappedRoutedEventArgs | e | Right tapped event arguments | 
ShowContextFlyout(Point)
Opens the context flyout at the specified position.
Declaration
protected virtual bool ShowContextFlyout(Point position)Parameters
| Type | Name | Description | 
|---|---|---|
| Windows.Foundation.Point | position | The position to display context flyout. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | true If the context flyout opened;Otherwisefalse |