-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathTableButton.xaml
More file actions
39 lines (39 loc) · 1.8 KB
/
TableButton.xaml
File metadata and controls
39 lines (39 loc) · 1.8 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
<UserControl x:Class="FlamyPOS.TableButton"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:FlamyPOS"
mc:Ignorable="d"
d:DesignHeight="75" d:DesignWidth="75">
<Grid>
<Rectangle x:Name="rect" Stroke="MediumAquamarine" StrokeThickness="3">
<Rectangle.Style>
<Style TargetType="{x:Type Rectangle}">
<Setter Property="Effect">
<Setter.Value>
<DropShadowEffect BlurRadius="5"
ShadowDepth="8"/>
</Setter.Value>
</Setter>
<Setter Property="Fill" Value="#444242"/>
<Style.Triggers>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=Tag}" Value="IsTaken">
<Setter Property="Fill" Value="#6666ff"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Rectangle.Style>
<Rectangle.ContextMenu>
<ContextMenu>
<MenuItem Header="Delete" Click="MenuItem_Delete_Click"/>
</ContextMenu>
</Rectangle.ContextMenu>
</Rectangle>
<TextBlock Name="TableNameTextBlock"
Foreground="White"
FontSize="24"
VerticalAlignment="Center"
HorizontalAlignment="Center"/>
</Grid>
</UserControl>