-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
211 lines (187 loc) · 11.7 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<Window x:Class="Money_Manager.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:Money_Manager"
xmlns:uc="clr-namespace:Money_Manager.User_Controls"
xmlns:icon="http://metro.mahapps.com/winfx/xaml/iconpacks"
Height="600" Width="1000" AllowsTransparency="True" WindowStyle="None"
WindowStartupLocation="CenterScreen" Background="Transparent" >
<Grid MouseDown="DragWindow">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Border Width="180" CornerRadius="15 0 0 15">
<Border.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#a2d2ff" Offset="0"/>
<GradientStop Color="#cae9ff" Offset="1"/>
</LinearGradientBrush>
</Border.Background>
</Border>
<Border Grid.Column="1" CornerRadius="0 15 15 0">
<Border.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="#bbdefb" Offset="0"/>
<GradientStop Color="#e3f2fd" Offset="1"/>
</LinearGradientBrush>
</Border.Background>
</Border>
</Grid>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="320"/>
</Grid.ColumnDefinitions>
<!-- Main menu -->
<StackPanel Width="200">
<StackPanel Orientation="Vertical" Margin="0 30 20 60" HorizontalAlignment="Center">
<Border CornerRadius="50" Background="#443f5e" Width="40" Height="40">
<icon:PackIconMaterial Kind="HandCoin" Height="25" Foreground="#e8f1f2" Margin="0 0 0 0"
VerticalAlignment="Center" HorizontalAlignment="Center" Width="40"/>
</Border>
<TextBlock Text="Money Manager" Foreground="#443f5e" FontSize="18" Margin="10" FontWeight="SemiBold"/>
</StackPanel>
<Button Style="{StaticResource activeMenuButton}" Width="170">
<Grid>
<StackPanel Orientation="Horizontal">
<icon:PackIconMaterial Kind="Finance" Style="{StaticResource menuButtonIcon}"/>
<TextBlock Text="Overview" Style="{StaticResource menuButtonText}" />
</StackPanel>
<icon:PackIconMaterial Kind="ChevronRight" HorizontalAlignment="Right" Visibility="Visible"
Style="{StaticResource buttonIconExpanded}"/>
</Grid>
</Button>
<Button Style="{StaticResource menuButton}">
<StackPanel Orientation="Horizontal">
<icon:PackIconMaterial Kind="SwapHorizontal" Style="{StaticResource menuButtonIcon}"/>
<TextBlock Text="Transactions" Style="{StaticResource menuButtonText}" />
</StackPanel>
</Button>
<Button Style="{StaticResource menuButton}">
<StackPanel Orientation="Horizontal">
<icon:PackIconMaterial Kind="CashPlus" Style="{StaticResource menuButtonIcon}"/>
<TextBlock Text="Savings" Style="{StaticResource menuButtonText}" />
</StackPanel>
</Button>
<Button Style="{StaticResource menuButton}">
<StackPanel Orientation="Horizontal">
<icon:PackIconMaterial Kind="Cogs" Style="{StaticResource menuButtonIcon}"/>
<TextBlock Text="Settings" Style="{StaticResource menuButtonText}" />
</StackPanel>
</Button>
<Separator Background="#9894b0" Width="100" Margin="0 10 20 0 ">
</Separator>
<Button Style="{StaticResource menuButton}" Click="ExitButtonClick">
<StackPanel Orientation="Horizontal">
<icon:PackIconMaterial Kind="ExitToApp" Style="{StaticResource menuButtonIcon}"/>
<TextBlock Text="Exit" Style="{StaticResource menuButtonText}"/>
</StackPanel>
</Button>
</StackPanel>
<Grid Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="80" />
<RowDefinition Height="100" />
<RowDefinition Height="60" />
<RowDefinition Height="*" />
<RowDefinition Height="90" />
</Grid.RowDefinitions>
<!-- Info cards section -->
<Border Grid.ColumnSpan="3" HorizontalAlignment="Left" Margin="10 30 0 10" Background="#cae9ff" Padding="20 0 20 0" CornerRadius="10"
BorderThickness="1" BorderBrush="#a2d2ff">
<TextBlock Text="Hello, Alexander!" Margin="0 3 0 3" Style="{StaticResource titleText}" />
</Border>
<uc:InfoCard Grid.Row="1" Grid.Column="0" Title="Income This Month" Amount="€1749,92" Image="\Images\income.png" Margin="10 0 5 0"
Background1="#f9f9f9" Background2="#ffafcc" />
<uc:InfoCard Grid.Row="1" Grid.Column="1" Title="Expenses This Month" Amount="€1735,78" Image="\Images\expense.png" Margin="5 0 5 0"
Background1="#f9f9f9" Background2="#a2d2ff"/>
<uc:InfoCard Grid.Row="1" Grid.Column="2" Title="Savings This Month" Amount="€0,00" Image="\Images\savings.png" Margin="5 0 1 0"
Background1="#f9f9f9" Background2="#cdb4db"/>
<!-- Expense pie chart -->
<Border Grid.Row="2" Grid.ColumnSpan="3" Grid.RowSpan="3" CornerRadius="10" BorderThickness="1" BorderBrush="#a2d2ff"
Background="Transparent" Margin="10 20 0 20 "/>
<TextBlock Grid.Row="2" Text="Expenses" Style="{StaticResource titleText}"
VerticalAlignment="Bottom" Margin="30 0 0 0"/>
<uc:PieChart Grid.Row="3" Grid.ColumnSpan="3" Margin="0 0 10 0"/>
<Rectangle Grid.Row="4" Grid.ColumnSpan="3" VerticalAlignment="Top" Height="2"
Margin="30 0 20 0">
<Rectangle.Fill>
<LinearGradientBrush>
<GradientStop Color="#d489ff" Offset="0"/>
<GradientStop Color="#7985ff" Offset="0.5"/>
<GradientStop Color="#6ad8fd" Offset="1"/>
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
<uc:ExpenseInfo Grid.Row="4" Grid.Column="0" Title="Daily" Amount="€57,86"/>
<uc:ExpenseInfo Grid.Row="4" Grid.Column="1" Title="Weekly" Amount="€433,95"/>
<uc:ExpenseInfo Grid.Row="4" Grid.Column="2" Title="Monthly" Amount="€1735,78"/>
</Grid>
<!-- Account balance Line chart -->
<StackPanel Grid.Column="2" Orientation="Vertical" Margin="20">
<Border Height="250" CornerRadius="10" Background="Transparent" Margin="0 0 0 10"
VerticalAlignment="Bottom" BorderThickness="1" BorderBrush="#a2d2ff">
<Grid Margin="20 5 5 5">
<TextBlock Text="Account Balance" Style="{StaticResource titleText}" VerticalAlignment="Top"
Margin="0 10 10 10"/>
<uc:LineChart/>
</Grid>
</Border>
<!-- Transactions sections -->
<Border CornerRadius="10" Background="Transparent" Height="300">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="44" />
<RowDefinition Height="43" />
<RowDefinition Height="43" />
<RowDefinition Height="43" />
<RowDefinition Height="43" />
<RowDefinition Height="43" />
</Grid.RowDefinitions>
<TextBlock Text="Last Transactions" Style="{StaticResource titleText}" Foreground="#443f5e" Margin="20 0 0 0"/>
<StackPanel Grid.Row="1" Orientation="Horizontal">
<Border CornerRadius="5" Background="Transparent" Margin="20 5 10 5">
<Image Source="/Images/kaufland.png" Width="30" Height="30" HorizontalAlignment="Left"/>
</Border>
<uc:Transaction Title="Kaufland" Date="01.06.2023" Amount="-58,51" Foreground1="#e65050"/>
</StackPanel>
<StackPanel Grid.Row="2" Orientation="Horizontal">
<Border CornerRadius="5" Background="Transparent" Margin="20 5 10 5">
<Image Source="/Images/vodafone.png" Width="30" Height="30" HorizontalAlignment="Left"/>
</Border>
<uc:Transaction Title="Vodafone" Date="31.05.2023" Amount="-41,57" Foreground1="#e65050"/>
</StackPanel>
<StackPanel Grid.Row="3" Orientation="Horizontal">
<Border CornerRadius="5" Background="Transparent" Margin="20 5 10 5">
<Image Source="/Images/spotify.png" Width="30" Height="30" HorizontalAlignment="Left"/>
</Border>
<uc:Transaction Title="Spotify" Date="22.05.2023" Amount="-4,99" Foreground1="#e65050" />
</StackPanel>
<StackPanel Grid.Row="4" Orientation="Horizontal">
<Border CornerRadius="5" Background="Transparent" Margin="20 5 10 5">
<Image Source="/Images/allianz.png" Width="30" Height="30" HorizontalAlignment="Left"/>
</Border>
<uc:Transaction Title="Allianz Versicherung" Date="22.05.2023" Amount="-39,55" Foreground1="#e65050"/>
</StackPanel>
<StackPanel Grid.Row="5" Orientation="Horizontal">
<Border CornerRadius="5" Background="Transparent" Margin="20 5 10 5">
<Image Source="/Images/haspa.png" Width="30" Height="30" HorizontalAlignment="Left"/>
</Border>
<uc:Transaction Title="Bargeldeinzahlung" Date="20.05.2023" Amount="+200,00" Foreground1="#34d96b"/>
</StackPanel>
</Grid>
</Border>
</StackPanel>
</Grid>
</Grid>
</Window>