-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
68 lines (55 loc) · 2.02 KB
/
MainWindow.xaml
File metadata and controls
68 lines (55 loc) · 2.02 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
<Window x:Class="VirtualVendingMachine.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:VirtualVendingMachine"
xmlns:views="clr-namespace:VirtualVendingMachine.Views"
mc:Ignorable="d"
Title="Vending Machine"
Height="855"
Width="700"
Background="White"
ResizeMode="NoResize"
KeyDown="Window_KeyDown">
<StackPanel
Margin="25"
Background="Gray"
Orientation="Horizontal">
<StackPanel Width="470">
<views:SlotsView
Width="auto"
Height="auto"
Margin="20 10 5 10"
HorizontalAlignment="Center"
DataContext="{Binding SlotsViewModel}"/>
<TextBlock
Width="264"
VerticalAlignment="Bottom"
FontSize="12"
Foreground="White"
Text="{Binding VendingMachineText}" />
</StackPanel>
<StackPanel Name="KeysListControl"
VerticalAlignment="Center"
Grid.Column="0">
<views:KeyPadView
Width="140"
VerticalAlignment="Center"
DataContext="{Binding KeyPadViewModel}" />
<Button
Width="100"
Height="30"
Margin="0,5"
Command="{Binding SortByNameCommand}"
Content="Sort By Name"
Focusable="False" />
<Button
Width="100"
Height="30"
Command="{Binding SortByTypeCommand}"
Content="Sort By Type"
Focusable="False" />
</StackPanel>
</StackPanel>
</Window>