-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
89 lines (86 loc) · 3.87 KB
/
MainWindow.xaml
File metadata and controls
89 lines (86 loc) · 3.87 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<Window x:Class="WindowUI.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
mc:Ignorable="d"
WindowStartupLocation="CenterScreen"
xmlns:samples="clr-namespace:WindowUI.Pages"
Title="智能卡工具箱" Height="800" Width="1000">
<Grid Background="{Binding Properties.Settings.Default.Theme}">
<ui:NavigationView
MinHeight="300"
Margin="0"
IsBackButtonVisible="Auto"
IsPaneToggleVisible="True"
PaneDisplayMode="Left"
Loaded="NavigationView_Loaded"
PaneTitle="">
<ui:NavigationView.AutoSuggestBox>
<ui:AutoSuggestBox Margin="8,0,8,8" PlaceholderText="搜索" />
</ui:NavigationView.AutoSuggestBox>
<ui:NavigationView.MenuItems>
<ui:NavigationViewItem
Content="主页"
Icon="{ui:SymbolIcon Home24}"
TargetPageType="{x:Type samples:Home}" />
<ui:NavigationViewItem
Content="解析"
Icon="{ui:SymbolIcon ArrowSync24}"
TargetPageType="{x:Type samples:制卡数据}" />
<ui:NavigationViewItem
Content="读写"
Icon="{ui:SymbolIcon CalendarEdit24}"
TargetPageType="{x:Type samples:CardRead}" />
</ui:NavigationView.MenuItems>
<ui:NavigationView.FooterMenuItems>
<ui:NavigationViewItem
Content="设置"
Icon="{ui:SymbolIcon Settings24}"
TargetPageType="{x:Type samples:Setting}" />
</ui:NavigationView.FooterMenuItems>
<ui:NavigationView.Header>
<Border
MouseDown="UIElement_OnMouseDown"
Margin="8"
Background="{DynamicResource StripedBackgroundBrush}"
CornerRadius="4">
<StackPanel Orientation="Horizontal">
<TextBlock
x:Name="TitleTextBlock"
Margin="24,24,10,24"
VerticalAlignment="Center"
Foreground="Gray"
FontFamily="kaiti"
FontSize="20"
Text="稍等获取每日一言" />
</StackPanel>
</Border>
</ui:NavigationView.Header>
<ui:NavigationView.PaneHeader>
<Border
Margin="0,0,0,8"
Background="{DynamicResource StripedBackgroundBrush}"
CornerRadius="4">
<Image Source="icon/logo.jpg" />
</Border>
</ui:NavigationView.PaneHeader>
<ui:NavigationView.PaneFooter>
<Border
Margin="0,8,0,0"
Background="{DynamicResource StripedBackgroundBrush}"
CornerRadius="4">
<TextBlock
Margin="20"
FontSize="20"
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontWeight="Medium"
Foreground="{ui:ThemeResource TextFillColorSecondaryBrush}"
x:Name="TimeTextBlock" Text="{Binding CurrentTime}" />
</Border>
</ui:NavigationView.PaneFooter>
</ui:NavigationView>
</Grid>
</Window>