navigation menu & design

This commit is contained in:
Vova
2024-01-21 12:14:48 +02:00
parent 61eb987642
commit 4c374069f2
16 changed files with 207 additions and 86 deletions
+18 -1
View File
@@ -1,4 +1,6 @@
using System.Windows.Controls;
using CommunityToolkit.Mvvm.Input;
using System.Windows.Controls;
using System.Windows.Input;
namespace TV_Player
{
@@ -11,6 +13,15 @@ namespace TV_Player
set => SetProperty(ref _control, value);
}
private bool _isTopPanelVisible;
public bool IsTopPanelVisible{
get => _isTopPanelVisible;
set => SetProperty(ref _isTopPanelVisible, value);
}
public Action ButtonBackAction { get; set; }
public ICommand BackCommand { get; }
public MainViewModel()
{
var vm = new ProgramsGroupViewModel();
@@ -18,6 +29,12 @@ namespace TV_Player
var control = new ProgramsGroupGrid();
control.DataContext = vm;
Control = control;
BackCommand = new RelayCommand(OnButtonBackClick);
}
private void OnButtonBackClick()
{
ButtonBackAction?.Invoke();
}
}
}