Push Alpha Version
This commit is contained in:
@@ -1,97 +1,190 @@
|
||||
<Window x:Class="UniperHMI.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:mah="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
|
||||
xmlns:local="clr-namespace:UniperHMI" xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
||||
mc:Ignorable="d"
|
||||
x:Name="MainControlWindow"
|
||||
d:DataContext="{d:DesignInstance Type=local:MainWindowVM, IsDesignTimeCreatable=False}"
|
||||
WindowStartupLocation="CenterScreen"
|
||||
Title="Uniper HMI" Height="1030" Width="1900" ResizeMode="NoResize">
|
||||
<Window x:Class="InfineonHMI.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:system="clr-namespace:System;assembly=System.Runtime"
|
||||
xmlns:uniperHmi="clr-namespace:InfineonHMI"
|
||||
mc:Ignorable="d"
|
||||
x:Name="MainControlWindow"
|
||||
d:DataContext="{d:DesignInstance Type=uniperHmi:MainWindowVM}"
|
||||
WindowStartupLocation="CenterScreen"
|
||||
Title="Infineon BiPolar" Height="2100" Width="3820" ResizeMode="NoResize">
|
||||
|
||||
<Grid HorizontalAlignment="Stretch">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"></RowDefinition>
|
||||
<RowDefinition Height="Auto"></RowDefinition>
|
||||
<RowDefinition Height="*"></RowDefinition>
|
||||
<RowDefinition Height="Auto"></RowDefinition>
|
||||
</Grid.RowDefinitions>
|
||||
<Viewbox Stretch="Fill">
|
||||
<Grid Width="3840" Height="2100">
|
||||
|
||||
<!-- Latest event line -->
|
||||
<Grid Grid.Row="0">
|
||||
<Border BorderThickness="0px 0px 0px 2px" BorderBrush="White" Background="Black">
|
||||
<Label Content="{Binding EventsPageVM.CurrentEvent.Message}" FontSize="20" Height="45" VerticalAlignment="Center" HorizontalAlignment="Left" Visibility="{Binding StatusBarVisible}"/>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="0.08*"/>
|
||||
<RowDefinition Height="0.04*"/>
|
||||
<RowDefinition Height="0.04*"/>
|
||||
<RowDefinition Height="0.74*"/>
|
||||
<RowDefinition Height="0.10*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<!-- Header line -->
|
||||
<Grid Grid.Row="0" Margin="10">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid Grid.Column="0">
|
||||
<Grid.Resources>
|
||||
<!--Set x: share to get the latest every time-->
|
||||
<system:DateTime x:Key="DateTime"
|
||||
x:Shared="False" />
|
||||
<Storyboard x:Key="Storyboard">
|
||||
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="DataContext"
|
||||
Duration="0:0:1"
|
||||
RepeatBehavior="Forever"
|
||||
AutoReverse="False">
|
||||
<DiscreteObjectKeyFrame KeyTime="50%"
|
||||
Value="{StaticResource DateTime}" />
|
||||
</ObjectAnimationUsingKeyFrames>
|
||||
</Storyboard>
|
||||
</Grid.Resources>
|
||||
|
||||
<TextBlock Text="{Binding RelativeSource={RelativeSource Self},Path=DataContext.Now,StringFormat={}{0:dd.MM.yyyy}}"
|
||||
DataContext="{StaticResource DateTime}"
|
||||
FontSize="48"
|
||||
Foreground="White">
|
||||
<TextBlock.Triggers>
|
||||
<EventTrigger RoutedEvent="Loaded">
|
||||
<BeginStoryboard Storyboard="{StaticResource Storyboard}" />
|
||||
</EventTrigger>
|
||||
</TextBlock.Triggers>
|
||||
</TextBlock>
|
||||
|
||||
<TextBlock Text="{Binding RelativeSource={RelativeSource Self},Path=DataContext.Now,StringFormat={}{0:hh:mm:ss}}"
|
||||
DataContext="{StaticResource DateTime}"
|
||||
FontSize="48"
|
||||
Margin="0,50,0,0"
|
||||
Foreground="White">
|
||||
|
||||
<TextBlock.Triggers>
|
||||
<EventTrigger RoutedEvent="Loaded">
|
||||
<BeginStoryboard Storyboard="{StaticResource Storyboard}" />
|
||||
</EventTrigger>
|
||||
</TextBlock.Triggers>
|
||||
</TextBlock>
|
||||
</Grid>
|
||||
|
||||
<Button Grid.Column="10"
|
||||
Grid.ColumnSpan="2"
|
||||
Margin="10"
|
||||
FontSize="44"
|
||||
Content="{Binding ActualUser}"
|
||||
Command="{Binding ChangeUserClickedCommand}"/>
|
||||
|
||||
<Button Grid.Column="12"
|
||||
Grid.ColumnSpan="2"
|
||||
Margin="10"
|
||||
FontSize="44"
|
||||
Content="Auswahl
Betriebsart"
|
||||
Command="{Binding WorkingModeSelectionClickedCommand}"/>
|
||||
|
||||
<Label Grid.Column="1"
|
||||
Grid.ColumnSpan="3"
|
||||
Content="BiPolar Randätzer"
|
||||
FontSize="60"
|
||||
VerticalAlignment="Top"/>
|
||||
|
||||
<Label Grid.Column="1"
|
||||
Grid.ColumnSpan="3"
|
||||
Content="V 01.00"
|
||||
FontSize="40"
|
||||
VerticalAlignment="Bottom"/>
|
||||
</Grid>
|
||||
|
||||
<!-- Latest event line -->
|
||||
<Border Grid.Row="1" BorderBrush="White" BorderThickness="0,0,0,2">
|
||||
<Label Content="{Binding EventsPageVM.CurrentEvent.Message}"
|
||||
FontSize="28"
|
||||
VerticalAlignment="Center"/>
|
||||
</Border>
|
||||
|
||||
<!-- Breadcrumb line -->
|
||||
<Label Grid.Row="2"
|
||||
Content="{Binding Breadcrumb}"
|
||||
FontSize="28"/>
|
||||
|
||||
<!-- Page frame -->
|
||||
<Frame x:Name="MainFrame"
|
||||
Grid.Row="3"
|
||||
NavigationUIVisibility="Hidden"
|
||||
Content="{Binding CurrentPage}"/>
|
||||
|
||||
<!-- Softkey grid -->
|
||||
<Grid Grid.Row="4" Margin="20">
|
||||
<Grid >
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<UniformGrid Columns="7" Grid.ColumnSpan="7">
|
||||
<!-- Softkey 1 -->
|
||||
<Button Grid.Column="0" Content="Übersicht" FontSize="38" Margin="10"
|
||||
Command="{Binding OverviewWindowClickedCommand}" />
|
||||
<!-- Command="{Binding AutomaticModeCommand}" -->
|
||||
|
||||
<!-- Softkey 2 -->
|
||||
<Button Grid.Column="0" Content="Stationen" FontSize="38" Margin="10"
|
||||
Command="{Binding ProductionWindowClickedCommand}"/>
|
||||
<!-- Command="{Binding ManualModeCommand}" -->
|
||||
|
||||
<!-- Softkey 3 -->
|
||||
<Button Grid.Column="0" Content="Protokoll" FontSize="38" Margin="10"
|
||||
Command="{Binding ProtocolWindowClickedCommand}" Visibility="Collapsed"/>
|
||||
|
||||
<!-- Softkey 4 -->
|
||||
<Button Grid.Column="0" Content="Rezepte" FontSize="38" Margin="10"
|
||||
Command="{Binding ReceipesWindowClickedCommand}" />
|
||||
<!-- Command="{Binding SettingsWindowCommand}" -->
|
||||
|
||||
<!-- Softkey 5 -->
|
||||
<Button Grid.Column="0" Content="Trend" FontSize="38" Margin="10"
|
||||
Command="{Binding TrendWindowClickedCommand}" Visibility="Collapsed"/>
|
||||
|
||||
<!-- Softkey 6 -->
|
||||
<Button Grid.Column="0" Content="Komponenten" FontSize="38" Margin="10"
|
||||
Command="{Binding ComponentsWindowClickedCommand}" Visibility="Collapsed"/>
|
||||
|
||||
<!-- Softkey 7 -->
|
||||
|
||||
|
||||
<!-- Softkey 8 -->
|
||||
<Button Content="Einstellungen" FontSize="38" Margin="10"
|
||||
Command="{Binding SettingsWindowClickedCommand}" Visibility="Collapsed"/>
|
||||
</UniformGrid>
|
||||
<Button Grid.Column="7" Content="Meldungen" FontSize="38" Margin="10"
|
||||
Command="{Binding EventsListClickedCommand}"/>
|
||||
<!-- Softkey 9 -->
|
||||
<Button Grid.Column="8" Content="Ack Alarms" FontSize="38" Margin="10"
|
||||
Command="{Binding AckAlarmsCommand}"/>
|
||||
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
|
||||
<!-- Breadcrumb line -->
|
||||
<Label Grid.Row="1" Content="{Binding Breadcrumb}"/>
|
||||
|
||||
<!-- Page frame -->
|
||||
<Frame x:Name="MainFrame" NavigationUIVisibility="Hidden" Content="{Binding CurrentPage}" Grid.Row="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" />
|
||||
|
||||
<!-- Softkey grid -->
|
||||
<Grid Grid.Row="3" Margin="5,5,3,5" Width="Auto">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!-- Softkey 1 -->
|
||||
<Button Grid.Column="0" MinWidth="80" MinHeight="{Binding RelativeSource={RelativeSource Self}, Path=ActualWidth}" Margin="0,0,2,0" Content="Automatik" Command="{Binding AutomaticModeClickedCommand}"/>
|
||||
<!-- Command="{Binding AutomaticModeCommand}" -->
|
||||
|
||||
<!-- Softkey 2 -->
|
||||
<Button Grid.Column="1" MinWidth="80" MinHeight="80" Margin="0,0,2,0" Content="Manuell" Command="{Binding ManualModeClickedCommand}" />
|
||||
<!-- Command="{Binding ManualModeCommand}" -->
|
||||
|
||||
<!-- Softkey 3 -->
|
||||
<Button Grid.Column="2" MinWidth="80" MinHeight="80" Margin="0,0,2,0" Content="Einstellungen" Command="{Binding SettingsWindowCommand}" />
|
||||
<!-- Command="{Binding SettingsWindowCommand}" -->
|
||||
|
||||
<!-- Softkey 4 -->
|
||||
<Button Grid.Column="3" MinWidth="80" MinHeight="80" Margin="0,0,2,0" Content="Trayfeeder 
Ein- /Ausgabe" Command="{Binding EventsListClickedCommand}"/>
|
||||
|
||||
<!-- Softkey 5 -->
|
||||
<Button Grid.Column="4" MinWidth="80" MinHeight="80" Margin="0,0,2,0" Content="Heiz-/Kühlplatte" Command="{Binding HotCoolplateClickedCommand}" />
|
||||
|
||||
<!-- Softkey 6 -->
|
||||
<Button Grid.Column="5" MinWidth="80" MinHeight="80" Margin="0,0,2,0" Content="Hochvolt-Test" />
|
||||
|
||||
<!-- Softkey 7 -->
|
||||
<Button Grid.Column="6" MinWidth="80" MinHeight="80" Margin="0,0,2,0" Content="Ätzstationen"/>
|
||||
|
||||
<!-- Softkey 8 -->
|
||||
<Button Grid.Column="7" MinWidth="80" MinHeight="80" Margin="0,0,2,0" Content="Ausrichtstation"/>
|
||||
|
||||
<!-- Softkey 9 -->
|
||||
<Button Grid.Column="8" MinWidth="80" MinHeight="80" Margin="0,0,2,0" Content="NIO"/>
|
||||
|
||||
<!-- Softkey 10 -->
|
||||
<Button Grid.Column="9" MinWidth="80" MinHeight="80" Margin="0,0,2,0" Content="Tellermagazin" Command="{Binding ChuckMagazinClickedCommand}"/>
|
||||
|
||||
<!-- Softkey 11 -->
|
||||
<Button Grid.Column="10" MinWidth="80" MinHeight="80" Margin="0,0,2,0" Content="Kuka-Roboter" Command="{Binding KukaRobotClickedCommand}"/>
|
||||
|
||||
<Button Grid.Column="11" MinWidth="80" MinHeight="80" Margin="0,0,2,0" Content="Medien-Schrank"/>
|
||||
|
||||
<Button Grid.Column="12" Content="Back" Command="{Binding NavigateBackCommand}" IsEnabled="{Binding CanNavigateBack}" MinWidth="80" MinHeight="80" Margin="0,0,2,0" />
|
||||
|
||||
<Button Grid.Column="13" Content="Ack Alarms" Command="{Binding AckAlarmsCommand}" MinWidth="80" MinHeight="80" Margin="0,0,2,0" />
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Viewbox>
|
||||
</Window>
|
||||
|
||||
Reference in New Issue
Block a user