-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml
217 lines (200 loc) · 13.1 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
212
213
214
215
216
217
<Window x:Class="ST10092081POEBudgetApp.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:ST10092081POEBudgetApp"
xmlns:viewModel="clr-namespace:ST10092081POEBudgetApp.MVM.ViewModel"
mc:Ignorable="d"
Title="MainWindow"
Height="600" Width="920"
WindowStyle="None"
Icon="/Images/Man.png"
ResizeMode="NoResize"
Background="Transparent"
AllowsTransparency="True"
WindowStartupLocation="CenterScreen">
<Window.Resources>
<Style x:Key="FocusVisual">
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate>
<Rectangle Margin="2" StrokeDashArray="12" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" SnapsToDevicePixels="true" StrokeThickness="1"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<SolidColorBrush x:Key="Button.Static.Background" Color="#FFDDDDDD"/>
<SolidColorBrush x:Key="Button.Static.Border" Color="#FF2B427A"/>
<SolidColorBrush x:Key="Button.MouseOver.Background" Color="#FFBEE6FD"/>
<SolidColorBrush x:Key="Button.MouseOver.Border" Color="#FF3C7FB1"/>
<SolidColorBrush x:Key="Button.Pressed.Background" Color="#FFC4E5F6"/>
<SolidColorBrush x:Key="Button.Pressed.Border" Color="#FF2C628B"/>
<SolidColorBrush x:Key="Button.Disabled.Background" Color="#FFF4F4F4"/>
<SolidColorBrush x:Key="Button.Disabled.Border" Color="#FFADB2B5"/>
<SolidColorBrush x:Key="Button.Disabled.Foreground" Color="#FF838383"/>
<Style x:Key="ExitBottunStyle" TargetType="{x:Type Button}">
<Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
<Setter Property="Background" Value="{StaticResource Button.Static.Background}"/>
<Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border}"/>
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Padding" Value="1"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border x:Name="border" CornerRadius="25" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true">
<ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsDefaulted" Value="true">
<Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
</Trigger>
<Trigger Property="IsMouseOver" Value="true">
<Setter Property="Background" TargetName="border" Value="#FFFF6868"/>
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.MouseOver.Border}"/>
</Trigger>
<Trigger Property="IsPressed" Value="true">
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.Pressed.Background}"/>
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Pressed.Border}"/>
</Trigger>
<Trigger Property="IsEnabled" Value="false">
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.Disabled.Background}"/>
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Disabled.Border}"/>
<Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
<Window.DataContext>
<viewModel:MainViewModel/>
</Window.DataContext>
<Border Background="#FF255685"
CornerRadius="20">
<Grid >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="200"/>
<ColumnDefinition Width="691*"/>
<ColumnDefinition Width="17*"/>
<ColumnDefinition Width="13*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="75"/>
<RowDefinition/>
</Grid.RowDefinitions>
<StackPanel Background="Transparent" Grid.Row="1" >
<RadioButton Name="btnMenu"
Content="Menu"
Height="50"
Foreground="#FFB2D9FF"
FontSize="20"
Style="{StaticResource MenuButtonTheme}"
IsChecked="True"
Command="{Binding MenuViewCommand}"/>
<RadioButton Name="btnRentProperty"
Content="Rent Property"
Height="50"
Foreground="#FFB2D9FF"
FontSize="20"
Style="{StaticResource MenuButtonTheme}"
Command="{Binding RentPropertyViewCommand}"/>
<RadioButton Name="btnHomeLoan"
Content="Home Loan"
Height="50"
Foreground="#FFB2D9FF"
FontSize="20"
Style="{StaticResource MenuButtonTheme}"
Command="{Binding HomeLoanViewCommand}"/>
<RadioButton Name="btnVehiclePurchase"
Content="Vehicle Purchase"
Height="50"
Foreground="#FFB2D9FF"
FontSize="20"
Style="{StaticResource MenuButtonTheme}"
Command="{Binding VehiclePurchaseViewCommand}"/>
<RadioButton Name="btnSavings"
Content="Savings"
Height="50"
Foreground="#FFB2D9FF"
FontSize="20"
Style="{StaticResource MenuButtonTheme}"
Command="{Binding SavingsViewCommand}">
</RadioButton>
</StackPanel>
<ContentControl Grid.Row="1"
Grid.Column="1"
Content="{Binding CurrentView}" Grid.ColumnSpan="3"/>
<Border CornerRadius="20 0 0 0" Background="#FF131C4F">
<TextBlock Text="BUDGET APPLICATION"
VerticalAlignment="Top"
HorizontalAlignment="Center"
Foreground="#FFB2D9FF"
FontSize="14"
FontFamily="/Fonts/#AbrilFatface-Regular"
FontWeight="ExtraBold" Margin="0,48,0,0" Grid.Row="0" Width="159"/>
</Border>
<Border Background="#FF131C4F" CornerRadius="0 20 0 0" Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="3">
</Border>
<Image HorizontalAlignment="Center" Height="49" VerticalAlignment="Top" Width="48" Source="/Images/Man.png" Grid.Row="0"/>
<Image HorizontalAlignment="Left" Height="29" Margin="15,10,0,0" Grid.Row="1" VerticalAlignment="Top" Width="31" Source="/Images/icons8-menu-96.png"/>
<Image HorizontalAlignment="Left" Height="30" Margin="12,57,0,0" Grid.Row="1" VerticalAlignment="Top" Width="32" Source="/Images/icons8-building-with-rooftop-terrace-96.png"/>
<Image HorizontalAlignment="Left" Height="29" Margin="16,111,0,0" Grid.Row="1" VerticalAlignment="Top" Width="28" Source="/Images/icons8-rent-96.png"/>
<Image HorizontalAlignment="Left" Height="31" Margin="16,158,0,0" Grid.Row="1" VerticalAlignment="Top" Width="29" Source="/Images/icons8-car-96 (1).png"/>
<Image HorizontalAlignment="Left" Height="36" Margin="12,207,0,0" Grid.Row="1" VerticalAlignment="Top" Width="36" Source="/Images/icons8-accounting-96.png"/>
<Button Style="{StaticResource ExitBottunStyle}" Grid.Column="1" FontSize="28" FontWeight="Bold" BorderThickness="0" Background="#FF62677E" HorizontalAlignment="Left" Margin="680,16,0,0" VerticalAlignment="Top" Width="22" Height="22" Click="Button_Click" RenderTransformOrigin="1.237,0.525" Foreground="White" Grid.ColumnSpan="2" ToolTipService.ShowDuration="9000">
<Button.ToolTip>
<ToolTip >
<StackPanel>
<TextBlock Text="Exit Application!" HorizontalAlignment="Center"/>
</StackPanel>
</ToolTip>
</Button.ToolTip>
</Button>
<Label Grid.Column="1" Foreground="#FFB2D9FF" Content="Student Number: " FontWeight="Bold" HorizontalAlignment="Left" Margin="10,38,0,0" VerticalAlignment="Top" Width="108"/>
<Label Grid.Column="1" Foreground="#FFB2D9FF" Content="Name: " FontWeight="Bold" HorizontalAlignment="Left" Margin="10,6,0,0" VerticalAlignment="Top" Width="47"/>
<Label Grid.Column="1" Foreground="#FFB2D9FF" Content="Gross Monthly Income: " FontWeight="Bold" HorizontalAlignment="Left" Margin="322,39,0,0" VerticalAlignment="Top" Width="140" Height="26"/>
<Label Name="lblStudentName" Grid.Column="1" Content="XXXXXXXXX" Foreground="#FFB2D9FF" FontWeight="Bold" HorizontalAlignment="Left" Margin="57,6,0,0" VerticalAlignment="Top" Width="198" Height="26" ToolTipService.ShowDuration="9000">
<Label.ToolTip>
<ToolTip>
<StackPanel>
<TextBlock Text="Name and Surname." HorizontalAlignment="Center"/>
</StackPanel>
</ToolTip>
</Label.ToolTip>
</Label>
<Label Name="lblStudentNumber" Grid.Column="1" Content="XXXXXXXXX" Foreground="#FFB2D9FF" FontWeight="Bold" HorizontalAlignment="Left" Margin="118,38,0,0" VerticalAlignment="Top" Width="197" Height="26" ToolTipService.ShowDuration="9000">
<Label.ToolTip>
<ToolTip>
<StackPanel>
<TextBlock Text="Student Number." HorizontalAlignment="Center"/>
</StackPanel>
</ToolTip>
</Label.ToolTip>
</Label>
<Label Name="lblGrossMonthlyIncome" Grid.Column="1" Content="XXXXXXXXX" Foreground="#FFB2D9FF" FontWeight="Bold" HorizontalAlignment="Left" Margin="498,39,0,0" VerticalAlignment="Top" Width="161" Height="26" ToolTipService.ShowDuration="9000">
<Label.ToolTip>
<ToolTip>
<StackPanel>
<TextBlock Text="Gross Monthly Income." HorizontalAlignment="Center"/>
</StackPanel>
</ToolTip>
</Label.ToolTip>
</Label>
<Label Grid.Column="1" Foreground="#FFB2D9FF" Content="Available Monlthy Income: " FontWeight="Bold" HorizontalAlignment="Left" Margin="322,8,0,0" VerticalAlignment="Top" Width="164" Height="26"/>
<Label x:Name="lblAvailableMonthlyIncome" Grid.Column="1" Content="XXXXXXXXX" Foreground="#FFB2D9FF" FontWeight="Bold" HorizontalAlignment="Left" Margin="498,8,0,0" VerticalAlignment="Top" Width="161" Height="26" ToolTipService.ShowDuration="9000">
<Label.ToolTip>
<ToolTip>
<StackPanel>
<TextBlock Text="Available Monlthy Income." HorizontalAlignment="Center"/>
</StackPanel>
</ToolTip>
</Label.ToolTip>
</Label>
</Grid>
</Border>
</Window>