0x90d
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
src/Avalonia.Controls.DataGrid/DataGridColumn.cs
|
|
|
@ -657,10 +657,10 @@ namespace Avalonia.Controls |
|
|
|
/// Switches the current state of sort direction
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="clear">Clear the current sort direction instead</param>
|
|
|
|
public void PerformSort(bool clear) |
|
|
|
public void PerformSort(bool? clear) |
|
|
|
{ |
|
|
|
//InvokeProcessSort is already validating if sorting is possible
|
|
|
|
_headerCell?.InvokeProcessSort(clear ? Input.KeyModifiers.Control : Input.KeyModifiers.None); |
|
|
|
_headerCell?.InvokeProcessSort(clear == true ? Input.KeyModifiers.Control : Input.KeyModifiers.None); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|