Поделиться через


TemplatedItemsList<TView,TItem> Класс

Определение

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
Наследование
TemplatedItemsList<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

Методы

ActivateContent(Int32, Object)
ApplyBindings()

Применяет все текущие привязки к BindingContext.

(Унаследовано от BindableObject)
ClearValue(BindableProperty)

Очищает все значения, ранее заданные для привязываемого свойства.

(Унаследовано от BindableObject)
ClearValue(BindablePropertyKey)

Очищает все значения, ранее заданные для привязываемого свойства, идентифицируемые его ключом.

(Унаследовано от BindableObject)
CoerceValue(BindableProperty)

Вызывает значение указанного привязываемого свойства. Это делается путем вызова BindableProperty.CoerceValueDelegate указанного привязываемого свойства.

(Унаследовано от BindableObject)
CoerceValue(BindablePropertyKey)

Вызывает значение указанного привязываемого свойства. Это делается путем вызова BindableProperty.CoerceValueDelegate указанного привязываемого свойства.

(Унаследовано от BindableObject)
CreateContent(Int32, Object, Boolean)
Dispose()
GetDescendantCount()
GetEnumerator()
GetGlobalIndexForGroup(ITemplatedItemsList<TItem>)
GetGlobalIndexOfGroup(Object)
GetGlobalIndexOfItem(Object)
GetGlobalIndexOfItem(Object, Object)
GetGroupAndIndexOfItem(Object)
GetGroupAndIndexOfItem(Object, Object)
GetGroupIndexFromGlobal(Int32, Int32)
GetValue(BindableProperty)

Возвращает значение, содержащееся в заданном привязываемом свойстве.

(Унаследовано от BindableObject)
IndexOf(TItem)
IsSet(BindableProperty)

Определяет, существует ли привязываемое свойство и имеет ли значение задано.

(Унаследовано от BindableObject)
OnBindingContextChanged()

Вызывает событие BindingContextChanged.

(Унаследовано от BindableObject)
OnPropertyChanged(String)

Вызывает событие PropertyChanged.

(Унаследовано от BindableObject)
OnPropertyChanging(String)

Вызывает событие PropertyChanging.

(Унаследовано от BindableObject)
RemoveBinding(BindableProperty)

Удаляет ранее заданную привязку из привязываемого свойства.

(Унаследовано от BindableObject)
SelectDataTemplate(Object)
SetBinding(BindableProperty, BindingBase)

Назначает привязку привязываемому свойству.

(Унаследовано от BindableObject)
SetValue(BindableProperty, Object)

Задает значение указанного привязываемого свойства.

(Унаследовано от BindableObject)
SetValue(BindablePropertyKey, Object)

Задает значение указанного привязываемого свойства.

(Унаследовано от BindableObject)
UnapplyBindings()

Удаляет все текущие привязки из текущего контекста.

(Унаследовано от BindableObject)

События

BindingContextChanged

Происходит при изменении значения свойства BindingContext.

(Унаследовано от BindableObject)
CollectionChanged
GroupedCollectionChanged
PropertyChanged

Возникает при смене значения свойства.

(Унаследовано от BindableObject)
PropertyChanging

Происходит при изменении значения свойства.

(Унаследовано от BindableObject)

Явные реализации интерфейса

ICollection.CopyTo(Array, Int32)
ICollection.IsSynchronized
ICollection.SyncRoot
IDynamicResourceHandler.SetDynamicResource(BindableProperty, String) (Унаследовано от BindableObject)
IEnumerable.GetEnumerator()
IList.Add(Object)
IList.Clear()
IList.Contains(Object)
IList.IndexOf(Object)
IList.Insert(Int32, Object)
IList.IsFixedSize
IList.IsReadOnly
IList.Item[Int32]
IList.Remove(Object)
IList.RemoveAt(Int32)
ITemplatedItemsList<TItem>.BindingContext
ITemplatedItemsList<TItem>.GetGroup(Int32)
ITemplatedItemsList<TItem>.GroupedCollectionChanged
ITemplatedItemsList<TItem>.ListProxy
ITemplatedItemsList<TItem>.PropertyChanged
ITemplatedItemsList<TItem>.UpdateContent(TItem, Int32)
ITemplatedItemsList<TItem>.UpdateHeader(TItem, Int32)

Методы расширения

GetPropertyIfSet<T>(BindableObject, BindableProperty, T)
SetAppTheme<T>(BindableObject, BindableProperty, T, T)
SetAppThemeColor(BindableObject, BindableProperty, Color, Color)
SetBinding(BindableObject, BindableProperty, String, BindingMode, IValueConverter, String)

Создает и применяет привязку к свойству.

Применяется к