-
Notifications
You must be signed in to change notification settings - Fork 743
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(itemscontrol): Sync Items with ItemsSource
Ensure Items collection is updated to reflect ItemsSource.
- Loading branch information
1 parent
0604e46
commit 26cf7ab
Showing
7 changed files
with
295 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/GroupingObservableCollection.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Collections.ObjectModel; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Uno.UI.RuntimeTests.Tests.Windows_UI_Xaml_Controls | ||
{ | ||
internal class GroupingObservableCollection<TKey, TElement> : ObservableCollection<TElement>, IGrouping<TKey, TElement> | ||
{ | ||
public TKey Key { get; } | ||
|
||
public GroupingObservableCollection(TKey key) : base() | ||
{ | ||
Key = key; | ||
} | ||
|
||
public GroupingObservableCollection(TKey key, IEnumerable<TElement> collection) : base(collection) | ||
{ | ||
Key = key; | ||
} | ||
} | ||
} |
Oops, something went wrong.