Table of Contents

Class ZoomboxViewStack

Namespace
H.Controls.ZoomBox
Assembly
H.Controls.ZoomBox.dll
public sealed class ZoomboxViewStack : Collection<ZoomboxView>, IList<ZoomboxView>, ICollection<ZoomboxView>, IReadOnlyList<ZoomboxView>, IReadOnlyCollection<ZoomboxView>, IEnumerable<ZoomboxView>, IList, ICollection, IEnumerable, IWeakEventListener
Inheritance
ZoomboxViewStack
Implements
Inherited Members
Extension Methods

Constructors

ZoomboxViewStack(Zoombox)

public ZoomboxViewStack(Zoombox zoombox)

Parameters

zoombox Zoombox

Properties

SelectedView

public ZoomboxView SelectedView { get; }

Property Value

ZoomboxView

Methods

ClearItems()

Removes all elements from the Collection<T>.

protected override void ClearItems()

InsertItem(int, ZoomboxView)

Inserts an element into the Collection<T> at the specified index.

protected override void InsertItem(int index, ZoomboxView view)

Parameters

index int

The zero-based index at which item should be inserted.

view ZoomboxView

Exceptions

ArgumentOutOfRangeException
   <code class="paramref">index</code> is less than zero.  

-or-

index is greater than Count.

ReceiveWeakEvent(Type, object, EventArgs)

Receives events from the centralized event manager.

public bool ReceiveWeakEvent(Type managerType, object sender, EventArgs e)

Parameters

managerType Type

The type of the WeakEventManager calling this method.

sender object

Object that originated the event.

e EventArgs

Event data.

Returns

bool

true if the listener handled the event. It is considered an error by the WeakEventManager handling in WPF to register a listener for an event that the listener does not handle. Regardless, the method should return false if it receives an event that it does not recognize or handle.

RemoveItem(int)

Removes the element at the specified index of the Collection<T>.

protected override void RemoveItem(int index)

Parameters

index int

The zero-based index of the element to remove.

Exceptions

ArgumentOutOfRangeException
   <code class="paramref">index</code> is less than zero.  

-or-

index is equal to or greater than Count.

SetItem(int, ZoomboxView)

Replaces the element at the specified index.

protected override void SetItem(int index, ZoomboxView view)

Parameters

index int

The zero-based index of the element to replace.

view ZoomboxView

Exceptions

ArgumentOutOfRangeException
   <code class="paramref">index</code> is less than zero.  

-or-

index is greater than Count.