TableSectionBase<T> TableSectionBase<T> Class

Definition

Table section that contains instances of type T that are rendered by Xamarin.Forms.

public abstract class TableSectionBase<T> : Xamarin.Forms.TableSectionBase, System.Collections.Generic.ICollection<T>, System.Collections.Generic.IEnumerable<T>, System.Collections.Generic.IList<T>, System.Collections.Specialized.INotifyCollectionChanged where T : BindableObject
type TableSectionBase<'T (requires 'T :> BindableObject)> = class
    inherit TableSectionBase
    interface IList<'T (requires 'T :> BindableObject)>
    interface ICollection<'T (requires 'T :> BindableObject)>
    interface seq<'T (requires 'T :> BindableObject)>
    interface IEnumerable
    interface INotifyCollectionChanged
Type Parameters
T
Inheritance
Derived
Implements

Remarks

Sections are used to group cells in the screen and they are the only valid direct child of the TableRoot. Sections can contain any of the standard Cells, including new TableRoots.

TableRoots embedded in a section are used to navigate to a new deeper level.

Developers can assign a header and a footer either as strings (Header and Footer) properties, or as Views to be shown (HeaderView and FooterView). Internally, this uses the same storage, so only one or the other can obe shown.

Constructors

TableSectionBase<T>() TableSectionBase<T>()

Constructs a new Xamarin.Forms.TableSection`1 instance with an empty title.

TableSectionBase<T>(String) TableSectionBase<T>(String)

Constructs a new Xamarin.Forms.TableSection`1 instance with the specified title.

Properties

BindingContext BindingContext

Gets or sets object that contains the properties that will be targeted by the bound properties that belong to this BindableObject.

(Inherited from BindableObject)
Count Count

Gets the number of items in this TableSectionBase<T> object.

Item[Int32] Item[Int32]

Returns the item that is stored at the location in this TableSectionBase<T> object that is specified by index.

Title Title

Gets or sets the title.

(Inherited from TableSectionBase)

Methods

Add(IEnumerable<T>) Add(IEnumerable<T>)

Adds a list of items to this TableSectionBase<T> object.

Add(T) Add(T)

Adds an item to this TableSectionBase<T> object.

ApplyBindings() ApplyBindings()

Apply the bindings to BindingContext.

(Inherited from BindableObject)
Clear() Clear()

Removes all items in this TableSectionBase<T>.

ClearValue(BindableProperty) ClearValue(BindableProperty)

Clears any value set by Xamarin.Forms.BindableObject.SetValue for property.

(Inherited from BindableObject)
ClearValue(BindablePropertyKey) ClearValue(BindablePropertyKey)

Clears any value set by Xamarin.Forms.BindableObject.SetValue for the property that is identified by propertyKey.

(Inherited from BindableObject)
Contains(T) Contains(T)

Returns a Boolean value that indicates whether or not this TableSectionBase<T> has a reference to a particular object.

CopyTo(T[], Int32) CopyTo(T[], Int32)

Copies the elements of the current collection to an Array, starting at the specified index.

GetEnumerator() GetEnumerator()

Returns an enumerator that iterates through the items in this TableSectionBase<T> object.

GetValue(BindableProperty) GetValue(BindableProperty)

Returns the value that is contained the BindableProperty.

(Inherited from BindableObject)
GetValues(BindableProperty, BindableProperty) GetValues(BindableProperty, BindableProperty)

For internal use by the Xamarin.Forms platform.

(Inherited from BindableObject)
GetValues(BindableProperty, BindableProperty, BindableProperty) GetValues(BindableProperty, BindableProperty, BindableProperty)

For internal use by the Xamarin.Forms platform.

(Inherited from BindableObject)
IndexOf(T) IndexOf(T)

Returns the index of the first occurrence of item in this TableSectionBase<T> object.

Insert(Int32, T) Insert(Int32, T)

Inserts an item into this TableSectionBase<T> object at the specified position.

IsSet(BindableProperty) IsSet(BindableProperty)

Returns true if the target property exists and has been set.

(Inherited from BindableObject)
OnBindingContextChanged() OnBindingContextChanged()

Calls the Xamarin.Forms.BindableObject.SetInheritedBindingContext method, passing the new binding context, on each of the items in this TableSectionBase<T> object.

OnPropertyChanged(String) OnPropertyChanged(String)

Call this method from a child class to notify that a change happened on a property.

(Inherited from BindableObject)
OnPropertyChanging(String) OnPropertyChanging(String)

Call this method from a child class to notify that a change is going to happen on a property.

(Inherited from BindableObject)
Remove(T) Remove(T)

Removes a specified item from this TableSectionBase<T> object.

RemoveAt(Int32) RemoveAt(Int32)

Removes a specified item from this TableSectionBase<T> object at the position that is specified by index.

RemoveBinding(BindableProperty) RemoveBinding(BindableProperty)

Removes a previously set binding.

(Inherited from BindableObject)
SetBinding(BindableProperty, BindingBase) SetBinding(BindableProperty, BindingBase)

Assigns a binding to a property.

(Inherited from BindableObject)
SetValue(BindableProperty, Object) SetValue(BindableProperty, Object)

Sets the value of the specified property.

(Inherited from BindableObject)
SetValue(BindablePropertyKey, Object) SetValue(BindablePropertyKey, Object)

Sets the value of the propertyKey.

(Inherited from BindableObject)
SetValueCore(BindableProperty, Object, SetValueFlags) SetValueCore(BindableProperty, Object, SetValueFlags)

For internal use by the Xamarin.Forms platform.

(Inherited from BindableObject)
UnapplyBindings() UnapplyBindings()

Unapplies all previously set bindings.

(Inherited from BindableObject)

Events

BindingContextChanged BindingContextChanged

Raised whenever the BindingContext property changes.

(Inherited from BindableObject)
CollectionChanged CollectionChanged

Event that is raised when one or more items is added to or removed from this TableSectionBase<T> object.

PropertyChanged PropertyChanged

Raised when a property has changed.

(Inherited from BindableObject)
PropertyChanging PropertyChanging

Raised when a property is about to change.

(Inherited from BindableObject)

Explicit Interface Implementations

ICollection<T>.IsReadOnly ICollection<T>.IsReadOnly

Returns false; The collection of objects in this can be changed.

IDynamicResourceHandler.SetDynamicResource(BindableProperty, String) IDynamicResourceHandler.SetDynamicResource(BindableProperty, String)

For internal use by the Xamarin.Forms platform.

(Inherited from BindableObject)
IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Returns an enumerator that iterates through the collection of objects in this TableSectionBase<T> object.

Extension Methods

SetBinding(BindableObject, BindableProperty, String, BindingMode, IValueConverter, String) SetBinding(BindableObject, BindableProperty, String, BindingMode, IValueConverter, String)

Creates and applies a binding to a property.

SetBinding<TSource>(BindableObject, BindableProperty, Expression<Func<TSource,Object>>, BindingMode, IValueConverter, String) SetBinding<TSource>(BindableObject, BindableProperty, Expression<Func<TSource,Object>>, BindingMode, IValueConverter, String)

Creates and applies a binding from an expression.

GetGroup<TView,TItem>(TItem) GetGroup<TView,TItem>(TItem)

For internal use by platform renderers.

GetGroupHeaderContent<TView,TItem>(TItem) GetGroupHeaderContent<TView,TItem>(TItem)

For internal use by platform renderers.

GetIndex<TView,TItem>(TItem) GetIndex<TView,TItem>(TItem)

For internal use by platform renderers.

GetIsGroupHeader<TView,TItem>(TItem) GetIsGroupHeader<TView,TItem>(TItem)

For internal use by platform renderers.

SetIsGroupHeader<TView,TItem>(TItem, Boolean) SetIsGroupHeader<TView,TItem>(TItem, Boolean)

For internal use by platform renderers.

ForEach<T>(IEnumerable<T>, Action<T>) ForEach<T>(IEnumerable<T>, Action<T>)

For internal use by the Xamarin.Forms platform.

GetGesturesFor<T>(IEnumerable<IGestureRecognizer>, Func<T,Boolean>) GetGesturesFor<T>(IEnumerable<IGestureRecognizer>, Func<T,Boolean>)

For internal use by the Xamarin.Forms platform.

IndexOf<T>(IEnumerable<T>, T) IndexOf<T>(IEnumerable<T>, T)

For internal use by the Xamarin.Forms platform.

IndexOf<T>(IEnumerable<T>, Func<T,Boolean>) IndexOf<T>(IEnumerable<T>, Func<T,Boolean>)

For internal use by the Xamarin.Forms platform.

Prepend<T>(IEnumerable<T>, T) Prepend<T>(IEnumerable<T>, T)

For internal use by the Xamarin.Forms platform.

Add(IList<Setter>, BindableProperty, Object) Add(IList<Setter>, BindableProperty, Object)

Add a Setter with a value to the IList<Setter>

AddBinding(IList<Setter>, BindableProperty, Binding) AddBinding(IList<Setter>, BindableProperty, Binding)

Add a Setter with a Binding to the IList<Setter>

AddDynamicResource(IList<Setter>, BindableProperty, String) AddDynamicResource(IList<Setter>, BindableProperty, String)

Add a Setter with a DynamicResource to the IList<Setter>

LoadFromXaml<TXaml>(TXaml, String) LoadFromXaml<TXaml>(TXaml, String)

Returns an initialized view by loading the specified xaml.

LoadFromXaml<TXaml>(TXaml, Type) LoadFromXaml<TXaml>(TXaml, Type)

Returns a TXaml with the properties that are defined in the application manifest for callingType.

Applies to