-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
96 lines (67 loc) · 4.08 KB
/
Copy pathMainWindow.xaml
File metadata and controls
96 lines (67 loc) · 4.08 KB
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
<Window x:Class="ProjectsTracker.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:ProjectsTracker"
xmlns:uc="clr-namespace:ProjectsTracker.ui.UserControls"
xmlns:md="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:svgc="http://sharpvectors.codeplex.com/svgc/"
Style="{StaticResource MaterialDesignWindow}"
mc:Ignorable="d"
Title="Projects Tracker"
Height="700"
Width="1200"
MinHeight="700"
MinWidth="1200"
x:Name="AppWindow"
WindowStartupLocation="CenterScreen"
AllowsTransparency="True"
WindowStyle="None"
Background="Transparent">
<Grid>
<!-- Border -->
<Border Background="SeaShell" CornerRadius="20" BorderBrush="CornflowerBlue" BorderThickness="10" />
<!-- Body -->
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="50"/>
<RowDefinition Height="*"/>
<RowDefinition Height="50"/>
</Grid.RowDefinitions>
<!-- Header -->
<Border Background="CornflowerBlue" CornerRadius="20,20,0,0" MouseLeftButtonDown="Drag" />
<!--Image x:Name="_back_icon_" Source="{svgc:SvgImage /icons/back.svg}" Width="20" MouseLeftButtonDown="{Binding Path=NavigateToDashboard}" Cursor="Hand" /-->
<Button x:Name="_home_" Background="WhiteSmoke" HorizontalAlignment="Left" Margin="20,0,0,0" Click="HomeIconClicked">
<md:PackIcon Kind="Home" Foreground="CornflowerBlue" Width="25" Height="25" />
</Button>
<Button x:Name="_back_" Background="WhiteSmoke" HorizontalAlignment="Left" Margin="80,0,0,0" Click="HomeBackClicked">
<md:PackIcon Kind="ArrowBack" Foreground="CornflowerBlue" Width="25" Height="25" />
</Button>
<TextBlock x:Name="_window_title_" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="28" FontWeight="Bold" FontFamily="Arial Black" Foreground="White" MouseLeftButtonDown="Drag" />
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
<Border Width="30" Height="30" Background="#CCFFC107" CornerRadius="20" Margin="0,0,10,0" Cursor="Hand" MouseLeftButtonUp="Minimize">
<Image Source="{svgc:SvgImage /icons/minimize.svg}" Width="20" />
</Border>
<Border Width="30" Height="30" Background="#CC198754" CornerRadius="20" Margin="0,0,10,0" Cursor="Hand" MouseLeftButtonUp="Maximize">
<svgc:SvgViewbox Source="{Binding MaximizeIcon, UpdateSourceTrigger=PropertyChanged}" Width="20" />
</Border>
<Border Width="30" Height="30" Background="#CCDC3545" CornerRadius="20" Margin="0,0,10,0" Cursor="Hand" MouseLeftButtonUp="Close">
<Image Source="{svgc:SvgImage /icons/exit.svg}" Width="20" />
</Border>
</StackPanel>
<!-- Body -->
<ContentControl x:Name="_content_" Grid.Row="1" Content="{Binding Navigation.CurrentView}" />
<!-- Footer -->
<Border Grid.Row="2" Background="CornflowerBlue" CornerRadius="0,0,20,20" />
<Grid Grid.Row="2" Margin="10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" Text="© 2024 Alessio Negri" VerticalAlignment="Center" Foreground="White" FontSize="16" />
<TextBlock Grid.Column="3" Text="Version 1.0.0" VerticalAlignment="Center" HorizontalAlignment="Right" Foreground="White" FontSize="16" />
</Grid>
</Grid>
</Grid>
</Window>