WaferOffsetView.xaml 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <UserControl x:Class="Venus_MainPages.Views.WaferOffsetView"
  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:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:Venus_MainPages.Views"
  7. xmlns:sys="clr-namespace:System;assembly=mscorlib"
  8. xmlns:wfi ="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
  9. xmlns:wf ="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
  10. mc:Ignorable="d"
  11. xmlns:ctrls="clr-namespace:Venus_Themes.UserControls;assembly=Venus_Themes"
  12. xmlns:prism="http://prismlibrary.com/"
  13. xmlns:viewmodels="clr-namespace:Venus_MainPages.ViewModels"
  14. xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
  15. d:DataContext="{d:DesignInstance Type=viewmodels:WaferOffsetViewModel}"
  16. prism:ViewModelLocator.AutoWireViewModel="True"
  17. x:Name="waferOffsetView"
  18. d:DesignHeight="450" d:DesignWidth="800">
  19. <i:Interaction.Triggers>
  20. <i:EventTrigger EventName="Loaded">
  21. <i:InvokeCommandAction Command="{Binding LoadCommandPD}" CommandParameter="{Binding ElementName=waferOffsetView}"/>
  22. </i:EventTrigger>
  23. </i:Interaction.Triggers>
  24. <UserControl.Resources>
  25. <ControlTemplate x:Key="CustomDatePick" TargetType="TextBox">
  26. <Border BorderThickness=".5" BorderBrush="LightGray" Padding="0">
  27. <StackPanel MinWidth="126" Orientation="Horizontal">
  28. <!--<TextBox FontSize="10" BorderBrush="{x:Null}" BorderThickness="0" Height="20" HorizontalAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center">2023</TextBox>
  29. <Label Background="White" Height="20" Margin="-2,0" Panel.ZIndex="1" VerticalContentAlignment="Center" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="9" Padding="1">/</Label>
  30. <TextBox FontSize="10" BorderBrush="{x:Null}" BorderThickness="0" Height="20" HorizontalAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center">12</TextBox>
  31. <Label Background="White" Height="20" Margin="-2,0" Panel.ZIndex="1" VerticalContentAlignment="Center" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="9" Padding="1">/</Label>
  32. <TextBox FontSize="10" BorderBrush="{x:Null}" BorderThickness="0" Height="20" HorizontalAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center">31</TextBox>-->
  33. <TextBox FontSize="10" BorderBrush="{x:Null}" BorderThickness="0" Height="20" HorizontalAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center"></TextBox>
  34. <TextBox FontSize="10" BorderBrush="{x:Null}" BorderThickness="0" Height="20" HorizontalAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center">23</TextBox>
  35. <Label Background="White" Height="20" Margin="-2,0" Panel.ZIndex="1" VerticalContentAlignment="Center" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="9" Padding="1">:</Label>
  36. <TextBox FontSize="10" BorderBrush="{x:Null}" BorderThickness="0" Height="20" HorizontalAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center">59</TextBox>
  37. <Label Background="White" Height="20" Margin="-2,0" Panel.ZIndex="1" VerticalContentAlignment="Center" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="9" Padding="1">:</Label>
  38. <TextBox FontSize="10" BorderBrush="{x:Null}" BorderThickness="0" Height="20" HorizontalAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center">59</TextBox>
  39. <DatePicker SelectedDate="{x:Static sys:DateTime.Now}" Name="st_date" DisplayDate="2019-01-01" Margin="-13,0,0,0" FontSize="1" Panel.ZIndex="-1" BorderBrush="Transparent" Height="24" Width="40" Foreground="Transparent" HorizontalAlignment="Left" VerticalAlignment="Center"></DatePicker>
  40. </StackPanel>
  41. </Border>
  42. <ControlTemplate.Triggers>
  43. </ControlTemplate.Triggers>
  44. </ControlTemplate>
  45. </UserControl.Resources>
  46. <Grid>
  47. <Grid.RowDefinitions>
  48. <RowDefinition Height="50"/>
  49. <RowDefinition Height="*"/>
  50. </Grid.RowDefinitions>
  51. <Grid.ColumnDefinitions>
  52. <ColumnDefinition Width="*"/>
  53. </Grid.ColumnDefinitions>
  54. <!-- 选项栏-->
  55. <Grid>
  56. <Grid.ColumnDefinitions>
  57. <ColumnDefinition Width="30"></ColumnDefinition>
  58. <ColumnDefinition Width="400"></ColumnDefinition>
  59. <ColumnDefinition Width="*"></ColumnDefinition>
  60. <ColumnDefinition Width="200" MinWidth="90"></ColumnDefinition>
  61. </Grid.ColumnDefinitions>
  62. <StackPanel Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Center" Height="25">
  63. <!--<TextBlock VerticalAlignment="Center" Text="Time From "></TextBlock>
  64. <TextBox Template="{StaticResource CustomDatePick}"></TextBox>-->
  65. <Label Content="Time From:"/>
  66. <wfi:WindowsFormsHost FontSize="13" FontFamily="Arial" Width="150" Height="20" VerticalAlignment="Center">
  67. <wf:DateTimePicker x:Name="TimeFrom" Value="{x:Static sys:DateTime.Now}" CustomFormat="yyyy/MM/dd HH:mm:ss" Format="Custom"></wf:DateTimePicker>
  68. </wfi:WindowsFormsHost>
  69. <TextBlock VerticalAlignment="Center" Text=" To "></TextBlock>
  70. <wfi:WindowsFormsHost FontSize="13" FontFamily="Arial" Width="150" Height="20" VerticalAlignment="Center">
  71. <wf:DateTimePicker x:Name="TimeTo" Value="{x:Static sys:DateTime.Now}" CustomFormat="yyyy/MM/dd HH:mm:ss" Format="Custom"></wf:DateTimePicker>
  72. </wfi:WindowsFormsHost>
  73. </StackPanel>
  74. <StackPanel Grid.Column="3" Orientation="Horizontal" VerticalAlignment="Center">
  75. <Ellipse Fill="Yellow" Width="10" Height="10"></Ellipse>
  76. <TextBlock Margin="5,0"> : Upper ARM</TextBlock>
  77. <Ellipse Fill="#2e849b" Width="10" Height="10"></Ellipse>
  78. <TextBlock Margin="5,0"> : Lower ARM</TextBlock>
  79. </StackPanel>
  80. </Grid>
  81. <!-- 数据wafer offset栏 -->
  82. <ListBox Grid.Column="1" Grid.Row="1" Margin="40,0,0,0" ItemsSource="{Binding AwcModulesList}" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
  83. <ListBox.ItemContainerStyle>
  84. <Style TargetType="ListBoxItem">
  85. <Setter Property="IsSelected" Value="{Binding Content.IsSelected, Mode=TwoWay, RelativeSource={RelativeSource Self}}"/>
  86. <Setter Property="Template">
  87. <Setter.Value>
  88. <ControlTemplate TargetType="ListBoxItem">
  89. <ContentPresenter/>
  90. </ControlTemplate>
  91. </Setter.Value>
  92. </Setter>
  93. </Style>
  94. </ListBox.ItemContainerStyle>
  95. <ListBox.ItemsPanel>
  96. <ItemsPanelTemplate>
  97. <WrapPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="40,0" ScrollViewer.CanContentScroll="True"/>
  98. </ItemsPanelTemplate>
  99. </ListBox.ItemsPanel>
  100. <ListBox.ItemTemplate>
  101. <DataTemplate>
  102. <Canvas Width="400" Height="350" Margin="10,0">
  103. <TextBlock Canvas.Top="0" Canvas.Left="165" Text="{Binding Module_Name,UpdateSourceTrigger=PropertyChanged}"></TextBlock>
  104. <ctrls:Axes2D Canvas.Top="15" Canvas.Left="30" AxesHeight="300" AxesWidth="300" WaferRadius="300" SafeRadius="100" PositionAndKey="{Binding PositionInfo,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}"></ctrls:Axes2D>
  105. <Button Canvas.Right="10" Canvas.Bottom="70" Padding="3,2" Command="{Binding GetDataCommand}">Draw</Button>
  106. <Button Canvas.Right="10" Canvas.Bottom="40" Padding="3,2" Command="{Binding RemoveDataCommand}">Clear</Button>
  107. </Canvas>
  108. </DataTemplate>
  109. </ListBox.ItemTemplate>
  110. </ListBox>
  111. <!---->
  112. </Grid>
  113. </UserControl>