Class ZoomboxViewStack
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
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
intThe 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
TypeThe type of the WeakEventManager calling this method.
sender
objectObject that originated the event.
e
EventArgsEvent 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
intThe 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
intThe 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.