Class TabMergePreviewEventArgs
Provides event data for the PreviewMerge event, allowing handlers to validate or cancel an incoming tab merge operation.
Inheritance
System.Object
TabMergePreviewEventArgs
Namespace: Syncfusion.Windows.Controls
Assembly: Syncfusion.SfChromelessWindow.Wpf.dll
Syntax
public sealed class TabMergePreviewEventArgs : EventArgs
Constructors
TabMergePreviewEventArgs(Object, SfTabControl, SfTabControl)
Initializes a new instance of the MergePreviewEventArgs class.
Declaration
public TabMergePreviewEventArgs(object draggedItem, SfTabControl source, SfTabControl target)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | draggedItem | |
| SfTabControl | source | |
| SfTabControl | target |
Properties
Allow
Gets or sets a value indicating whether the merge should be allowed. Set to false to cancel the merge. Default is true.
Declaration
public bool Allow { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
DraggedItem
Gets the item being dragged.
Declaration
public object DraggedItem { get; }
Property Value
| Type |
|---|
| System.Object |
ResultingItem
Gets or sets the item to be inserted into the target. If set, this object will be inserted instead of the original DraggedItem.
Declaration
public object ResultingItem { get; set; }
Property Value
| Type |
|---|
| System.Object |
SourceControl
Gets the source control where the drag originated.
Declaration
public SfTabControl SourceControl { get; }
Property Value
| Type |
|---|
| SfTabControl |
TargetControl
Gets the target control that will receive the item if allowed.
Declaration
public SfTabControl TargetControl { get; }
Property Value
| Type |
|---|
| SfTabControl |