-
Notifications
You must be signed in to change notification settings - Fork 1
/
HomePage.xaml
54 lines (49 loc) · 2.67 KB
/
HomePage.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
<Window x:Class="ClientBook.HomePage"
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:ClientBook"
mc:Ignorable="d"
Title="HomePage" Width="1152" Height="624"
WindowState="Maximized"
WindowStyle="SingleBorderWindow">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100" />
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height ="60"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2" Height="60" Background="Navy">
<TextBlock Foreground="WhiteSmoke" Height="60" TextAlignment="center" FontSize="40" FontFamily="Microsoft JhengHei">
ClientBook
</TextBlock>
</StackPanel>
<Grid Grid.Column="0" Grid.Row="1" Background="LightGray">
<Grid.RowDefinitions>
<RowDefinition Height="100"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="100"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="100"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Button x:Name="HomeButton" Grid.Row="0" Background="LightGray" Click="Button_Click" BorderThickness="1" >
<Image Margin="10" Source="Resources\HomePage_Icon.png"/>
</Button>
<Button x:Name="SearchButton" Grid.Row="2" Background="LightGray" Click="Search_Cick" HorizontalAlignment="Left" Width="100" BorderThickness="1">
<Image Grid.Row="2" Source="Resources\Search_Icon.png" Margin="15"/>
</Button>
<Button x:Name="AddButton" Grid.Row ="4" Background="lightgray" Click ="Add_Click" HorizontalAlignment="Left" Width="100" BorderThickness="1">
<Image Grid.Row="4" Source="Resources\Add_ClientIcon.png" Margin="10"/>
</Button>
</Grid>
<Frame Name="mainFrame" Grid.Column="1" Grid.Row="1" NavigationUIVisibility="Hidden">
</Frame>
<Separator Background="LightBlue" Grid.ColumnSpan="2" Grid.Column="0" Grid.Row="1" VerticalAlignment="Top" Margin="0" />
<Rectangle HorizontalAlignment="Right" VerticalAlignment="Stretch" Grid.Column="0" Grid.Row=" 1" Grid.RowSpan="2" Fill="DarkCyan" Width="3"/>
</Grid>
</Window>