Index: Core/Plugins/src/Core.Plugins.OxyPlot/Legend/LegendController.cs =================================================================== diff -u -r0d7895f07d2c1b15457ffdc8e8762780a5837030 -r4af57ec0ebbdb753668d1f7096c373672a38563f --- Core/Plugins/src/Core.Plugins.OxyPlot/Legend/LegendController.cs (.../LegendController.cs) (revision 0d7895f07d2c1b15457ffdc8e8762780a5837030) +++ Core/Plugins/src/Core.Plugins.OxyPlot/Legend/LegendController.cs (.../LegendController.cs) (revision 4af57ec0ebbdb753668d1f7096c373672a38563f) @@ -35,6 +35,8 @@ private readonly IToolViewController toolViewController; private IView legendView; + public EventHandler OnOpenLegend; + /// /// Creates a new instance of . /// @@ -79,6 +81,10 @@ { legendView = new LegendView(); toolViewController.OpenToolView(legendView); + if (OnOpenLegend != null) + { + OnOpenLegend(this, EventArgs.Empty); + } } /// Index: Core/Plugins/src/Core.Plugins.OxyPlot/OxyPlotGuiPlugin.cs =================================================================== diff -u -r0d7895f07d2c1b15457ffdc8e8762780a5837030 -r4af57ec0ebbdb753668d1f7096c373672a38563f --- Core/Plugins/src/Core.Plugins.OxyPlot/OxyPlotGuiPlugin.cs (.../OxyPlotGuiPlugin.cs) (revision 0d7895f07d2c1b15457ffdc8e8762780a5837030) +++ Core/Plugins/src/Core.Plugins.OxyPlot/OxyPlotGuiPlugin.cs (.../OxyPlotGuiPlugin.cs) (revision 4af57ec0ebbdb753668d1f7096c373672a38563f) @@ -85,9 +85,10 @@ /// The to use for the controller /// . /// A new instance. - private static LegendController CreateLegendController(IToolViewController toolViewController) + private LegendController CreateLegendController(IToolViewController toolViewController) { var controller = new LegendController(toolViewController); + controller.OnOpenLegend += (s,e) => UpdateComponentsForActiveView(); return controller; }