Maintains the child-page hierarchy for a page, which is used by the NavigationView.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadPageViewSubPageCollection : DisposableObject, IDisposable, IList, ICollection, IEnumerable
Inheritance: objectDisposableObjectRadPageViewSubPageCollection
Implements:
Inherited Members
Constructors
Creates a child-page collection for the specified owner page.
public RadPageViewSubPageCollection(RadPageViewPage owner)
The page that owns the child pages.
Properties
public bool IsFixedSize { get; }
Implements:
public bool IsReadOnly { get; }
Implements:
public bool IsSynchronized { get; }
Implements:
Gets the RadPageViewPage instance that this collection is associated with.
public RadPageViewPage Owner { get; }
Gets the child page at the specified zero-based index; replacing a child through the indexer is not supported.
public RadPageViewPage this[int index] { get; set; }
The zero-based child-page index.
Exceptions: InvalidOperationExceptionThe indexer setter is used.
Methods
Adds a page under this owner, detaching it from any previous parent and rejecting self-parenting or a direct two-page cycle. If the owner is already in a view, the child is also added to that view unless the view's PageAdding event cancels the addition.
Removes all child pages and clears their OwnerPage references.
public void Clear()
Implements:
Determines whether this collection contains the specified child page.
public bool Contains(RadPageViewPage item)
The page to locate.
Returns:Copies the child pages into a typed array starting at the specified destination index.
public void CopyTo(RadPageViewPage[] array, int arrayIndex)
The destination array.
arrayIndexintThe zero-based destination index at which copying begins.
Enumerates the child pages in their current hierarchy order.
public IEnumerator<RadPageViewPage> GetEnumerator()
IEnumerator<RadPageViewPage>
An enumerator over the child pages.
Gets the zero-based position of a child page in this collection.
public int IndexOf(RadPageViewPage item)
The page to locate.
Returns:The page index, or -1 if it is not present.
Inserts a page at the specified position, detaching it from any previous parent and rejecting self-parenting or a direct two-page cycle. If the owner is already in a view, the child is also added to that view unless the view's PageAdding event cancels the addition.
public void Insert(int index, RadPageViewPage item)
The zero-based insertion position.
itemRadPageViewPageThe page to insert as a child.
Notifies the owner page and subscribers when the child-page collection changes.
protected virtual void OnChildPagesCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
The collection that changed.
eNotifyCollectionChangedEventArgsThe collection-change details.
Removes the supplied page from this child-page collection.
Removes a child page and clears its OwnerPage reference.
public bool Remove(RadPageViewPage item)
The page to remove.
Returns:true if the page was present in this collection; otherwise, false.
Removes the child page at the specified index and clears its owner-page reference.
public void RemoveAt(int index)
The zero-based index of the child page to remove.
Implements:
Events
Occurs when an item is added, removed, changed, moved, or the entire list is refreshed.
public event NotifyCollectionChangedEventHandler CollectionChanged