TemplatedItemsList<TView,TItem> 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
generic <typename TView, typename TItem>
where TView : BindableObject, IItemsView<TItem> where TItem : BindableObjectpublic ref class TemplatedItemsList sealed : Microsoft::Maui::Controls::BindableObject, IDisposable, Microsoft::Maui::Controls::ITemplatedItemsList<TItem>, System::Collections::Generic::IEnumerable<TItem>, System::Collections::Generic::IReadOnlyCollection<TItem>, System::Collections::Generic::IReadOnlyList<TItem>, System::Collections::IList, System::Collections::Specialized::INotifyCollectionChanged
public sealed class TemplatedItemsList<TView,TItem> : Microsoft.Maui.Controls.BindableObject, IDisposable, Microsoft.Maui.Controls.ITemplatedItemsList<TItem>, System.Collections.Generic.IEnumerable<TItem>, System.Collections.Generic.IReadOnlyCollection<TItem>, System.Collections.Generic.IReadOnlyList<TItem>, System.Collections.IList, System.Collections.Specialized.INotifyCollectionChanged where TView : BindableObject, IItemsView<TItem> where TItem : BindableObject
type TemplatedItemsList<'View, 'Item (requires 'View :> BindableObject and 'View :> IItemsView<'Item> and 'Item :> BindableObject)> = class
inherit BindableObject
interface ITemplatedItemsList<'Item (requires 'Item :> BindableObject)>
interface IReadOnlyList<'Item (requires 'Item :> BindableObject)>
interface seq<'Item (requires 'Item :> BindableObject)>
interface IEnumerable
interface IReadOnlyCollection<'Item (requires 'Item :> BindableObject)>
interface INotifyCollectionChanged
interface IList
interface ICollection
interface IDisposable
Public NotInheritable Class TemplatedItemsList(Of TView, TItem)
Inherits BindableObject
Implements IDisposable, IEnumerable(Of TItem), IList, INotifyCollectionChanged, IReadOnlyCollection(Of TItem), IReadOnlyList(Of TItem), ITemplatedItemsList(Of TItem)
类型参数
- TView
- TItem
- 继承
- 实现
字段
NameProperty |
的 Name可绑定属性。 |
ShortNameProperty |
的 ShortName可绑定属性。 |
属性
BindingContext |
获取或设置一个 对象,该对象包含将由属于此 BindableObject的绑定属性所面向的属性。 这是一种可绑定属性。 (继承自 BindableObject) |
Count | |
Dispatcher |
获取创建此可绑定对象时可用的调度程序,否则会尝试查找最接近的可用调度程序 (可能是窗口/应用的) 。 (继承自 BindableObject) |
GroupDisplayBinding | |
GroupHeaderTemplate | |
GroupHeaderTemplateProperty | |
GroupShortNameBinding | |
HeaderContent | |
IsGroupingEnabled | |
IsGroupingEnabledProperty | |
Item[Int32] | |
ItemsSource | |
Name | |
Parent | |
ProgressiveLoadingProperty | |
ShortName | |
ShortNames |
方法
事件
BindingContextChanged |
当 BindingContext 属性的值更改时发生。 (继承自 BindableObject) |
CollectionChanged | |
GroupedCollectionChanged | |
PropertyChanged |
在属性值更改时发生。 (继承自 BindableObject) |
PropertyChanging |
在属性值更改时发生。 (继承自 BindableObject) |
显式接口实现
扩展方法
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈