schangxiang@126.com
2025-11-04 f5ed29dc26c7cd952d56ec5721a2efc43cd25992
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<Window x:Class="XHandler.View.Consumables.PilingonPlateSet"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:XHandler.View.Consumables"
             xmlns:str="clr-namespace:XHandler.Properties"
             xmlns:ctrls="clr-namespace:XHandler.Controls"
             mc:Ignorable="d" WindowStartupLocation = "CenterOwner"
             d:DesignHeight="650" d:DesignWidth="800" WindowStyle="None" AllowsTransparency="True" ResizeMode="NoResize" Background="#00FFFFFF"
             PreviewKeyDown="Window_PreviewKeyDown">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid Grid.Row="1" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Width="600" Height="400">
            <Grid.RowDefinitions>
                <RowDefinition Height="40"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Border Grid.Row="0" Background="{DynamicResource blueBrush}" CornerRadius="10 10 0 0" BorderThickness="0">
                <Grid MouseDown="Grid_MouseDown">
                    <TextBlock Text="{x:Static str:Resources.strThisStackOnOther}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="20 0" FontSize="20"
                               Foreground="White" FontWeight="Bold"/>
                    <Button Content="×" x:Name="btnClose" HorizontalAlignment="Right" VerticalAlignment="Center" VerticalContentAlignment="Center" Margin="10 0" FontSize="28" Width="40" Height="40"
                            FontWeight="Bold" Foreground="White" Style="{DynamicResource BlueButtonStyle}" Background="{DynamicResource blueBrush}" Click="btnClose_Click"/>
                </Grid>
            </Border>
            <Border Grid.Row="1" Background="White" CornerRadius="0 0 10 10" BorderThickness="0">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="350"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="0.5*"/>
                        <ColumnDefinition Width="0.5*"/>
                    </Grid.ColumnDefinitions>
                    <Grid Grid.Row="0" Grid.Column="0" Background="Azure">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="20"/>
                            <RowDefinition Height="325"/>
                        </Grid.RowDefinitions>
 
                        <TextBlock Grid.Row="0" Text="{x:Static str:Resources.strThisStackOnOtherSelectInfo}" VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="10,0,0,0" FontSize="16"/>
 
                        <Grid Grid.Row="1">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="30"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <ctrls:SearchTextBox Grid.Row="0" Background="#FFF7F8FA" Watermark="{x:Static str:Resources.strInputSearch}" VerticalAlignment="Center" Height="30" Margin="10,0,10,0"
                                        FontSize="20" VerticalContentAlignment="Center"/>
                            <ListBox Grid.Row="1" x:Name="listboxPlates"  Margin="10 5 10 0"  ScrollViewer.CanContentScroll="True" SelectionChanged="listboxPlates_SelectionChanged">
                            </ListBox>
                        </Grid>
                    </Grid>
                    
                    <GridSplitter Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Bottom" Height="360" Width="3" Background="#F1F1F1" IsEnabled="True" ></GridSplitter>
                    <Grid Grid.Row="0" Grid.Column="1" Background="AliceBlue" >
                        <Grid.RowDefinitions>
                            <RowDefinition Height="60"/>
                            <RowDefinition Height="30"/>
                            <RowDefinition Height="30"/>
                            <RowDefinition Height="30"/>
                        </Grid.RowDefinitions>
                        <Grid Grid.Row="0">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="0.25*"/>
                                <ColumnDefinition Width="0.5*"/>
                                <ColumnDefinition Width="0.25*"/>
                            </Grid.ColumnDefinitions>
                            <TextBlock Text="x" Grid.Row="0" Grid.Column="0" VerticalAlignment="Bottom" HorizontalAlignment="Center" FontSize="20"></TextBlock>
                            <TextBox x:Name="tbxPiledcoordinateX" Grid.Row="0" Text="0" TextChanged="tbxPiledcoordinateX_TextChanged" Grid.Column="1" VerticalAlignment="Bottom" HorizontalAlignment="Center" FontSize="20" Width="150"></TextBox>
                            <TextBlock Text="mm" Grid.Row="0" Grid.Column="2" VerticalAlignment="Bottom" HorizontalAlignment="Center" FontSize="20"></TextBlock>
                        </Grid>
                        <Grid Grid.Row="1">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="0.25*"/>
                                <ColumnDefinition Width="0.5*"/>
                                <ColumnDefinition Width="0.25*"/>
                            </Grid.ColumnDefinitions>
                            <TextBlock Text="y" Grid.Row="0" Grid.Column="0" VerticalAlignment="Bottom" HorizontalAlignment="Center" FontSize="20"></TextBlock>
                            <TextBox x:Name="tbxPiledcoordinateY" Text="0" TextChanged="tbxPiledcoordinateY_TextChanged" Grid.Row="0" Grid.Column="1" VerticalAlignment="Bottom" HorizontalAlignment="Center" FontSize="20" Width="150"></TextBox>
                            <TextBlock Text="mm" Grid.Row="0" Grid.Column="2" VerticalAlignment="Bottom" HorizontalAlignment="Center" FontSize="20"></TextBlock>
                        </Grid>
                        <Grid Grid.Row="2">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="0.25*"/>
                                <ColumnDefinition Width="0.5*"/>
                                <ColumnDefinition Width="0.25*"/>
                            </Grid.ColumnDefinitions>
 
                            <TextBlock Text="z" Grid.Row="2" Grid.Column="0" VerticalAlignment="Bottom" HorizontalAlignment="Center" FontSize="20"></TextBlock>
                            <TextBox x:Name="tbxPiledcoordinateZ" Text="0" TextChanged="tbxPiledcoordinateZ_TextChanged" Grid.Row="2" Grid.Column="1" VerticalAlignment="Bottom" HorizontalAlignment="Center" FontSize="20" Width="150"></TextBox>
                            <TextBlock Text="mm" Grid.Row="2" Grid.Column="2" VerticalAlignment="Bottom" HorizontalAlignment="Center" FontSize="20"></TextBlock>
                        </Grid>
                        <Grid Grid.Row="3">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*"/>
                            </Grid.ColumnDefinitions>
                            <TextBlock x:Name="txtError" Grid.Row="3" Grid.Column="0" VerticalAlignment="Bottom" HorizontalAlignment="Center" FontSize="20"  Foreground="Red" />
                        </Grid>
                    </Grid>
 
                    <Button Grid.Row="3" Grid.Column="1" x:Name="btnConfirm" Content="{x:Static str:Resources.btnSave}" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0 0 60 10" FontSize="16" Width="80" Height="40"
                            Foreground="White" Style="{DynamicResource BlueButtonStyle}" Background="{DynamicResource blueBrush}" Click="btnConfirm_Click"/>
                </Grid>
            </Border>
        </Grid>
    </Grid>
</Window>