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

建構函式

名稱 Description
VirtualizingLayoutContext()

初始化 VirtualizingLayoutContext 類別的新實例。

屬性

名稱 Description
Dispatcher

它總是在 Windows 應用程式 SDK 應用程式中回傳 null 。 改用 DispatcherQueue

(繼承來源 DependencyObject)
DispatcherQueue

得到 DispatcherQueue 這個物件所關聯的那個。 代表 DispatcherQueue 一個功能,即使程式碼是由非 UI 執行緒發起,也能存取 UI DependencyObject 執行緒。

(繼承來源 DependencyObject)
ItemCount

取得資料中的項目數量。

LayoutOrigin

取得或設定預估內容大小的起點。

LayoutOriginCore

在衍生或自訂的 VirtualizingLayoutContext 中實作 LayoutOrigin 的行為。

LayoutState

取得或設定一個代表版面狀態的物件。

(繼承來源 LayoutContext)
LayoutStateCore

在衍生或自訂的 LayoutContext 中實作 LayoutState 的行為。

(繼承來源 LayoutContext)
RealizationRect

會得到一個區域,代表視窗和緩衝區,佈局應該用實現的元素填滿它。

RecommendedAnchorIndex

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

RecommendedAnchorIndexCore

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

VisibleRect

取得與 Layout相關聯的FrameworkElement可見視窗矩形。

方法

名稱 Description
ClearValue(DependencyProperty)

清除依賴性財產的局部價值。

(繼承來源 DependencyObject)
GetAnimationBaseValue(DependencyProperty)

回傳任何為相依屬性建立的基礎值,適用於動畫未啟用時。

(繼承來源 DependencyObject)
GetItemAt(Int32)

在指定索引中取得來源資料項目。

GetItemAtCore(Int32)

當在衍生類別中實作時,會取得來源中指定索引中的資料項目。

GetOrCreateElementAt(Int32, ElementRealizationOptions)

取得一個 UIElement,該 UIElement 代表來源中指定索引中的資料項目,並使用指定的選項。

GetOrCreateElementAt(Int32)

取得代表來源中指定索引資料項目的 UIElement。 預設情況下,如果元素已經存在,則會回傳該元素;否則,會產生新的元素。

GetOrCreateElementAtCore(Int32, ElementRealizationOptions)

當在衍生類別中實作時,會取得一個 UIElement,該 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 該房產的價值。

適用於