WinMain.xaml 7.41 KB
<Window x:Name="window" x:Class="HHWelding.WinMain"
        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:HHWelding"
        mc:Ignorable="d"
        Title="焊接数据反馈" Height="450" Width="800"   WindowStartupLocation="CenterScreen"  Icon="\huaheng2.png" >
    <Grid x:Name="grid" Margin="0,-20,0,0">
        <TabControl Name="tabSystem" TabStripPlacement="Top" Margin="0,19,0,0">
            <TabItem  VerticalAlignment="Stretch"   x:Name="tabItem" Header="管道总材料数据上传" >
                <Grid x:Name="stackPanel" VerticalAlignment="Stretch">
                    <Grid.RowDefinitions>
                        <RowDefinition  Height="auto"></RowDefinition>
                        <!--<RowDefinition  Height="auto"></RowDefinition>-->
                        <RowDefinition Height="*"></RowDefinition>
                    </Grid.RowDefinitions>
                    <WrapPanel Grid.Row="0" HorizontalAlignment="Right">
                        <!--<Button x:Name="Import" Width="auto" HorizontalAlignment="Right" Click="Import_Click" >手动导入数据</Button>-->
                        <Button x:Name="Shuju" Width="auto" HorizontalAlignment="Right" Click="Shuju_Click" >配置数据</Button>
                        <Button x:Name="Import2" Width="auto" HorizontalAlignment="Right" Click="Import_Click" >自动导入数据</Button>
                        <Button x:Name="DateReturn" Width="60" Click="DateReturn_Click" >数据回传</Button>
                    </WrapPanel>
                    <DataGrid  x:Name="Datagrid1" Grid.Row="1"  VerticalAlignment="Stretch"  ScrollViewer.HorizontalScrollBarVisibility="Visible">
                        <DataGrid.RowStyle>
                            <Style TargetType="DataGridRow">
                                <Setter Property="Background" Value="Transparent"/>
                                <Style.Triggers>
                                    <Trigger Property="ItemsControl.AlternationIndex" Value="0">
                                        <Setter Property="Background" Value="LightGray"/>
                                    </Trigger>
                                    <Trigger Property="ItemsControl.AlternationIndex" Value="1">
                                        <Setter Property="Background" Value="LightBlue"/>
                                    </Trigger>
                                    <Trigger Property="ItemsControl.AlternationIndex" Value="2">
                                        <Setter Property="Background" Value="Orange"/>
                                    </Trigger>
                                </Style.Triggers>
                            </Style>
                        </DataGrid.RowStyle>
                        <DataGrid.Columns>
                       
                        </DataGrid.Columns>

                    </DataGrid>
                </Grid>
            </TabItem>
            <!--<TabItem Header="地址配置">
                
                
                
            </TabItem>-->
            <!--<TabItem Header="焊接焊口" >
                <Grid x:Name="stackPanel2" VerticalAlignment="Stretch">
                    <Grid.RowDefinitions>
                        <RowDefinition  Height="auto"></RowDefinition>
                        --><!--<RowDefinition  Height="auto"></RowDefinition>--><!--
                        <RowDefinition Height="*"></RowDefinition>
                    </Grid.RowDefinitions>
                    <WrapPanel Grid.Row="0" HorizontalAlignment="Right">
                        <Button x:Name="Import2" Width="60" HorizontalAlignment="Right" Click="Import2_Click" >导入数据</Button>
                        <Button x:Name="DateReturn2" Width="60" Click="DateReturn2_Click" >数据回传</Button>
                    </WrapPanel>
                    <DataGrid x:Name="datagrid2" Grid.Row="1" HorizontalAlignment="Stretch">
                        <DataGrid.RowStyle>
                            <Style TargetType="DataGridRow">
                                <Setter Property="Background" Value="Transparent"/>
                                <Style.Triggers>
                                    <Trigger Property="ItemsControl.AlternationIndex" Value="0">
                                        <Setter Property="Background" Value="LightGray"/>
                                    </Trigger>
                                    <Trigger Property="ItemsControl.AlternationIndex" Value="1">
                                        <Setter Property="Background" Value="LightBlue"/>
                                    </Trigger>
                                    <Trigger Property="ItemsControl.AlternationIndex" Value="2">
                                        <Setter Property="Background" Value="Orange"/>
                                    </Trigger>
                                </Style.Triggers>
                            </Style>
                        </DataGrid.RowStyle>
                        <DataGrid.Columns>
                        </DataGrid.Columns>
                    </DataGrid>
                </Grid>
            </TabItem>
            <TabItem Header="管段切割" >
                <Grid x:Name="stackPanel3" VerticalAlignment="Stretch">
                    <Grid.RowDefinitions>
                        <RowDefinition  Height="auto"></RowDefinition>
                        --><!--<RowDefinition  Height="auto"></RowDefinition>--><!--
                        <RowDefinition Height="*"></RowDefinition>
                    </Grid.RowDefinitions>
                    <WrapPanel Grid.Row="0" HorizontalAlignment="Right">
                        <Button x:Name="Import3" Width="60" HorizontalAlignment="Right" Click="Import3_Click" >导入数据</Button>
                        <Button x:Name="DateReturn3" Width="60" Click="DateReturn3_Click" >数据回传</Button>
                    </WrapPanel>
                    <DataGrid x:Name="datagrid3" Grid.Row="1" HorizontalAlignment="Stretch">
                        <DataGrid.RowStyle>
                            <Style TargetType="DataGridRow">
                                <Setter Property="Background" Value="Transparent"/>
                                <Style.Triggers>
                                    <Trigger Property="ItemsControl.AlternationIndex" Value="0">
                                        <Setter Property="Background" Value="LightGray"/>
                                    </Trigger>
                                    <Trigger Property="ItemsControl.AlternationIndex" Value="1">
                                        <Setter Property="Background" Value="LightBlue"/>
                                    </Trigger>
                                    <Trigger Property="ItemsControl.AlternationIndex" Value="2">
                                        <Setter Property="Background" Value="Orange"/>
                                    </Trigger>
                                </Style.Triggers>
                            </Style>
                        </DataGrid.RowStyle>
                        <DataGrid.Columns>
                        
                        </DataGrid.Columns>
                    </DataGrid>
                </Grid>
            </TabItem>-->
        </TabControl>
    </Grid>
</Window>