public MainViewModel() { RSSListFrameViewModel = new RSSListFrameViewModel(); RSSContentFrameViewModel = new RSSContentFrameViewModel(); _actions = new MainWindowActions(); _actions.RSSListFrameViewModel = RSSListFrameViewModel; OpenAddFeedDialogCommand = new RelayCommand(_actions.OpenAddFeedDialogAction); MoveWindowCommand = new RelayCommand <object>(_actions.MoveWindowAction); DoubleClickCommand = new RelayCommand <object>(_actions.DoubleClickAction); }
public MainViewModel() { RSSListFrameViewModel = new RSSListFrameViewModel(); RSSContentFrameViewModel = new RSSContentFrameViewModel(); _actions = new MainWindowActions(); _actions.RSSListFrameViewModel = RSSListFrameViewModel; OpenAddFeedDialogCommand = new RelayCommand(_actions.OpenAddFeedDialogAction); MoveWindowCommand = new RelayCommand<object>(_actions.MoveWindowAction); DoubleClickCommand = new RelayCommand<object>(_actions.DoubleClickAction); Messenger.Default.Register<RSSListFrame_ListItemViewModelMsg>(this, true, m => { IsLeftDrawerOpen = false; }); }