共用方式為


VirtualizingLayoutContext 類別

定義

表示支援虛擬化之版面配置內容類型的基類。

/// [Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=0)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Version(1)]
class VirtualizingLayoutContext : LayoutContext
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.XamlContract, 65536)]
class VirtualizingLayoutContext : LayoutContext
[Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=0)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Version(1)]
public class VirtualizingLayoutContext : LayoutContext
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.XamlContract), 65536)]
public class VirtualizingLayoutContext : LayoutContext
Public Class VirtualizingLayoutContext
Inherits LayoutContext
繼承
Object IInspectable DependencyObject LayoutContext VirtualizingLayoutContext
屬性
Microsoft.UI.Xaml.CustomAttributes.MUXContractPropertyAttribute MarshalingBehaviorAttribute ThreadingAttribute VersionAttribute ContractVersionAttribute

建構函式

VirtualizingLayoutContext()

初始化 VirtualizingLayoutContext 類別的新實例。

屬性

Dispatcher

一律會在 Windows App SDK 應用程式中傳回 null。 請改用 DispatcherQueue

(繼承來源 DependencyObject)
DispatcherQueue

取得與這個對象相關聯的 DispatcherQueueDispatcherQueue 代表可以存取UI線程上 DependencyObject 的功能,即使程式代碼是由非UI線程起始也一樣。

(繼承來源 DependencyObject)
ItemCount

取得數據中的項目數目。

LayoutOrigin

取得或設定估計內容大小的源點。

LayoutOriginCore

實作衍生或自定義 VirtualizingLayoutContext 中 LayoutOrigin 的行為。

LayoutState

取得或設定 物件,表示版面配置的狀態。

(繼承來源 LayoutContext)
LayoutStateCore

實作衍生或自定義 LayoutContext 中 LayoutState 的行為。

(繼承來源 LayoutContext)
RealizationRect

取得區域,表示版面配置應該填入已實現項目的檢視區與緩衝區。

RecommendedAnchorIndex

取得建議的索引,從中開始產生和配置元素。

RecommendedAnchorIndexCore

實作取得衍生或自定義 VirtualizingLayoutContext 中 RecommendedAnchorIndex 傳回值的行為。

VisibleRect

取得與 Layout相關聯之 FrameworkElement 內可見的檢視區矩形。

方法

ClearValue(DependencyProperty)

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

(繼承來源 DependencyObject)
GetAnimationBaseValue(DependencyProperty)

傳回為相依性屬性建立的任何基底值,這會在動畫未使用的情況下套用。

(繼承來源 DependencyObject)
GetItemAt(Int32)

擷取位於指定索引之來源中的數據項。

GetItemAtCore(Int32)

在衍生類別中實作時,擷取位於指定索引之來源中的數據項。

GetOrCreateElementAt(Int32, ElementRealizationOptions)

擷取 UIElement,代表使用指定選項在指定索引中找到之來源中的數據項。

GetOrCreateElementAt(Int32)

擷取 UIElement,代表在指定索引處找到之來源中的數據項。 根據預設,如果項目已經存在,則會傳回它;否則,會建立新的專案。

GetOrCreateElementAtCore(Int32, ElementRealizationOptions)

在衍生類別中實作時,使用指定的選項,擷取 UIElement,代表在指定索引中找到之來源中的數據項。

GetValue(DependencyProperty)

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

(繼承來源 DependencyObject)
ItemCountCore()

在衍生類別中實作時,擷取數據中的項目數。

ReadLocalValue(DependencyProperty)

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

(繼承來源 DependencyObject)
RealizationRectCore()

在衍生類別中實作時,擷取區域,代表版面配置應該填入已實現專案的檢視區與緩衝區。

RecycleElement(UIElement)

清除指定的 UIElement,並允許它重複使用或釋放。

RecycleElementCore(UIElement)

在衍生類別中實作時,清除指定的UIElement,並允許重新使用或釋放它。

RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback)

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

(繼承來源 DependencyObject)
SetValue(DependencyProperty, Object)

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

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

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

(繼承來源 DependencyObject)
VisibleRectCore()

提供指派給 VisibleRect 屬性的值。

適用於