// (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
// All other rights reserved.
using System;
namespace Avalonia.Controls
{
///
/// Used to specify action to take out of edit mode.
///
public enum DataGridEditAction
{
///
/// Cancel the changes.
///
Cancel,
///
/// Commit edited value.
///
Commit
}
// Determines the location and visibility of the editing row.
internal enum DataGridEditingRowLocation
{
Bottom = 0, // The editing row is collapsed below the displayed rows
Inline = 1, // The editing row is visible and displayed
Top = 2 // The editing row is collapsed above the displayed rows
}
///
/// Determines whether the inner cells' vertical/horizontal gridlines are shown or not.
///
[Flags]
public enum DataGridGridLinesVisibility
{
None = 0,
Horizontal = 1,
Vertical = 2,
All = 3,
}
public enum DataGridEditingUnit
{
Cell = 0,
Row = 1,
}
///
/// Determines whether the row/column headers are shown or not.
///
[Flags]
public enum DataGridHeadersVisibility
{
///
/// Show Row, Column, and Corner Headers
///
All = Row | Column,
///
/// Show only Column Headers with top-right corner Header
///
Column = 0x01,
///
/// Show only Row Headers with bottom-left corner
///
Row = 0x02,
///
/// Don’t show any Headers
///
None = 0x00
}
public enum DataGridRowDetailsVisibilityMode
{
Collapsed = 2, // Show no details. Developer is in charge of toggling visibility.
Visible = 1, // Show the details section for all rows.
VisibleWhenSelected = 0 // Show the details section only for the selected row(s).
}
///
/// Determines the type of action to take when selecting items
///
internal enum DataGridSelectionAction
{
AddCurrentToSelection,
None,
RemoveCurrentFromSelection,
SelectCurrent,
SelectFromAnchorToCurrent
}
///
/// Determines the selection model
///
public enum DataGridSelectionMode
{
Extended = 0,
Single = 1
}
}