跳到主要内容

github/tai

公开

Tai · Windows 软件与网站使用时长统计。上游 Planshit/Tai 的源码镜像,非灵栈原创;MIT 许可。来源:https://github.com/Planshit/Tai 。本次为手动同步,暂不提供安装包。

浏览文件

MainWindowModel.cs

99 行 · 3.1 KB历史下载
1using System;
2using System.Collections.Generic;
3using System.Collections.ObjectModel;
4using System.Linq;
5using System.Text;
6using System.Threading.Tasks;
7using UI.Controls;
8using UI.Controls.Base;
9using UI.Controls.Navigation.Models;
10using UI.Controls.Window;
11
12namespace UI.Models
13{
14 public class MainWindowModel : UINotifyPropertyChanged
15 {
16 private IServiceProvider ServiceProvider_;
17 public IServiceProvider ServiceProvider
18 {
19 get { return ServiceProvider_; }
20 set { ServiceProvider_ = value; OnPropertyChanged(); }
21 }
22
23 private string Uri_;
24 public string Uri
25 {
26 get { return Uri_; }
27 set { Uri_ = value; OnPropertyChanged(); }
28 }
29
30 private object Data_;
31 /// <summary>
32 /// 页面传递数据
33 /// </summary>
34 public object Data
35 {
36 get { return Data_; }
37 set { Data_ = value; OnPropertyChanged(); }
38 }
39
40 public ObservableCollection<NavigationItemModel> Items { get; set; }
41
42 private double NavigationWidth_ = 220;
43 public double NavigationWidth
44 {
45 get { return NavigationWidth_; }
46 set { NavigationWidth_ = value; OnPropertyChanged(); }
47 }
48
49 private bool IsShowNavigation_ = true;
50 public bool IsShowNavigation
51 {
52 get { return IsShowNavigation_; }
53 set { IsShowNavigation_ = value; OnPropertyChanged(); }
54 }
55
56 private string Title_;
57 public string Title
58 {
59 get { return Title_; }
60 set { Title_ = value; OnPropertyChanged(); }
61 }
62 private bool IsShowTitleBar_ = false;
63 public bool IsShowTitleBar
64 {
65 get { return IsShowTitleBar_; }
66 set { IsShowTitleBar_ = value; OnPropertyChanged(); }
67 }
68
69
70 private NavigationItemModel NavSelectedItem_;
71 public NavigationItemModel NavSelectedItem
72 {
73 get { return NavSelectedItem_; }
74 set { NavSelectedItem_ = value; OnPropertyChanged(); }
75 }
76
77 private PageContainer PageContainer_;
78 public PageContainer PageContainer { get { return PageContainer_; } set { PageContainer_ = value; OnPropertyChanged(); } }
79
80 private List<string> IndexUriList_;
81 public List<string> IndexUriList { get { return IndexUriList_; } set { IndexUriList_ = value; OnPropertyChanged(); } }
82
83
84 private string ToastContent_;
85 public string ToastContent { get { return ToastContent_; } set { ToastContent_ = value; OnPropertyChanged(); } }
86
87 private bool IsShowToast_ = false;
88 public bool IsShowToast { get { return IsShowToast_; } set { IsShowToast_ = value; OnPropertyChanged(); } }
89 private IconTypes ToastIcon_;
90 public IconTypes ToastIcon { get { return ToastIcon_; } set { ToastIcon_ = value; OnPropertyChanged(); } }
91
92 private ToastType ToastType_;
93 public ToastType ToastType
94 {
95 get { return ToastType_; }
96 set { ToastType_ = value; OnPropertyChanged(); }
97 }
98 }
99}