using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Media.Imaging; using Tango.Core; using Tango.Core.Commands; namespace Tango.FSE.Common.Navigation { public class NavigationMenuItem : ExtendedObject { private Action _pressAction; public String Name { get; set; } public String Description { get; set; } public BitmapSource Image { get; set; } public bool IsVisible { get; set; } public bool IsEnabled { get; set; } public RelayCommand PressCommand { get; set; } public int Index { get; set; } public NavigationMenuItem(Action pressAction) { IsVisible = true; IsEnabled = true; _pressAction = pressAction; PressCommand = new RelayCommand(() => { _pressAction?.Invoke(); }); } } }