public MenuView() { this.InitializeComponent(); this._viewModel = (MenuViewModel)this.DataContext; this._viewModel.CommandOpenMain = new ButtonCommandOpenMain(this._viewModel); this._viewModel.CommandOpenSetup = new ButtonCommandOpenSetup(this._viewModel); EventBusManager.Register <MenuView, BaseMessage>(this.BaseMessageEvent); this._viewModel.ViewOpened = EventBusManager.GetViewOpened(0); }