Commit 848c6e30 authored by Ian Slater's avatar Ian Slater
Browse files

added wpf for tickets

parent 70929979
......@@ -5,8 +5,15 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:PointOfSale"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>
<local:OrderControl/>
Title="MainWindow" Height="570" Width="1000">
<Grid RenderTransformOrigin="0.568,0.499">
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition Width="300"/>
</Grid.ColumnDefinitions>
<local:OrderControl Height="420" Grid.Column="0" Margin="0,84,0,0" />
<local:OrderSummaryControl Grid.Column="1"/>
</Grid>
</Window>
......@@ -34,5 +34,10 @@ namespace PointOfSale
{
}
private void OrderControl_Loaded_1(object sender, RoutedEventArgs e)
{
}
}
}
......@@ -5,10 +5,18 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:PointOfSale"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
d:DesignHeight="420" d:DesignWidth="700">
<UserControl.Resources>
<Style TargetType="Button">
<Setter Property="Height" Value="50"/>
<Setter Property="Height" Value="45"/>
<Setter Property="Width" Value="200"/>
<Setter Property="Margin" Value="4"/>
<Setter Property = "FontSize" Value = "23" />
</Style>
<Style TargetType="TextBlock">
<Setter Property="Margin" Value="5"/>
<Setter Property = "FontSize" Value = "25" />
</Style>
</UserControl.Resources>
<Grid>
......@@ -16,7 +24,6 @@
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<StackPanel>
<TextBlock TextAlignment="Center">Enrees</TextBlock>
......@@ -46,12 +53,8 @@
<Button Name="TexasTeaButton" Click="TexasTeaButton_Click">Texas Tea</Button>
<Button Name="WaterButton" Click="WaterButton_Click">Water</Button>
</StackPanel>
<ListBox Width="0" Name="ticket"/>
<StackPanel Grid.Column="3">
<TextBlock TextAlignment="Center">Ticket</TextBlock>
<ListBox Name="ticket"/>
</StackPanel>
</Grid>
......
<UserControl x:Class="PointOfSale.OrderSummaryControl"
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:PointOfSale"
mc:Ignorable="d"
d:DesignHeight="570" d:DesignWidth="300">
<Grid>
<Separator HorizontalAlignment="Center" Margin="0,500,0,0" VerticalAlignment="Top" Height="1" RenderTransformOrigin="0.5,0.5" Width="300">
<Separator.RenderTransform>
<TransformGroup>
<ScaleTransform ScaleY="-1"/>
<SkewTransform/>
<RotateTransform/>
<TranslateTransform/>
</TransformGroup>
</Separator.RenderTransform>
</Separator>
<TextBlock Name="SubtotalTextBox" HorizontalAlignment="Right" Margin="0,515,10,0" FontSize="20" TextWrapping="Wrap" VerticalAlignment="Top" Height="45" Width="84">100.60</TextBlock>
<TextBlock HorizontalAlignment="Left" Margin="10,515,0,0" FontSize="20" TextWrapping="Wrap" VerticalAlignment="Top" Height="45" Width="90">Subtotal</TextBlock>
<TextBlock Name="TicketTextBox" HorizontalAlignment="Center" Margin="0,25,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="463" Width="280">
</TextBlock>
<TextBlock HorizontalAlignment="Left" Margin="10,-2,0,0" Text="Ticket" FontSize="20" TextWrapping="Wrap" VerticalAlignment="Top" Width="70"/>
<ScrollBar HorizontalAlignment="Left" Margin="273,38,0,0" VerticalAlignment="Top" Height="439"/>
</Grid>
</UserControl>
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace PointOfSale
{
/// <summary>
/// Interaction logic for OrderSummaryControl.xaml
/// </summary>
public partial class OrderSummaryControl : UserControl
{
public OrderSummaryControl()
{
InitializeComponent();
}
private void ScrollBar_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
{
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment