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
<Window x:Class="XHandler.View.Dialog.OperateDeviceDialog"
             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:str="clr-namespace:XHandler.Properties"
             mc:Ignorable="d"  WindowStartupLocation = "CenterOwner"
             Width="auto" Height="auto" WindowStyle="None" AllowsTransparency="True" ResizeMode="NoResize" Background="#00FFFFFF"
             Loaded="Window_Load">
    <Grid>
        <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Width="500" Height="auto">
            <Grid.RowDefinitions>
                <RowDefinition Height="40"/>
                <RowDefinition Height="auto"/>
            </Grid.RowDefinitions>
            <Border Grid.Row="0" Background="{DynamicResource blueBrush}" CornerRadius="10 10 0 0" BorderThickness="0">
                <Grid>
                    <TextBlock Text="{x:Static str:Resources.strTips}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="20 0" FontSize="20"
                               Foreground="White" FontWeight="Bold"/>
                    <Button Content="×" 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}" Visibility="Hidden"/>
                </Grid>
            </Border>
            
            <Border Grid.Row="1" Background="White" CornerRadius="0 0 10 10" BorderThickness="2" BorderBrush="{DynamicResource blueBrush}">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="410"/>
                        <RowDefinition Height="100"/>
                    </Grid.RowDefinitions>
 
                    <!--Content-->
                    <Grid Grid.Row="0">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="45"/>
                            <RowDefinition Height="45"/>
                            <RowDefinition Height="auto"/>
                            <RowDefinition Height="60"/>
                            <RowDefinition Height="auto"/>
                        </Grid.RowDefinitions>
 
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="110"/>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="100"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
 
                        <TextBlock Grid.Row="0" Grid.Column="0" Text="设备名称:" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,5,0"
                               FontSize="16"/>
                        <TextBlock Grid.Row="0" Grid.Column="1" x:Name="tBlockDeviceName" VerticalAlignment="Center" HorizontalAlignment="Left" FontSize="16" Margin="20,0,0,0"/>
 
                        <TextBlock Grid.Row="0" Grid.Column="2" Text="设备方法:" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,5,0"
                               FontSize="16"/>
                        <TextBlock Grid.Row="0" Grid.Column="3" x:Name="tBlockDeviceMethod" VerticalAlignment="Center" HorizontalAlignment="Left" FontSize="16" Margin="20,0,0,0"/>
 
                        <TextBlock Grid.Row="1" Grid.Column="0" Text="指令参数:" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,5,0"
                               FontSize="16"/>
                        <TextBox Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="4"  x:Name="tBoxRemark" Height="200" FontSize="16" VerticalContentAlignment="Top" TextWrapping="Wrap" Background="{DynamicResource lightGrayBrush}" 
                                 BorderThickness="0" Margin="40,0,20,0"/>
 
 
                        <TextBlock Grid.Row="3" Grid.Column="0" Text="错误内容:" VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="0,0,5,10"
                               FontSize="16"/>
                        <TextBox Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="4"  x:Name="tBoxError" Height="100" FontSize="16" VerticalContentAlignment="Top" TextWrapping="Wrap" Background="{DynamicResource lightGrayBrush}" 
                                 BorderThickness="0" MaxLength="200" Margin="40,0,20,0" IsEnabled="False"/>
 
 
                    </Grid>
 
                    <Grid Grid.Row="1" VerticalAlignment="Bottom" Margin="0, 0, 0, 10">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <Button x:Name="btnCancel" Grid.Column="0" Content="{x:Static str:Resources.btnRunCancel}" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="20 0" FontSize="16" Width="80" Height="40"
                            Foreground="White" Style="{DynamicResource BlueButtonStyle}" Background="{DynamicResource blueBrush}" Click="btnCancel_Click"/>
                        <Button x:Name="btnRetry" Grid.Column="1" Content="{x:Static str:Resources.btnRunRetry}" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="20 0" FontSize="16" Width="80" Height="40"
                            Foreground="White" Style="{DynamicResource BlueButtonStyle}" Background="{DynamicResource blueBrush}" Click="btnRetry_Click"/>
                        <Button x:Name="btnJump" Grid.Column="2" Content="{x:Static str:Resources.btnRunJump}" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="20 0" FontSize="16" Width="80" Height="40"
                            Foreground="White" Style="{DynamicResource BlueButtonStyle}" Background="{DynamicResource blueBrush}" Click="btnJump_Click"/>
                    </Grid>
                </Grid>
            </Border>
        </Grid>
    </Grid>
</Window>