SelectedTreeViewItemChangedEvent

This class provides a push notification to all of the clients subscribers when the selected node in JustDecompile assembly list navigation tree changes.

Syntax

C#
public class SelectedTreeViewItemChangedEvent : CompositePresentationEvent<ITreeViewItem>
{
}

Example

C#
public void OnImportsSatisfied()
{
    this.eventAggregator.GetEvent<SelectedTreeViewItemChangedEvent>().Subscribe(OnTreeViewItemCollectionChangedEvent);
}

private void OnTreeViewItemCollectionChangedEvent(ITreeViewItem selectedTreeItem)
{
    this.selectedTreeItem = selectedTreeItem;
}

The ITreeViewIteminstance provided by the event designates the new selected node in the assembly list navigation tree. By exploring its TreeNodeType property, you can safely cast the instance to one of the following types:

In this article