示例#1
0
文件: INPC.cs 项目: yzwbrian/MvvmFx
 /// <summary>
 /// Clears the items contained by the collection.
 /// </summary>
 protected sealed override void ClearItems()
 {
     Execute.OnUIThread(ClearItemsBase);
 }
示例#2
0
文件: INPC.cs 项目: yzwbrian/MvvmFx
 /// <summary>
 /// Removes the item at the specified position.
 /// </summary>
 /// <param name = "index">The position used to identify the item to remove.</param>
 protected sealed override void RemoveItem(int index)
 {
     Execute.OnUIThread(() => RemoveItemBase(index));
 }
示例#3
0
文件: INPC.cs 项目: yzwbrian/MvvmFx
 /// <summary>
 /// Sets the item at the specified position.
 /// </summary>
 /// <param name = "index">The index to set the item at.</param>
 /// <param name = "item">The item to set.</param>
 protected sealed override void SetItem(int index, T item)
 {
     Execute.OnUIThread(() => SetItemBase(index, item));
 }
示例#4
0
文件: INPC.cs 项目: yzwbrian/MvvmFx
 /// <summary>
 /// Moves the item within the collection.
 /// </summary>
 /// <param name="oldIndex">The old position of the item.</param>
 /// <param name="newIndex">The new position of the item.</param>
 protected sealed override void MoveItem(int oldIndex, int newIndex)
 {
     Execute.OnUIThread(() => MoveItemBase(oldIndex, newIndex));
 }
示例#5
0
 /// <summary>
 /// Raises a change notification indicating that all bindings should be refreshed.
 /// </summary>
 public void Refresh()
 {
     Execute.OnUIThread(() => OnListChanged(new ListChangedEventArgs(ListChangedType.Reset, 0)));
 }
示例#6
0
 /// <summary>
 /// Inserts the item.
 /// </summary>
 /// <param name="index">The index.</param>
 /// <param name="item">The item.</param>
 protected override void InsertItem(int index, T item)
 {
     Execute.OnUIThread(() => base.InsertItem(index, item));
 }