Class ActivationManager<T>
An ActivationManager class.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.Navigation.dll
Syntax
public class ActivationManager<T>
where T : class, IActiveAware
Type Parameters
T
|
Constructors
ActivationManager()
Initializes a new instance of the ActivationManager class.
Declaration
public ActivationManager()
Properties
Active
Gets the current Active item.
Declaration
public T Active { get; }
Property Value
T
|
ShouldAutoActivate
Sets criteria whether an item should be activated from the stack of items, when one is removed.
Declaration
public Func<T, bool> ShouldAutoActivate { get; set; }
Property Value
System.Func<T, System.Boolean>
|
Methods
Activate(T)
Add the item to the active items collection and sets it as an active one.
Declaration
public void Activate(T item)
Parameters
T
item
|
Add(T, Boolean)
Add item to the active items collection. If the isActive is true, it activates the item.
Declaration
public void Add(T item, bool isActive)
Parameters
T
item
|
System.Boolean
isActive
|
Remove(T)
Remove item from the active items collection.
Declaration
public void Remove(T item)
Parameters
T
item
|
Events
ActiveChanged
Occurs when the Active item is changed.
Declaration
public event EventHandler<ActivationChangedEventArgs> ActiveChanged
Event Type
System.EventHandler<ActivationChangedEventArgs>
|