-
Notifications
You must be signed in to change notification settings - Fork 3.4k
/
NavigationBar.xaml.cs
57 lines (54 loc) · 1.61 KB
/
NavigationBar.xaml.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using MaterialDesign3Demo.Domain;
using MaterialDesignThemes.Wpf;
namespace MaterialDesign3Demo;
/// <summary>
/// Interaction logic for NavigationBar.xaml
/// </summary>
public partial class NavigationBar : UserControl
{
public List<SampleItem> SampleList { get; set; }
public NavigationBar()
{
InitializeComponent();
DataContext = this;
SampleList = new()
{
new SampleItem
{
Title = "Payment",
SelectedIcon = PackIconKind.CreditCard,
UnselectedIcon = PackIconKind.CreditCardOutline,
},
new SampleItem
{
Title = "Home",
SelectedIcon = PackIconKind.Home,
UnselectedIcon = PackIconKind.HomeOutline,
},
new SampleItem
{
Title = "Special",
SelectedIcon = PackIconKind.Star,
UnselectedIcon = PackIconKind.StarOutline,
},
new SampleItem
{
Title = "Shared",
SelectedIcon = PackIconKind.Users,
UnselectedIcon = PackIconKind.UsersOutline,
},
new SampleItem
{
Title = "Files",
SelectedIcon = PackIconKind.Folder,
UnselectedIcon = PackIconKind.FolderOutline,
},
new SampleItem
{
Title = "Library",
SelectedIcon = PackIconKind.Bookshelf,
UnselectedIcon = PackIconKind.Bookshelf,
},
};
}
}