Navigation zwischen views Funktioniert
This commit is contained in:
@@ -6,9 +6,9 @@ using System.Windows.Input;
|
||||
|
||||
namespace DaSaSo.ViewModel.State.Navigation
|
||||
{
|
||||
public class Navigator : INavigator, INotifyPropertyChanged
|
||||
public class Navigator : ObservableObject, INavigator
|
||||
{
|
||||
public event PropertyChangedEventHandler? PropertyChanged;
|
||||
|
||||
private BaseViewModel _currentViewModel;
|
||||
public BaseViewModel CurrentViewModel
|
||||
{
|
||||
@@ -19,17 +19,5 @@ namespace DaSaSo.ViewModel.State.Navigation
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
public ICommand UpdateViewModelCommand { get; set; }
|
||||
|
||||
public Navigator(IViewModelAbstractFactory viewModelFactory)
|
||||
{
|
||||
UpdateViewModelCommand = new UpdateCurrentViewModelCommand(this, viewModelFactory);
|
||||
}
|
||||
|
||||
protected void OnPropertyChanged([CallerMemberName]string propertyName = null)
|
||||
{
|
||||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user