-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathDataPreset.xaml
85 lines (72 loc) · 2.95 KB
/
DataPreset.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
<UserControl x:Class="IPAM_NOTE.UserPages.DataPreset"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:IPAM_NOTE.UserPages"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
mc:Ignorable="d"
Background="{DynamicResource MaterialDesignDarkBackground}"
Foreground="{DynamicResource MaterialDesignDarkForeground}"
TextElement.FontWeight="Medium"
TextElement.FontSize="14"
FontFamily="SimHei"
d:DesignHeight="768"
d:DesignWidth="1366"
Loaded="DataPreset_OnLoaded"
>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="71"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<materialDesign:Card
Grid.Column="0"
>
<TabControl
x:Name="PresetTabControl"
materialDesign:NavigationRailAssist.ShowSelectionBackground="True"
SnapsToDevicePixels="True"
Style="{StaticResource MaterialDesignNavigationRailTabControl}"
SelectionChanged="PresetTabControl_OnSelectionChanged"
TabStripPlacement="Left">
<TabItem>
<TabItem.Header>
<StackPanel
Width="auto"
Height="auto">
<materialDesign:PackIcon
Width="24"
Height="24"
HorizontalAlignment="Center"
Kind="ImportantDevices" />
<TextBlock
HorizontalAlignment="Center"
Text="型号预设" />
</StackPanel>
</TabItem.Header>
</TabItem>
<TabItem IsEnabled="False">
<TabItem.Header>
<StackPanel
Width="auto"
Height="auto">
<materialDesign:PackIcon
Width="24"
Height="24"
HorizontalAlignment="Center"
Kind="People" />
<TextBlock
HorizontalAlignment="Center"
Text="人员预设" />
</StackPanel>
</TabItem.Header>
</TabItem>
</TabControl>
</materialDesign:Card>
<WrapPanel Grid.Column="1"
x:Name="PresetPanel"
>
</WrapPanel>
</Grid>
</UserControl>