-
Notifications
You must be signed in to change notification settings - Fork 694
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(swipeControl): Implement SwipeItems
- Loading branch information
Showing
7 changed files
with
252 additions
and
178 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
59 changes: 59 additions & 0 deletions
59
src/Uno.UI/UI/Xaml/Controls/SwipeControl/SwipeItems.Uno.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,59 @@ | ||
using System; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Windows.UI.Xaml.Controls | ||
{ | ||
public partial class SwipeItems | ||
{ | ||
/// <inheritdoc /> | ||
public IEnumerator<SwipeItem> GetEnumerator() | ||
=> m_items.GetEnumerator(); | ||
|
||
/// <inheritdoc /> | ||
IEnumerator IEnumerable.GetEnumerator() | ||
=> m_items.GetEnumerator(); | ||
|
||
/// <inheritdoc /> | ||
public void Add(SwipeItem item) | ||
=> m_items.Add(item); | ||
|
||
/// <inheritdoc /> | ||
public bool Contains(SwipeItem item) | ||
=> m_items.Contains(item); | ||
|
||
/// <inheritdoc /> | ||
public void CopyTo(SwipeItem[] array, int arrayIndex) | ||
=> m_items.CopyTo(array, arrayIndex); | ||
|
||
/// <inheritdoc /> | ||
public bool Remove(SwipeItem item) | ||
=> m_items.Remove(item); | ||
|
||
/// <inheritdoc /> | ||
public int Count => m_items.Count; | ||
|
||
/// <inheritdoc /> | ||
public bool IsReadOnly => ((ICollection<SwipeItem>)m_items).IsReadOnly; | ||
|
||
/// <inheritdoc /> | ||
public int IndexOf(SwipeItem item) | ||
=> m_items.IndexOf(item); | ||
|
||
/// <inheritdoc /> | ||
public void Insert(int index, SwipeItem item) | ||
=> m_items.Insert(index, item); | ||
|
||
/// <inheritdoc /> | ||
public void RemoveAt(int index) | ||
=> m_items.RemoveAt(index); | ||
|
||
/// <inheritdoc /> | ||
public SwipeItem this[int index] | ||
{ | ||
get => m_items[index]; | ||
set => m_items[index] = value; | ||
} | ||
} | ||
} |
Oops, something went wrong.