diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2024-05-27 15:02:11 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2024-05-27 15:02:11 +0300 |
| commit | d7a39774fcbdab671c1e4796ba78a3ae29e75b77 (patch) | |
| tree | 88e7bf083d6a041a7d392dd6947d4bbc90166777 /Software/Visual_Studio/PPC/Tango.PPC.UI/Views | |
| parent | 5b634129f69b00f6df777a3e5e5203977d71062a (diff) | |
| download | Tango-d7a39774fcbdab671c1e4796ba78a3ae29e75b77.tar.gz Tango-d7a39774fcbdab671c1e4796ba78a3ae29e75b77.zip | |
Changed X4 Dryer Air Behavior.
Updated events table to rev 13.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Views')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineStatusView.xaml | 43 |
1 files changed, 41 insertions, 2 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineStatusView.xaml b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineStatusView.xaml index ada513879..60584bc15 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineStatusView.xaml +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineStatusView.xaml @@ -1084,7 +1084,7 @@ <SolidColorBrush Color="{Binding DryerZone3.Color}"/> </Run.Foreground> </Run> - <Run Text="{Binding DryerZone3.DisplayMaxValue}" ></Run> + <Run Text="{Binding DryerZone3.DisplayMaxValue}"></Run> </TextBlock> <TextBlock VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="0 0 0 20" FontSize="{StaticResource TangoDefaultFontSize}" >ºC</TextBlock> @@ -1099,7 +1099,46 @@ <SolidColorBrush Color="{Binding DryerAir.Color}"/> </touch:TouchArcProgress.Foreground> </touch:TouchArcProgress> - <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="{StaticResource TangoDefaultFontSize}" FontWeight="SemiBold" Text="{Binding DryerAir.DisplayValue}"> + + <ContentControl Content="{Binding DryerAir}"> + <ContentControl.Style> + <Style TargetType="ContentControl"> + <Setter Property="ContentTemplate"> + <Setter.Value> + <DataTemplate> + <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="{StaticResource TangoDefaultFontSize}" FontWeight="Bold" > + <Run Text="{Binding DisplayValue}"> + <Run.Foreground> + <SolidColorBrush Color="{Binding Color}"/> + </Run.Foreground> + </Run> + <Run>/</Run> + <Run Text="{Binding DisplayMaxValue}"></Run> + </TextBlock> + </DataTemplate> + </Setter.Value> + </Setter> + <Style.Triggers> + <DataTrigger Binding="{Binding DryerAir.IsReady}" Value="True"> + <Setter Property="ContentTemplate"> + <Setter.Value> + <DataTemplate> + <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="{StaticResource TangoDefaultFontSize}" FontWeight="Bold" > + <Run Text="Ready"> + <Run.Foreground> + <SolidColorBrush Color="{Binding Color}"/> + </Run.Foreground> + </Run> + </TextBlock> + </DataTemplate> + </Setter.Value> + </Setter> + </DataTrigger> + </Style.Triggers> + </Style> + </ContentControl.Style> + </ContentControl> + <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="{StaticResource TangoDefaultFontSize}" FontWeight="SemiBold"> <TextBlock.Foreground> <SolidColorBrush Color="{Binding DryerAir.Color}"/> </TextBlock.Foreground> |
