/// <summary> /// Called when SelectedEntity is changed. /// </summary> /// <param name="o">The dependency object.</param> /// <param name="args">The <see cref="DependencyPropertyChangedEventArgs"/> instance containing the event data.</param> private static void OnSelectedEntityChanged(DependencyObject o, DependencyPropertyChangedEventArgs args) { SilView me = o as SilView; me.UpdateDocumentText(); me.ViewModel.UpdateBreadcrumbs(me.SelectedEntity); me.FireOnEntitySelected(me.SelectedEntity); }
public SilViewHost() { InitializeComponent(); // Create the Sil View. SilView = new SilView(); SilView.OnEntitySelected += SilView_OnEntitySelected; SilView.ShowBreadcrumbsBar = true; // Add it to the WPF element host. elementHost.Child = SilView; }
public void InitialiseView(IDisassemblyProvider disassemblyProvider, DisassemblyTarget disassemblyTarget) { SilView.InitialiseView(disassemblyProvider, disassemblyTarget); }
/// <summary> /// Called when ShowAssemblyTree is changed. /// </summary> /// <param name="o">The dependency object.</param> /// <param name="args">The <see cref="DependencyPropertyChangedEventArgs"/> instance containing the event data.</param> private static void OnShowAssemblyTreeChanged(DependencyObject o, DependencyPropertyChangedEventArgs args) { SilView me = o as SilView; }
/// <summary> /// Called when ShowComments is changed. /// </summary> /// <param name="o">The dependency object.</param> /// <param name="args">The <see cref="DependencyPropertyChangedEventArgs"/> instance containing the event data.</param> private static void OnShowCommentsChanged(DependencyObject o, DependencyPropertyChangedEventArgs args) { SilView me = o as SilView; me.UpdateDocumentText(); }
/// <summary> /// Called when ShowBreadcrumbsBar is changed. /// </summary> /// <param name="o">The dependency object.</param> /// <param name="args">The <see cref="DependencyPropertyChangedEventArgs"/> instance containing the event data.</param> private static void OnShowBreadcrumbsBarChanged(DependencyObject o, DependencyPropertyChangedEventArgs args) { SilView me = o as SilView; }