-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
61 lines (60 loc) · 3.67 KB
/
MainWindow.xaml
File metadata and controls
61 lines (60 loc) · 3.67 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
<Window x:Class="Coursework1.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:Coursework1" xmlns:view_models="clr-namespace:Coursework1.UI.View_Models" xmlns:view="clr-namespace:Coursework1.UI.View"
mc:Ignorable="d"
WindowStyle="None"
Background="Transparent"
ResizeMode="CanResizeWithGrip"
AllowsTransparency="True"
Title="NBM" Height="450" Width="800" MinHeight="325" MinWidth="450">
<!--Main window and general frame of the app, with the side-menu and the custom Title bar-->
<Window.DataContext>
<view_models:BaseViewModel/>
</Window.DataContext>
<Border Background="#2A2A2C">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="25"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" MaxWidth="200"/>
<ColumnDefinition Width="5*"/>
</Grid.ColumnDefinitions>
<Border Grid.ColumnSpan="2" Background="#1E1E1E" MouseDown="DragBorder">
<Grid HorizontalAlignment="Stretch">
<Label Content="NBM" Foreground="White"
FontWeight="SemiBold" Margin="5 0"/>
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
<Button Width="20" Height="20" Content="–" Background="Transparent"
BorderThickness="0" Foreground="Gray" FontWeight="Bold"
Click="MinimizeWindow"/>
<Button Width="20" Height="20" Content="□" Background="Transparent"
BorderThickness="0" Foreground="Gray" FontWeight="Bold"
Click="MaximizeWindow"/>
<Button Width="20" Height="20" Content="✕" Background="Transparent"
BorderThickness="0" Foreground="Gray" FontWeight="Normal"
Click="CloseWindow"/>
</StackPanel>
</Grid>
</Border>
<Grid Grid.Column="0" Grid.Row="1" Background="#2D2D30">
<StackPanel>
<RadioButton Content="Home" Height="50" Foreground="White" FontSize="14" Command="{Binding HomeCommand}" IsChecked="True"/>
<RadioButton Content="New message" Height="50" Foreground="White" Command="{Binding NewMessageCommand}" FontSize="14"/>
<RadioButton Content="Import messages" Height="50" Foreground="White" Command="{Binding ImportMessagesCommand}" FontSize="14"/>
<RadioButton Content="Read messages" Height="50" Foreground="White" Command="{Binding ReadMessagesCommand}" FontSize="14"/>
<RadioButton Content="Statistics" Height="50" Foreground="White" Command="{Binding StatisticsCommand}" FontSize="14"/>
</StackPanel>
<StackPanel VerticalAlignment="Bottom">
<Button Content="Quit" Height="50" Foreground="White" FontSize="14"
Background="Transparent" VerticalAlignment="Bottom" BorderThickness="0" Click="CloseWindow"/>
</StackPanel>
</Grid>
<ContentControl Content="{Binding ContentControlBinding}" Grid.Column="1" Grid.Row="1" Margin="5 5"/>
</Grid>
</Border>
</Window>