Avalonia project
This commit is contained in:
30
src/GuiApp/FileTime.Avalonia/Application/AppState.cs
Normal file
30
src/GuiApp/FileTime.Avalonia/Application/AppState.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using FileTime.Core.Components;
|
||||
using MvvmGen;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace FileTime.Avalonia.Application
|
||||
{
|
||||
[ViewModel]
|
||||
public partial class AppState
|
||||
{
|
||||
[Property]
|
||||
[PropertyCallMethod(nameof(TabsChanged))]
|
||||
private List<TabContainer> _tabs = new List<TabContainer>();
|
||||
|
||||
[Property]
|
||||
private TabContainer _selectedTab;
|
||||
|
||||
[Property]
|
||||
private ViewMode _viewMode;
|
||||
|
||||
[Property]
|
||||
private string _rapidTravelText = "";
|
||||
|
||||
private void TabsChanged()
|
||||
{
|
||||
SelectedTab ??= Tabs[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user