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:
IAssemblyDefinitionTreeViewItem: Implemented by assembly node in the assembly list navigation tree.
IAssemblyModuleDefinitionTreeViewItem: Implemented by assembly module node in the assembly list navigation tree.
IAssemblyReferenceTreeViewItem: Implemented by assembly reference node in the assembly list navigation tree.
INamespaceTreeViewItem: Implemented by namespace node in the assembly list navigation tree.
ITypeDefinitionTreeViewItem: Implemented by type node in the assembly list navigation tree.
IBaseTypeDefinitionTreeViewItem: Implemented by base type node in the assembly list navigation tree.
IInheritTypeDefinitionTreeViewItem: Implemented by inherited type node in the assembly list navigation tree.
IResourceTreeViewItem: Implemented by resource node in the assembly list navigation tree.
IPropertyDefinitionTreeViewItem: Implemented by property node in the assembly list navigation tree.
IMethodDefinitionTreeViewItem: Implemented by method node in the assembly list navigation tree.
IFieldDefinitionTreeViewItem: Implemented by field node in the assembly list navigation tree.
IEventDefinitionTreeViewItem: Implemented by event node in the assembly list navigation tree.
IXapTreeViewItem: Implemented by Silverlight XAP node in the assembly list navigation tree.