-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathAddDeviceWindow.xaml
138 lines (112 loc) · 4.84 KB
/
AddDeviceWindow.xaml
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<Window x:Class="IPAM_NOTE.AddDeviceWindow"
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:local="clr-namespace:IPAM_NOTE"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
Background="{DynamicResource MaterialDesignDarkBackground}"
Foreground="{DynamicResource MaterialDesignDarkForeground}"
TextElement.FontWeight="Medium"
TextElement.FontSize="16"
FontFamily="SimHei"
ResizeMode="NoResize"
mc:Ignorable="d"
Title="设备信息卡"
Style="{DynamicResource MaterialDesignWindow}"
Height="600"
Width="980"
WindowStartupLocation="CenterScreen"
Closing="AddDeviceWindow_OnClosing"
Loaded="AddDeviceWindow_OnLoaded"
>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="71"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<materialDesign:Card
Grid.Column="0"
Visibility="Collapsed"
Grid.Row="0"
materialDesign:ElevationAssist.Elevation="Dp5"
Background="{StaticResource MaterialDesignDarkBackground}"
>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackPanel
ZIndex="1"
Grid.Row="0"
Orientation="Vertical"
Margin="0">
<TabControl
SelectionChanged="TopControl_OnSelectionChanged"
x:Name="TopControl"
Style="{StaticResource MaterialDesignNavigationRailTabControl}">
<TabItem>
<TabItem.Header>
<StackPanel
Width="auto"
Height="auto">
<materialDesign:PackIcon
Width="32"
Height="32"
HorizontalAlignment="Center"
Kind="Switch" />
<TextBlock
HorizontalAlignment="Center"
Text="网络设备" />
</StackPanel>
</TabItem.Header>
</TabItem>
<TabItem
>
<TabItem.Header>
<StackPanel
Width="auto"
Height="auto">
<materialDesign:PackIcon
Width="32"
Height="32"
HorizontalAlignment="Center"
Kind="ServerOutline" />
<TextBlock
HorizontalAlignment="Center"
Text="计算设备" />
</StackPanel>
</TabItem.Header>
</TabItem>
<TabItem
IsEnabled="False"
IsSelected="False"
>
<TabItem.Header>
<StackPanel
Width="auto"
Height="auto">
<materialDesign:PackIcon
Width="32"
Height="32"
HorizontalAlignment="Center"
Kind="BookmarkBoxMultipleOutline" />
<!--<TextBlock
HorizontalAlignment="Center"
Text="地址收藏" />-->
</StackPanel>
</TabItem.Header>
</TabItem>
</TabControl>
</StackPanel>
</Grid>
</materialDesign:Card>
<StackPanel
Margin="5"
x:Name="DevicePanel"
Grid.ColumnSpan="2"
Grid.Column="0">
</StackPanel>
</Grid>
</Window>