跳到主要内容

github/tai

公开

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

浏览文件

NavigationItemModel.cs

47 行 · 1.1 KB历史下载
1
2using System;
3using System.Collections.Generic;
4using System.Text;
5using UI.Base.Color;
6using UI.Controls.Base;
7
8namespace UI.Controls.Navigation.Models
9{
10 public class NavigationItemModel
11 {
12 public int ID { get; set; }
13 public string Title { get; set; }
14 /// <summary>
15 /// 未选择时默认图标
16 /// </summary>
17 public IconTypes UnSelectedIcon { get; set; }
18
19 private IconTypes SelectedIcon_ = IconTypes.None;
20 /// <summary>
21 /// 选中后图标
22 /// </summary>
23 public IconTypes SelectedIcon
24 {
25 get
26 {
27
28 if (SelectedIcon_ == IconTypes.None)
29 {
30 return UnSelectedIcon;
31 }
32 else
33 {
34 return SelectedIcon_;
35 }
36 }
37 set
38 {
39 SelectedIcon_ = value;
40 }
41 }
42 public ColorTypes IconColor { get; set; }
43 public string BadgeText { get; set; }
44 public string Uri { get; set; }
45 //public bool IsSelected { get; set; }
46 }
47}