VirtualizingLayoutContext Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the base class for layout context types that support virtualization.
/// [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
- Inheritance
- Attributes
-
Microsoft.UI.Xaml.CustomAttributes.MUXContractPropertyAttribute MarshalingBehaviorAttribute ThreadingAttribute VersionAttribute ContractVersionAttribute
Constructors
VirtualizingLayoutContext() |
Initializes a new instance of the VirtualizingLayoutContext class. |
Properties
Dispatcher |
Always returns |
DispatcherQueue |
Gets the |
ItemCount |
Gets the number of items in the data. |
LayoutOrigin |
Gets or sets the origin point for the estimated content size. |
LayoutOriginCore |
Implements the behavior of LayoutOrigin in a derived or custom VirtualizingLayoutContext. |
LayoutState |
Gets or sets an object that represents the state of a layout. (Inherited from LayoutContext) |
LayoutStateCore |
Implements the behavior of LayoutState in a derived or custom LayoutContext. (Inherited from LayoutContext) |
RealizationRect |
Gets an area that represents the viewport and buffer that the layout should fill with realized elements. |
RecommendedAnchorIndex |
Gets the recommended index from which to start the generation and layout of elements. |
RecommendedAnchorIndexCore |
Implements the behavior for getting the return value of RecommendedAnchorIndex in a derived or custom VirtualizingLayoutContext. |
VisibleRect |
Gets the visible viewport rectangle within the |
Methods
ClearValue(DependencyProperty) |
Clears the local value of a dependency property. (Inherited from DependencyObject) |
GetAnimationBaseValue(DependencyProperty) |
Returns any base value established for a dependency property, which would apply in cases where an animation is not active. (Inherited from DependencyObject) |
GetItemAt(Int32) |
Retrieves the data item in the source found at the specified index. |
GetItemAtCore(Int32) |
When implemented in a derived class, retrieves the data item in the source found at the specified index. |
GetOrCreateElementAt(Int32, ElementRealizationOptions) |
Retrieves a UIElement that represents the data item in the source found at the specified index using the specified options. |
GetOrCreateElementAt(Int32) |
Retrieves a UIElement that represents the data item in the source found at the specified index. By default, if an element already exists, it is returned; otherwise, a new element is created. |
GetOrCreateElementAtCore(Int32, ElementRealizationOptions) |
When implemented in a derived class, retrieves a UIElement that represents the data item in the source found at the specified index using the specified options. |
GetValue(DependencyProperty) |
Returns the current effective value of a dependency property from a DependencyObject. (Inherited from DependencyObject) |
ItemCountCore() |
When implemented in a derived class, retrieves the number of items in the data. |
ReadLocalValue(DependencyProperty) |
Returns the local value of a dependency property, if a local value is set. (Inherited from DependencyObject) |
RealizationRectCore() |
When implemented in a derived class, retrieves an area that represents the viewport and buffer that the layout should fill with realized elements. |
RecycleElement(UIElement) |
Clears the specified UIElement and allows it to be either re-used or released. |
RecycleElementCore(UIElement) |
When implemented in a derived class, clears the specified UIElement and allows it to be either re-used or released. |
RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback) |
Registers a notification function for listening to changes to a specific DependencyProperty on this DependencyObject instance. (Inherited from DependencyObject) |
SetValue(DependencyProperty, Object) |
Sets the local value of a dependency property on a DependencyObject. (Inherited from DependencyObject) |
UnregisterPropertyChangedCallback(DependencyProperty, Int64) |
Cancels a change notification that was previously registered by calling RegisterPropertyChangedCallback. (Inherited from DependencyObject) |
VisibleRectCore() |
Provides the value that is assigned to the |