New to Telerik UI for WPFStart a free 30-day trial

An ActivationManager class.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Navigation.dll

Type Parameters:

T

Syntax:

C#
public class ActivationManager<T> where T : class, IActiveAware

Inheritance: objectActivationManager<T>

Constructors

Initializes a new instance of the ActivationManager class.

C#
public ActivationManager()

Properties

Gets the current Active item.

C#
public T Active { get; }

Sets criteria whether an item should be activated from the stack of items, when one is removed.

C#
public Func<T, bool> ShouldAutoActivate { get; set; }

Methods

Add the item to the active items collection and sets it as an active one.

C#
public void Activate(T item)
Parameters:itemT

Add item to the active items collection. If the isActive is true, it activates the item.

C#
public void Add(T item, bool isActive)
Parameters:itemTisActivebool

Remove item from the active items collection.

C#
public void Remove(T item)
Parameters:itemT

Events

Occurs when the Active item is changed.

C#
public event EventHandler<ActivationChangedEventArgs> ActiveChanged