29 lines
629 B
C#
29 lines
629 B
C#
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;
|
|
}
|
|
}
|