implement NavigateCommand
This commit is contained in:
@@ -9,8 +9,7 @@ namespace Apollon.WPF.Stores
|
||||
{
|
||||
public class ModalNavigationStore
|
||||
{
|
||||
private ViewModelBase _currentViewModel
|
||||
;
|
||||
private ViewModelBase _currentViewModel;
|
||||
public ViewModelBase CurrentViewModel
|
||||
{
|
||||
get
|
||||
|
||||
28
Apollon.WPF/Stores/NavigationStore.cs
Normal file
28
Apollon.WPF/Stores/NavigationStore.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using Apollon.WPF.ViewModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Apollon.WPF.Stores
|
||||
{
|
||||
public class NavigationStore
|
||||
{
|
||||
private ViewModelBase _currentViewModel;
|
||||
public ViewModelBase CurrentViewModel
|
||||
{
|
||||
get
|
||||
{
|
||||
return _currentViewModel;
|
||||
}
|
||||
set
|
||||
{
|
||||
_currentViewModel = value;
|
||||
CurrentViewModelChanged?.Invoke();
|
||||
}
|
||||
}
|
||||
|
||||
public event Action CurrentViewModelChanged;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user