public MainWindow() { InitializeComponent(); DataContext = this; SetupWindow(); LoadMainWindow(); NavigateUserCabinet = new NavigateUserCabinetCommand(MainFrame); Logout = new LogoutCommand(loginWindow); Exit = new ExitCommand(); Closing += MainWindow_Closing; ContentRendered += MainWindow_Rendered; }
public MainPageVM(Page previousPage) { NavigateUserCabinet = new NavigateUserCabinetCommand(previousPage); ExecuteLoadBooksCommand(); }