public PackagesControl()
 {
     InitializeComponent();
     _app             = new StudioApplication();
     _eventAggregator = _app.GetService <IStudioEventAggregator>();
 }
 public MyCustomAction()
 {
     _app             = new StudioApplication();
     _eventAggregator = _app.GetService <IStudioEventAggregator>();
 }