6 changed files with 24 additions and 19 deletions
@ -1,34 +1,34 @@ |
|||||
// Copyright (c) The Perspex Project. All rights reserved.
|
// Copyright (c) The Perspex Project. All rights reserved.
|
||||
// Licensed under the MIT license. See licence.md file in the project root for full license information.
|
// Licensed under the MIT license. See licence.md file in the project root for full license information.
|
||||
|
|
||||
|
using System; |
||||
|
|
||||
namespace Perspex.Controls |
namespace Perspex.Controls |
||||
{ |
{ |
||||
/// <summary>
|
/// <summary>
|
||||
/// Defines the selection mode for a control which can select multiple items.
|
/// Defines the selection mode for a control which can select multiple items.
|
||||
/// </summary>
|
/// </summary>
|
||||
|
[Flags] |
||||
public enum SelectionMode |
public enum SelectionMode |
||||
{ |
{ |
||||
/// <summary>
|
/// <summary>
|
||||
/// One item can be selected at a time.
|
/// One item can be selected.
|
||||
/// </summary>
|
/// </summary>
|
||||
Single, |
Single = 0x00, |
||||
|
|
||||
/// <summary>
|
/// <summary>
|
||||
/// One item can be selected at a time, and there will always be a selected item as long
|
/// Multiple items can be selected.
|
||||
/// as there are items to select.
|
|
||||
/// </summary>
|
/// </summary>
|
||||
SingleAlways, |
Multiple = 0x01, |
||||
|
|
||||
/// <summary>
|
/// <summary>
|
||||
/// Multiple items can be selected and their selection state is toggled by presses or by
|
/// Item selection can be toggled by tapping/spacebar.
|
||||
/// pressing the spacebar.
|
|
||||
/// </summary>
|
/// </summary>
|
||||
MultipleToggle, |
Toggle = 0x02, |
||||
|
|
||||
/// <summary>
|
/// <summary>
|
||||
/// A range of items can be selected by holding the shift key, and individual items can be
|
/// An item will always be selected as long as there are items to select.
|
||||
/// selected by holding the ctrl key.
|
|
||||
/// </summary>
|
/// </summary>
|
||||
MultipleRange, |
AlwaysSelected = 0x04, |
||||
} |
} |
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue