-
Notifications
You must be signed in to change notification settings - Fork 0
/
CustomerWindow.xaml
97 lines (85 loc) · 3.97 KB
/
CustomerWindow.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
<Window x:Class="SE104_N10_QuanLySieuThi.CustomerWindow"
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:SE104_N10_QuanLySieuThi"
mc:Ignorable="d"
Title="MainWindow"
Name="mainWindow"
xmlns:uc="clr-namespace:SE104_N10_QuanLySieuThi.usercontrols"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
TextElement.FontWeight="Regular"
TextElement.FontSize="13"
TextOptions.TextFormattingMode="Ideal"
TextOptions.TextRenderingMode="Auto"
Background="{DynamicResource MaterialDesignPaper}"
FontFamily="{DynamicResource MaterialDesignFont}"
Height="750"
Width="1400"
ResizeMode="NoResize"
WindowStyle="None"
WindowStartupLocation="CenterScreen"
DataContext="{StaticResource MainVMForCustomer}"
>
<i:Interaction.Triggers>
<i:EventTrigger EventName="Loaded">
<i:InvokeCommandAction Command="{Binding LoadedWindowCmd}"
CommandParameter="{Binding ElementName=mainWindow}" />
</i:EventTrigger>
</i:Interaction.Triggers>
<Grid x:Name="grMain">
<Grid.RowDefinitions>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Grid Grid.Row="0">
<uc:ucControlBar></uc:ucControlBar>
</Grid>
<Grid Grid.Row="1">
<materialDesign:Card>
<TabControl x:Name="mainTab"
materialDesign:ColorZoneAssist.Mode="PrimaryMid"
TabStripPlacement="Top">
<TabItem>
<TabItem.Header>
<StackPanel Width="auto"
Height="auto">
<materialDesign:PackIcon Width="24"
Height="24"
HorizontalAlignment="Center"
Kind="AccountBoxOutline" />
<TextBlock HorizontalAlignment="Center"
Text="Customer" />
</StackPanel>
</TabItem.Header>
<Frame Content="{Binding pageCustomer}"
Width="1350"
Height="620"
>
</Frame>
</TabItem>
<TabItem>
<TabItem.Header>
<StackPanel Width="auto"
Height="auto">
<materialDesign:PackIcon Width="24"
Height="24"
HorizontalAlignment="Center"
Kind="Import" />
<TextBlock HorizontalAlignment="Center"
Text="Log out" />
</StackPanel>
</TabItem.Header>
<Frame Content="{Binding pageLogout}"
Width="1350"
Height="620">
</Frame>
</TabItem>
</TabControl>
</materialDesign:Card>
</Grid>
</Grid>
</Window>