-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
86 lines (72 loc) · 2.99 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
<Window x:Class="CarSharing.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:CarSharing"
xmlns:viewModel="clr-namespace:CarSharing.MVVM.ViewModel"
mc:Ignorable="d"
Title="MainWindow" MinHeight="450" MinWidth="840"
Height="600" Width="900"
WindowStartupLocation="CenterScreen">
<!--Background="Transparent"
WindowStyle="None"
AllowsTransparency="True"-->
<Window.DataContext>
<viewModel:MainViewModel/>
</Window.DataContext>
<Border Background="#83c7bd">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="135"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="70"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<TextBlock Text="ДРАЙВИКС"
VerticalAlignment="Center"
HorizontalAlignment="Left"
Foreground="Black"
FontSize="20"
Margin="10,0,10,0"/>
<StackPanel Grid.Row="1" Grid.Column="0">
<RadioButton Content="Главная"
Width="130"
Height="40"
FontSize="19"
Style="{StaticResource MenuButtonTheme}"
IsChecked="True"
Command="{Binding HomeViewCommand}"/>
<RadioButton Content="Машины"
Width="130"
Height="40"
FontSize="19"
Style="{StaticResource MenuButtonTheme}"
Command="{Binding CarsViewCommand}"/>
<RadioButton Content="Данные"
Width="130"
Height="40"
FontSize="19"
Style="{StaticResource MenuButtonTheme}"/>
</StackPanel>
<TextBox Grid.Column="1"
Width="260"
Height="25"
HorizontalAlignment="Left"
Margin="10"
Style="{StaticResource ModernSearch}"/>
<TextBlock Grid.Column="1"
Text="Логин"
Width="70"
Height="25"
FontSize="22"
VerticalAlignment="Center"
HorizontalAlignment="Right"
Margin="10"/>
<ContentControl Grid.Row="1" Grid.Column="1" Margin="10"
Content="{Binding CurrentView}"/>
</Grid>
</Border>
</Window>