Browse Source

存在 foup 信息展示Carrier信息

jiangjy 2 weeks ago
parent
commit
15a7eb3de3
1 changed files with 7 additions and 6 deletions
  1. 7 6
      Furnace/FurnaceUI/Views/Maintenances/LPSensorView.xaml

+ 7 - 6
Furnace/FurnaceUI/Views/Maintenances/LPSensorView.xaml

@@ -9,6 +9,7 @@
              xmlns:deviceControl="clr-namespace:Aitex.Core.UI.DeviceControl;assembly=MECF.Framework.UI.Core"
              xmlns:local="clr-namespace:FurnaceUI.Views.Maintenances"
              mc:Ignorable="d" 
+               xmlns:converter2="clr-namespace:Aitex.Core.UI.Converters;assembly=MECF.Framework.UI.Core"
              d:DesignHeight="600" d:DesignWidth="521" x:Name="self">
     <UserControl.Resources>
         <DataTemplate  x:Key="IndexTemplate">
@@ -24,7 +25,7 @@
             </deviceControl:AITSensor>
         </DataTemplate>
 
-
+        <converter2:Bool2CollapsedReverseConverter  x:Key="Bool2CollapsedReverseConverter"/>
     </UserControl.Resources>
     <Border Background="#DAE5F1">
         <TabControl SelectedIndex="{Binding TabSelectIndex,UpdateSourceTrigger=PropertyChanged}">
@@ -52,8 +53,8 @@
                         </Canvas>
 
                     </Border>
-                    <Border  Height="110" Grid.Row="2"  Background="#DAE5F1">
-                        <StackPanel>
+                    <Border   Height="110" Grid.Row="2"  Background="#DAE5F1">
+                        <StackPanel  Visibility="{Binding LP1CarrierInfo.IsEmpty,UpdateSourceTrigger=PropertyChanged,Converter={StaticResource Bool2CollapsedReverseConverter}}"  >
                             <TextBlock Text="Carrier" Style="{StaticResource TextBlock_Title}" FontSize="20" ></TextBlock>
                             <Grid Margin="20,10,0,0">
                                 <Grid.ColumnDefinitions>
@@ -267,7 +268,7 @@
                         </Canvas>
                     </Border>
                     <Border  Height="110" Grid.Row="2"  Background="#DAE5F1">
-                        <StackPanel>
+                        <StackPanel  Visibility="{Binding LP2CarrierInfo.IsEmpty,UpdateSourceTrigger=PropertyChanged,Converter={StaticResource Bool2CollapsedReverseConverter}}">
                             <TextBlock Text="Carrier" Style="{StaticResource TextBlock_Title}" FontSize="20" ></TextBlock>
                             <Grid Margin="20,10,0,0">
                                 <Grid.ColumnDefinitions>
@@ -478,7 +479,7 @@
                         </Canvas>
                     </Border>
                     <Border  Height="110" Grid.Row="2"  Background="#DAE5F1">
-                        <StackPanel>
+                        <StackPanel Visibility="{Binding LP3CarrierInfo.IsEmpty,UpdateSourceTrigger=PropertyChanged,Converter={StaticResource Bool2CollapsedReverseConverter}}">
                             <TextBlock Text="Carrier" Style="{StaticResource TextBlock_Title}" FontSize="20" ></TextBlock>
                             <Grid Margin="20,10,0,0">
                                 <Grid.ColumnDefinitions>
@@ -689,7 +690,7 @@
                         </Canvas>
                     </Border>
                     <Border  Height="110" Grid.Row="2"  Background="#DAE5F1">
-                        <StackPanel>
+                        <StackPanel Visibility="{Binding LP4CarrierInfo.IsEmpty,UpdateSourceTrigger=PropertyChanged,Converter={StaticResource Bool2CollapsedReverseConverter}}">
                             <TextBlock Text="Carrier" Style="{StaticResource TextBlock_Title}" FontSize="20" ></TextBlock>
                             <Grid Margin="20,10,0,0">
                                 <Grid.ColumnDefinitions>