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
zoomboxZoombox
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
indexintThe zero-based index at which
itemshould be inserted.viewZoomboxView
Exceptions
- ArgumentOutOfRangeException
<code class="paramref">index</code> is less than zero.-or-
indexis greater than Count.
ReceiveWeakEvent(Type, object, EventArgs)
Receives events from the centralized event manager.
public bool ReceiveWeakEvent(Type managerType, object sender, EventArgs e)
Parameters
managerTypeTypeThe type of the WeakEventManager calling this method.
senderobjectObject that originated the event.
eEventArgsEvent 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
indexintThe zero-based index of the element to remove.
Exceptions
- ArgumentOutOfRangeException
<code class="paramref">index</code> is less than zero.-or-
indexis 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
indexintThe zero-based index of the element to replace.
viewZoomboxView
Exceptions
- ArgumentOutOfRangeException
<code class="paramref">index</code> is less than zero.-or-
indexis greater than Count.