Condividi tramite


TemplatedItemsList<TView,TItem> Classe

Definizione

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)

Parametri di tipo

TView
TItem
Ereditarietà
TemplatedItemsList<TView,TItem>
Implementazioni

Campi

NameProperty

Proprietà associabile per Name.

ShortNameProperty

Proprietà associabile per ShortName.

Proprietà

BindingContext

Ottiene o imposta un oggetto contenente le proprietà destinate alle proprietà associate che appartengono a questo BindableObjectoggetto . Si tratta di una proprietà associabile.

(Ereditato da BindableObject)
Count
Dispatcher

Ottiene il dispatcher disponibile quando è stato creato questo oggetto associabile, in caso contrario tenta di trovare il dispatcher più vicino disponibile (probabilmente la finestra/app).

(Ereditato da BindableObject)
GroupDisplayBinding
GroupHeaderTemplate
GroupHeaderTemplateProperty
GroupShortNameBinding
HeaderContent
IsGroupingEnabled
IsGroupingEnabledProperty
Item[Int32]
ItemsSource
Name
Parent
ProgressiveLoadingProperty
ShortName
ShortNames

Metodi

ActivateContent(Int32, Object)
ApplyBindings()

Applica tutte le associazioni correnti a BindingContext.

(Ereditato da BindableObject)
ClearValue(BindableProperty)

Cancella qualsiasi valore impostato in precedenza per una proprietà associabile.

(Ereditato da BindableObject)
ClearValue(BindablePropertyKey)

Cancella qualsiasi valore impostato in precedenza per una proprietà associabile, identificata dalla relativa chiave.

(Ereditato da BindableObject)
CoerceValue(BindableProperty)

Coerces il valore della proprietà associabile specificata. Questa operazione viene eseguita richiamando BindableProperty.CoerceValueDelegate la proprietà associabile specificata.

(Ereditato da BindableObject)
CoerceValue(BindablePropertyKey)

Coerces il valore della proprietà associabile specificata. Questa operazione viene eseguita richiamando BindableProperty.CoerceValueDelegate la proprietà associabile specificata.

(Ereditato da 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)

Restituisce il valore contenuto nella proprietà associabile specificata.

(Ereditato da BindableObject)
IndexOf(TItem)
IsSet(BindableProperty)

Determina se esiste o meno una proprietà associabile e ha un valore impostato.

(Ereditato da BindableObject)
OnBindingContextChanged()

Genera l'evento BindingContextChanged.

(Ereditato da BindableObject)
OnPropertyChanged(String)

Genera l'evento PropertyChanged.

(Ereditato da BindableObject)
OnPropertyChanging(String)

Genera l'evento PropertyChanging.

(Ereditato da BindableObject)
RemoveBinding(BindableProperty)

Rimuove un'associazione impostata in precedenza da una proprietà associabile.

(Ereditato da BindableObject)
SelectDataTemplate(Object)
SetBinding(BindableProperty, BindingBase)

Assegna un'associazione a una proprietà associabile.

(Ereditato da BindableObject)
SetValue(BindableProperty, Object)

Imposta il valore della proprietà associabile specificata.

(Ereditato da BindableObject)
SetValue(BindablePropertyKey, Object)

Imposta il valore della proprietà associabile specificata.

(Ereditato da BindableObject)
UnapplyBindings()

Rimuove tutte le associazioni correnti dal contesto corrente.

(Ereditato da BindableObject)

Eventi

BindingContextChanged

Si verifica quando il valore della proprietà BindingContext cambia.

(Ereditato da BindableObject)
CollectionChanged
GroupedCollectionChanged
PropertyChanged

Generato quando il valore di una proprietà cambia.

(Ereditato da BindableObject)
PropertyChanging

Si verifica quando il valore di una proprietà è in corso di modifica.

(Ereditato da BindableObject)

Implementazioni dell'interfaccia esplicita

ICollection.CopyTo(Array, Int32)
ICollection.IsSynchronized
ICollection.SyncRoot
IDynamicResourceHandler.SetDynamicResource(BindableProperty, String) (Ereditato da 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)

Metodi di estensione

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

Crea un'associazione e la applica a una proprietà.

Si applica a