-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml
73 lines (64 loc) · 3.6 KB
/
MainWindow.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
<Window x:Class="DuckWalk.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:local="clr-namespace:DuckWalk"
xmlns:wpf="clr-namespace:CefSharp.Wpf;assembly=CefSharp.Wpf"
mc:Ignorable="d"
Title="DuckWalk" Height="450" Width="800" Icon="/Images/icons8-duck-16.png">
<Grid Background="{DynamicResource wbBackground}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="12*"/>
<ColumnDefinition Width="135*"/>
<ColumnDefinition Width="13*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="25"/>
<RowDefinition Height="30"/>
<RowDefinition />
</Grid.RowDefinitions>
<!-- Top Menu-->
<Menu Height="25" VerticalAlignment="Center" Background="{DynamicResource wbBackground}" ItemContainerStyle="{StaticResource wbMenu}" Grid.ColumnSpan="3">
<MenuItem Header="File" ItemContainerStyle="{StaticResource wbSubMenu}" Background="#FF1F1F1F">
<MenuItem x:Name="newTabMenuItem" Header="New Tab" Click="newTabMenuItem_Click"/>
<Separator/>
<MenuItem x:Name="settingMenuItem" Header="Settings" Click="settingMenuItem_Click" />
</MenuItem>
</Menu>
<!-- Address Bar -->
<Grid Grid.Row="1" Grid.ColumnSpan="3">
<Grid.ColumnDefinitions>
<ColumnDefinition MinWidth="300" />
<ColumnDefinition Width="3*"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<!-- Buttons -->
<StackPanel Orientation="Horizontal">
<Button x:Name="bkBack" Width="32" Margin="0,0,10,0" BorderThickness="0" Padding="1,1" Background="{x:Null}" Click="bkBack_Click">
<Viewbox Height="24" Width="24">
<Image Source="/Images/icons8-back-40.png"/>
</Viewbox>
</Button>
<Button x:Name="bkForward" Width="32" BorderThickness="0" Click="bkForward_Click" Background="{x:Null}">
<Viewbox Height="24" Width="24">
<Image Source="/Images/icons8-forward-40.png"/>
</Viewbox>
</Button>
</StackPanel>
<Button x:Name="bkRefresh" Width="32" Margin="0,0,10,0" BorderThickness="0" HorizontalAlignment="Right" Click="bkRefresh_Click" Background="{x:Null}">
<Viewbox Height="24" Width="24">
<Image Source="/Images/icons8-refresh-40.png"/>
</Viewbox>
</Button>
<!-- Address Bar -->
<TextBox x:Name="AddressBar" Grid.Column="1" Height="25" VerticalAlignment="Top" TextWrapping="NoWrap" KeyDown="AddressBar_KeyDown" FontFamily="Bahnschrift" FontSize="14"/>
<Image x:Name="RatingImage" Grid.Column="2" HorizontalAlignment="Left" Height="24" Margin="0,0,0,0" VerticalAlignment="Top" Width="33" Source="/Images/icons8-question-mark-48.png" />
</Grid>
<!-- Tab Control -->
<TabControl x:Name="tabControl" Grid.Row="2" BorderThickness="0" SelectionChanged="wbTabControl_SelectionChanged" Padding="0" Grid.ColumnSpan="3">
<TabItem x:Name="LandingTabItem" Header="Welcome" Loaded="TabItem_Loaded" BorderThickness="0">
</TabItem>
</TabControl>
</Grid>
</Window>