SwipeItems 類別

定義

/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 327680)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[WebHostHidden]
class SwipeItems : DependencyObject, IIterable<SwipeItem>, IVector<SwipeItem>
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 327680)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SwipeItems : DependencyObject, IIterable<SwipeItem>, IVector<SwipeItem>
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 327680)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public class SwipeItems : DependencyObject, IEnumerable<SwipeItem>, IList<SwipeItem>
function SwipeItems()
Public Class SwipeItems
Inherits DependencyObject
Implements IEnumerable(Of SwipeItem), IList(Of SwipeItem)
<SwipeControl>
  <SwipeControl.TopItems>
    oneOrMoreSwipeItemDefinitions
  </SwipeControl.TopItems>
</SwipeControl>
繼承
Object IInspectable DependencyObject SwipeItems
屬性
實作

Windows 需求

裝置系列
Windows 10 Fall Creators Update (已於 10.0.16299.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v5.0 引進)

範例

提示

如需詳細資訊、設計指引和程式碼範例,請參閱 撥動

如果您已安裝 WinUI 2 資源庫 應用程式,請按一下這裡 開啟應用程式並查看 SwipeControl 運作情形

建構函式

SwipeItems()

初始化 SwipeItems 類別的新實例。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.SwipeItems.-ctor (在Windows 應用程式 SDK中,請參閱Windows 應用程式 SDK命名空間) 。

屬性

Dispatcher

取得與此物件相關聯的 CoreDispatcherCoreDispatcher代表可以存取 UI 執行緒上DependencyObject的功能,即使程式碼是由非 UI 執行緒起始也一樣。

(繼承來源 DependencyObject)
Mode

取得或設定值,這個值表示撥動互動的效果。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.SwipeItems.Mode (在Windows 應用程式 SDK中,請參閱Windows 應用程式 SDK命名空間) 。

ModeProperty

識別 Mode 相依性屬性。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.SwipeItems.ModeProperty (在Windows 應用程式 SDK中,請參閱Windows 應用程式 SDK命名空間) 。

Size

取得集合的大小 (計數) 。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.SwipeItems.Size (for WinUI in the Windows 應用程式 SDK,請參閱) Windows 應用程式 SDK命名空間

方法

Append(SwipeItem)

將新項目加入至集合中。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.SwipeItems.Append (在Windows 應用程式 SDK中,請參閱Windows 應用程式 SDK命名空間) 。

Clear()

移除集合的所有項目。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.SwipeItems.Clear (Windows 應用程式 SDK,請參閱Windows 應用程式 SDK命名空間) 。

ClearValue(DependencyProperty)

清除相依性屬性的本機值。

(繼承來源 DependencyObject)
First()

傳回集合中專案的反覆運算器。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.SwipeItems.First (for WinUI 在Windows 應用程式 SDK中,請參閱Windows 應用程式 SDK命名空間) 。

GetAnimationBaseValue(DependencyProperty)

傳回針對相依性屬性所建立的任何基底值,如果動畫未使用中,則會套用。

(繼承來源 DependencyObject)
GetAt(UInt32)

傳回位於指定索引處的專案。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.SwipeItems.GetAt (UInt32) (for Win Windows 應用程式 SDK UI,請參閱) Windows 應用程式 SDK命名空間

GetMany(UInt32, SwipeItem[])

擷取單一傳遞反覆運算器中的多個元素。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.SwipeItems.GetMany (Windows 應用程式 SDK中WinUI,請參閱Windows 應用程式 SDK命名空間) 。

GetValue(DependencyProperty)

DependencyObject傳回相依性屬性的目前有效值。

(繼承來源 DependencyObject)
GetView()

取得集合中的不可變檢視。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.SwipeItems.GetView (在Windows 應用程式 SDK中,請參閱Windows 應用程式 SDK命名空間) 。

IndexOf(SwipeItem, UInt32)

擷取指定專案的索引。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.SwipeItems.IndexOf (在Windows 應用程式 SDK中,請參閱Windows 應用程式 SDK命名空間) 。

InsertAt(UInt32, SwipeItem)

在指定的索引處插入指定的專案。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.SwipeItems.InsertAt (在Windows 應用程式 SDK中,請參閱Windows 應用程式 SDK命名空間) 。

ReadLocalValue(DependencyProperty)

如果已設定本機值,則會傳回相依性屬性的本機值。

(繼承來源 DependencyObject)
RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback)

註冊通知函式,以接聽此DependencyObject實例上特定DependencyProperty的變更。

(繼承來源 DependencyObject)
RemoveAt(UInt32)

移除指定之索引處的項目。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.SwipeItems.RemoveAt (UInt32) (in the Windows 應用程式 SDK,請參閱Windows 應用程式 SDK命名空間) 。

RemoveAtEnd()

移除集合中的最後一個專案。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.SwipeItems.RemoveAtEnd (在Windows 應用程式 SDK中,請參閱Windows 應用程式 SDK命名空間) 。

ReplaceAll(SwipeItem[])

一開始清除集合,然後將提供的陣列插入為新專案。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.SwipeItems.ReplaceAll (for WinUI 在Windows 應用程式 SDK中,請參閱Windows 應用程式 SDK命名空間) 。

SetAt(UInt32, SwipeItem)

將位於指定索引的值設定為指定的值。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.SwipeItems.SetAt (在Windows 應用程式 SDK中,請參閱Windows 應用程式 SDK命名空間) 。

SetValue(DependencyProperty, Object)

DependencyObject上設定相依性屬性的本機值。

(繼承來源 DependencyObject)
UnregisterPropertyChangedCallback(DependencyProperty, Int64)

取消先前透過呼叫 RegisterPropertyChangedCallback註冊的變更通知。

(繼承來源 DependencyObject)

適用於