191 lines
8.1 KiB
XML
191 lines
8.1 KiB
XML
<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">
|
|
|
|
<Viewbox Stretch="Fill">
|
|
<Grid Width="3840" Height="2100">
|
|
|
|
<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>
|
|
</Viewbox>
|
|
</Window>
|