Show / Hide Table of Contents

Class TemplatableCollection<T>

A class to template BindableObject.

Inheritance
Object
TemplatableCollectionList<TemplatedItem<T>>
TemplatableCollection<T>
Implements
ICollection<T>
Inherited Members
TemplatableCollectionList<TemplatedItem<T>>.GetList()
TemplatableCollectionList<TemplatedItem<T>>.ClearList()
TemplatableCollectionList<TemplatedItem<T>>.InsertListRange(Int32, IEnumerable<TemplatedItem<T>>)
TemplatableCollectionList<TemplatedItem<T>>.MoveListRange(Int32, Int32, Int32)
TemplatableCollectionList<TemplatedItem<T>>.RemoveListRange(Int32, Int32)
TemplatableCollectionList<TemplatedItem<T>>.ReplaceListRange(Int32, Int32, IEnumerable<TemplatedItem<T>>)
Namespace: Mux.Markup
Assembly: Mux.Markup.dll
Syntax
public abstract class TemplatableCollection<T> : TemplatableCollectionList<TemplatedItem<T>>, ICollection<T> where T : BindableObject
Type Parameters
Name Description
T

The type of templated objects.

Remarks

Interfaces TemplatableCollection<T> provides are available only when templating is not performed.

Constructors

| Improve this Doc View Source

TemplatableCollection(BindableObject)

Declaration
public TemplatableCollection(BindableObject container)
Parameters
Type Name Description
BindableObject container

A BindableObject that owns this instance.

Fields

| Improve this Doc View Source

container

A BindableObject that owns this instance.

Declaration
protected readonly BindableObject container
Field Value
Type Description
BindableObject

Properties

| Improve this Doc View Source

Count

Declaration
public int Count { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

IsReadOnly

Declaration
public bool IsReadOnly { get; }
Property Value
Type Description
Boolean

Methods

| Improve this Doc View Source

Add(T)

Declaration
public void Add(T content)
Parameters
Type Name Description
T content
| Improve this Doc View Source

ChangeSource(IEnumerable)

Changes the source list of items to template.

Declaration
public void ChangeSource(IEnumerable source)
Parameters
Type Name Description
IEnumerable source

The new source list of items to template.

| Improve this Doc View Source

ChangeTemplate(DataTemplate)

Changes the template.

Declaration
public void ChangeTemplate(DataTemplate template)
Parameters
Type Name Description
DataTemplate template

The new template.

| Improve this Doc View Source

Clear()

Declaration
public void Clear()
| Improve this Doc View Source

Contains(T)

Declaration
public bool Contains(T content)
Parameters
Type Name Description
T content
Returns
Type Description
Boolean
| Improve this Doc View Source

CopyTo(T[], Int32)

Declaration
public void CopyTo(T[] destination, int index)
Parameters
Type Name Description
T[] destination
Int32 index
| Improve this Doc View Source

Remove(T)

Declaration
public bool Remove(T content)
Parameters
Type Name Description
T content
Returns
Type Description
Boolean

Implements

ICollection<>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX