NavigationDockViewModel.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using Avalonia.Media;
  2. using PixiEditor.AvaloniaUI.Helpers.Converters;
  3. using PixiEditor.AvaloniaUI.ViewModels.Document;
  4. using PixiEditor.AvaloniaUI.ViewModels.SubViewModels;
  5. using PixiEditor.Extensions.Common.Localization;
  6. using PixiEditor.UI.Common.Fonts;
  7. namespace PixiEditor.AvaloniaUI.ViewModels.Dock;
  8. internal class NavigationDockViewModel : DockableViewModel
  9. {
  10. public const string TabId = "Navigator";
  11. public override string Id => TabId;
  12. public override string Title => new LocalizedString("NAVIGATION_TITLE");
  13. public override bool CanFloat => true;
  14. public override bool CanClose => true;
  15. private ColorsViewModel colorsSubViewModel;
  16. public ColorsViewModel ColorsSubViewModel
  17. {
  18. get => colorsSubViewModel;
  19. set => SetProperty(ref colorsSubViewModel, value);
  20. }
  21. private DocumentManagerViewModel documentManagerSubViewModel;
  22. public DocumentManagerViewModel DocumentManagerSubViewModel
  23. {
  24. get => documentManagerSubViewModel;
  25. set => SetProperty(ref documentManagerSubViewModel, value);
  26. }
  27. public NavigationDockViewModel(ColorsViewModel colorsSubViewModel, DocumentManagerViewModel documentManagerViewModel)
  28. {
  29. ColorsSubViewModel = colorsSubViewModel;
  30. DocumentManagerSubViewModel = documentManagerViewModel;
  31. TabCustomizationSettings.Icon = PixiPerfectIcons.ToIconControl(PixiPerfectIcons.Compass);
  32. }
  33. }