You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					60 lines
				
				3.8 KiB
			
		
		
			
		
	
	
					60 lines
				
				3.8 KiB
			| 
											1 year ago
										 | <Window x:Class="DyeingComputer.Windows.ViewProgram" | ||
|  |         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:local="clr-namespace:DyeingComputer.Windows" | ||
|  |         xmlns:lang="clr-namespace:DyeingComputer.Properties"  | ||
|  |         WindowStartupLocation="CenterScreen" | ||
|  |         ResizeMode="NoResize" | ||
|  |         mc:Ignorable="d" | ||
|  |         Title="SUNLIGHT 800" Height="400" Width="400"> | ||
|  |     <Grid> | ||
|  |         <DataGrid x:Name="Grid" AlternationCount="2" IsReadOnly="True" SelectionChanged="Grid_SelectionChanged" | ||
|  |                Margin="0,0,0,50" d:ItemsSource="{d:SampleData ItemCount=20}" AutoGenerateColumns="False" MinColumnWidth="30"        | ||
|  |                HorizontalGridLinesBrush="#FFC9C9C9" VerticalGridLinesBrush="#FFC9C9C9" GridLinesVisibility="All" BorderBrush="#CCCCCC"          | ||
|  |                BorderThickness="1,1,1,1" ColumnHeaderHeight="40" HorizontalContentAlignment="Right" Grid.ColumnSpan="2" AllowDrop="False"       | ||
|  |                CanUserReorderColumns="False" CanUserSortColumns="False" CanUserResizeRows="False" CanUserResizeColumns="False" | ||
|  |                CanUserAddRows="False" CanUserDeleteRows="False" HeadersVisibility ="Column"      | ||
|  |                Background="White" SelectionMode="Single" FontSize="15" > | ||
|  |             <DataGrid.RowStyle > | ||
|  |                 <Style TargetType="{x:Type DataGridRow}"> | ||
|  |                     <Setter Property="Height" Value="30" /> | ||
|  |                     <Setter Property="FontSize" Value="25" /> | ||
|  |                     <Style.Triggers> | ||
|  |                         <Trigger Property="ItemsControl.AlternationIndex" Value="0"> | ||
|  |                             <Setter Property="Background" Value="#FFFFFFFF" /> | ||
|  |                         </Trigger> | ||
|  |                         <Trigger Property="ItemsControl.AlternationIndex" Value="1"> | ||
|  |                             <Setter Property="Background" Value="#FFF0F0F0" /> | ||
|  |                         </Trigger> | ||
|  |                         <Trigger Property="IsMouseOver" Value="False"/> | ||
|  |                     </Style.Triggers> | ||
|  |                 </Style> | ||
|  |             </DataGrid.RowStyle> | ||
|  |             <DataGrid.CellStyle> | ||
|  |                 <Style TargetType="DataGridCell"> | ||
|  |                     <Setter Property="BorderThickness" Value="0"/> | ||
|  |                     <Setter Property="MinWidth" Value="20"/> | ||
|  |                     <Style.Triggers> | ||
|  |                         <Trigger Property="IsSelected" Value="True"> | ||
|  |                             <Setter Property="Background" Value="#FFC0C0C0"/> | ||
|  |                             <Setter Property="BorderBrush" Value="#FFC0C0C0"/> | ||
|  |                             <Setter Property="Foreground" Value="Black"/> | ||
|  |                         </Trigger> | ||
|  |                     </Style.Triggers> | ||
|  |                 </Style> | ||
|  |             </DataGrid.CellStyle> | ||
|  |             <DataGrid.Columns> | ||
|  |                 <!--列信息绑定--> | ||
|  |                 <DataGridTextColumn Header="ProcessID" Binding="{Binding ProgramID}" Width="0" MinWidth="0" MaxWidth="0"/> | ||
|  |                 <DataGridTextColumn Header="{x:Static lang:Resources.ProcessName}" Width="330" Binding="{Binding ProgramName}" IsReadOnly="True"/> | ||
|  |                 <DataGridTextColumn Header="{x:Static lang:Resources.Step}" Width="50" Binding="{Binding Step}" IsReadOnly="True"/> | ||
|  |             </DataGrid.Columns> | ||
|  |         </DataGrid> | ||
|  | 
 | ||
|  |         <Button Content="{x:Static lang:Resources.YES}" HorizontalAlignment="Left" Height="35" Margin="50,70,0,5" VerticalAlignment="Bottom" Width="80" Click="YES_Click"/> | ||
|  |         <Button Content="{x:Static lang:Resources.NO}" HorizontalAlignment="Right" Height="35" Margin="0,70,50,5" VerticalAlignment="Bottom" Width="80" Click="NO_Click"/> | ||
|  |     </Grid> | ||
|  | </Window> |