-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathTableChange.xaml
More file actions
115 lines (107 loc) · 5.04 KB
/
TableChange.xaml
File metadata and controls
115 lines (107 loc) · 5.04 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
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
<Window x:Class="FlamyPOS.TableChange"
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:FlamyPOS"
mc:Ignorable="d"
Title="Flamy POS" WindowState="Maximized" WindowStyle="None">
<Window.Triggers>
<EventTrigger RoutedEvent="Window.Loaded">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Duration="0:0:0.2" Storyboard.TargetProperty="Opacity" From="0" To="1.0"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Window.Triggers>
<Window.Resources>
<Style x:Key="TableButton" TargetType="{x:Type Button}">
<Setter Property="FontSize" Value="20"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="Effect">
<Setter.Value>
<DropShadowEffect BlurRadius="5"
ShadowDepth="8"/>
</Setter.Value>
</Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border x:Name="border"
BorderBrush="Aquamarine"
BorderThickness="3"
Background="#444242"
Width="{TemplateBinding Width}"
Height="{TemplateBinding Height}">
<ContentPresenter HorizontalAlignment="Center"
VerticalAlignment="Center"
Margin="2"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<!--<Setter TargetName="border"
Property="Opacity"
Value="0.8"/>-->
<Setter TargetName="border"
Property="Background"
Value="Black"/>
</Trigger>
<Trigger Property="Button.IsPressed" Value="True">
<Setter TargetName="border"
Property="Opacity"
Value="0.7"/>
</Trigger>
<DataTrigger Binding="{Binding Path=Tag, RelativeSource={RelativeSource Self}}"
Value="True">
<Setter TargetName="border" Property="Background" Value="#6666ff"/>
</DataTrigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Label Content="{Binding Time}"
Background="#5a5782"
Foreground="White"
FontSize="20" MinHeight="35"
VerticalContentAlignment="Center" HorizontalContentAlignment="Center"/>
<Grid Grid.Row="1"
Background="MediumPurple"
MinHeight="20">
</Grid>
<Grid Grid.Row="2">
<GroupBox Grid.Row="2" Foreground="#bfbed3" Background="#bfbed3" BorderBrush="LightCoral" BorderThickness="2" Margin="5" Padding="10">
<GroupBox.Header>
<Border CornerRadius="10" Background="#5a5782" Padding="5">
<Label Content="{Binding PreviousTableName}"
Foreground="White"
FontSize="24"
ContentStringFormat="Previous table chosen: Table {0}"/>
</Border>
</GroupBox.Header>
<Canvas x:Name="TableLayout" Width="1494" Height="647.746">
</Canvas>
</GroupBox>
</Grid>
<UniformGrid Grid.Row="3"
Columns="2"
Background="#5a5782"
Margin="5"
MinHeight="50">
<Button Command="{Binding ReturnCommand}"
Style="{StaticResource blackThemeBtn}"
MinWidth="500"
>Return</Button>
</UniformGrid>
</Grid>
</Window>