GasFlowChart.xaml 5.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <UserControl x:Class="Aitex.Core.UI.Control.GasFlowChart"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:cv="clr-namespace:Aitex.Core.UI.Converters"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:my1="clr-namespace:Aitex.Core.UI.Control"
  8. Height="432" Width="541" MinHeight="400" MaxHeight="432" MinWidth="500" MaxWidth="541">
  9. <Canvas>
  10. <Canvas.Resources>
  11. <Style TargetType="Button"></Style>
  12. </Canvas.Resources>
  13. <ListView Canvas.Left="0" Canvas.Top="140" BorderThickness="0" Background="Transparent" SelectionMode="Single" ItemsSource="{Binding NH3GasItems}" HorizontalAlignment="Left" VerticalAlignment="Top" >
  14. <ListView.ItemContainerStyle>
  15. <Style TargetType="{x:Type ListViewItem}">
  16. <Setter Property="Focusable" Value="False"/>
  17. <Setter Property="Margin" Value="0,-1" />
  18. <Setter Property="Padding" Value="0" />
  19. </Style>
  20. </ListView.ItemContainerStyle>
  21. <ListView.ItemTemplate>
  22. <DataTemplate>
  23. <my1:GasFlowButton Flow2Right="true" />
  24. </DataTemplate>
  25. </ListView.ItemTemplate>
  26. </ListView>
  27. <ListView Canvas.Left="295" Canvas.Top="140" BorderThickness="0" Background="Transparent" SelectionMode="Single" ItemsSource="{Binding MOGasItems}" HorizontalAlignment="Left" VerticalAlignment="Top" >
  28. <ListView.ItemContainerStyle>
  29. <Style TargetType="{x:Type ListViewItem}">
  30. <Setter Property="Focusable" Value="False"/>
  31. <Setter Property="Margin" Value="0,-1" />
  32. <Setter Property="Padding" Value="0" />
  33. </Style>
  34. </ListView.ItemContainerStyle>
  35. <ListView.ItemTemplate>
  36. <DataTemplate>
  37. <my1:GasFlowButton Flow2Right="false" />
  38. </DataTemplate>
  39. </ListView.ItemTemplate>
  40. </ListView>
  41. <!--标题-->
  42. <TextBlock Canvas.Left="45" Canvas.Top="77" Height="28.56" Name="label75" Width="64.26" Text="气流状态"></TextBlock>
  43. <TextBlock Canvas.Left="6" Canvas.Top="120" Height="28.322" Name="label76" Width="44.149" HorizontalAlignment="Center" VerticalAlignment="Center" Text="载气"></TextBlock>
  44. <TextBlock Canvas.Left="65" Canvas.Top="120" Height="28.339" Name="label77" Width="29.155" HorizontalAlignment="Center" VerticalAlignment="Center" Text="源"></TextBlock>
  45. <TextBlock Canvas.Left="120" Canvas.Top="120" Height="27.775" Name="label78" Width="49.147" HorizontalAlignment="Center" VerticalAlignment="Center" Text="流量"></TextBlock>
  46. <TextBlock Canvas.Left="358" Canvas.Top="120" Height="28.339" Name="label79" Width="38.178" HorizontalAlignment="Center" VerticalAlignment="Center" Text="流量"></TextBlock>
  47. <TextBlock Canvas.Left="434" Canvas.Top="120" Height="28.322" Name="label80" Width="33.32" HorizontalAlignment="Center" VerticalAlignment="Center" Text="源"></TextBlock>
  48. <TextBlock Canvas.Left="478" Canvas.Top="120" Height="28.339" Name="label81" Width="40.817" HorizontalAlignment="Center" VerticalAlignment="Center" Text="载气"></TextBlock>
  49. <TextBlock Canvas.Left="354" Canvas.Top="84" FontFamily="Arial,SimSun" FontSize="10" Height="26" HorizontalAlignment="Center" Name="label66" Width="37" Text="Vent"></TextBlock>
  50. <TextBlock Canvas.Left="185" Canvas.Top="39" Height="22.864" Name="label71" Width="64.596" Panel.ZIndex="999" HorizontalAlignment="Center" FontFamily="Arial,SimSun" FontSize="10" Text="NH3"></TextBlock>
  51. <TextBlock Canvas.Left="276" Canvas.Top="42" Height="25.722" Panel.ZIndex="999" Name="label74" Width="37" HorizontalAlignment="Center" FontFamily="Arial,SimSun" FontSize="10" Text="MO"></TextBlock>
  52. <TextBlock Canvas.Left="183" Canvas.Top="52" Panel.ZIndex="999" HorizontalAlignment="Center" Name="txtHydrideTotal" Text="{Binding HydrideTotal}" Width="49.985" Height="34" FontFamily="Arial,SimSun" FontSize="11" VerticalAlignment="Bottom" />
  53. <TextBlock Canvas.Left="277" Canvas.Top="52" Panel.ZIndex="999" HorizontalAlignment="Center" Name="txtMOTotal" Text="{Binding MOTotal}" Width="50" Height="34.296" FontFamily="Arial,SimSun" FontSize="11" VerticalAlignment="Bottom" />
  54. <!--箭头-->
  55. <Rectangle ToolTip="氨气" Canvas.Left="210" Canvas.Top="30" Fill="LightSeaGreen" Height="405" Name="rectangle9" Stroke="Black" Width="10" StrokeThickness="0" />
  56. <Polygon Points="0,30 15,0 30,30" Stroke="Black" StrokeThickness="0" Fill="LightSeaGreen" Height="39.27" Canvas.Top="0" Width="41.814" Canvas.Left="200" />
  57. <Rectangle ToolTip="MO源" Canvas.Left="291" Canvas.Top="29" Fill="IndianRed" Height="405" Name="rectangle11" Stroke="Black" Width="10" StrokeStartLineCap="Flat" StrokeThickness="0" />
  58. <Polygon Points="0,30 15,0 30,30" Stroke="Black" StrokeThickness="0" Fill="IndianRed" Height="39.27" Canvas.Top="-1" Width="41.814" Canvas.Left="281" />
  59. <Rectangle Canvas.Left="328" Canvas.Top="58" Fill="Gray" Height="9.997" Name="rectangle61" Stroke="Black" Width="27.953" StrokeThickness="0" />
  60. <Rectangle ToolTip="旁路" Canvas.Left="328" Canvas.Top="59" Fill="Gray" Height="375" Name="rectangle12" Stroke="Black" Width="10" StrokeThickness="0" />
  61. <Polygon Canvas.Left="355" Canvas.Top="49" Fill="Gray" Height="30.76" Points="0,0,0,30,30,15" Stroke="Black" StrokeThickness="0" Width="30.8" />
  62. </Canvas>
  63. </UserControl>