-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
ReorderableItemsView.cs
30 lines (26 loc) · 1.1 KB
/
ReorderableItemsView.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#nullable disable
using System;
using System.ComponentModel;
namespace Microsoft.Maui.Controls
{
public class ReorderableItemsView : GroupableItemsView
{
public event EventHandler ReorderCompleted;
/// <summary>Bindable property for <see cref="CanMixGroups"/>.</summary>
public static readonly BindableProperty CanMixGroupsProperty = BindableProperty.Create(nameof(CanMixGroups), typeof(bool), typeof(ReorderableItemsView), false);
public bool CanMixGroups
{
get { return (bool)GetValue(CanMixGroupsProperty); }
set { SetValue(CanMixGroupsProperty, value); }
}
/// <summary>Bindable property for <see cref="CanReorderItems"/>.</summary>
public static readonly BindableProperty CanReorderItemsProperty = BindableProperty.Create(nameof(CanReorderItems), typeof(bool), typeof(ReorderableItemsView), false);
public bool CanReorderItems
{
get { return (bool)GetValue(CanReorderItemsProperty); }
set { SetValue(CanReorderItemsProperty, value); }
}
[EditorBrowsable(EditorBrowsableState.Never)]
public void SendReorderCompleted() => ReorderCompleted?.Invoke(this, EventArgs.Empty);
}
}