aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.Technician/Views/DispensersView.xaml
blob: 58600df3cfbeb1d1048c4a5c9713c859750281db (plain)
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
<UserControl x:Class="Tango.PPC.Technician.Views.DispensersView"
             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:Tango.PPC.Technician.Views"
             xmlns:controls="clr-namespace:Tango.PPC.Technician.Controls"
             xmlns:sys="clr-namespace:System;assembly=mscorlib"
             xmlns:vm="clr-namespace:Tango.PPC.Technician.ViewModels"
             xmlns:touch="clr-namespace:Tango.Touch.Controls;assembly=Tango.Touch"
             xmlns:global="clr-namespace:Tango.PPC.Technician"
             mc:Ignorable="d" 
             d:DesignHeight="1280" d:DesignWidth="800" d:DataContext="{d:DesignInstance Type=vm:DispensersViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.DispensersViewVM}" x:Name="view">
    <Grid Background="{StaticResource TangoMidBackgroundBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="1*"/>
        </Grid.RowDefinitions>

        <Border Padding="20" Background="{StaticResource TangoPrimaryBackgroundBrush}" BorderThickness="0 0 0 1" BorderBrush="{StaticResource TangoDividerBrush}">
            <Border.Effect>
                <DropShadowEffect Color="Silver" ShadowDepth="0" BlurRadius="20" Opacity="1" />
            </Border.Effect>
            <TextBlock VerticalAlignment="Center" FontSize="{StaticResource TangoHeaderFontSize}" FontWeight="SemiBold">Dispensers</TextBlock>
        </Border>

        <Grid Grid.Row="1">
            <Grid x:Name="container" Margin="0 20 0 0">
                <touch:LightTouchScrollViewer>
                    <ItemsControl ItemsSource="{Binding MachineProvider.Machine.Configuration.NoneEmptyIdsPacks}">
                        <ItemsControl.ItemTemplate>
                            <DataTemplate>
                                <controls:DispenserController Margin="20 10" Height="150" IdsPack="{Binding}" MachineOperator="{Binding ElementName=view,Path=DataContext.MachineProvider.MachineOperator}" />
                            </DataTemplate>
                        </ItemsControl.ItemTemplate>
                    </ItemsControl>
                </touch:LightTouchScrollViewer>
            </Grid>
        </Grid>
    </Grid>
</UserControl>