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
<Window x:Class="XHandler.View.Dialog.PlsArmChannelWin"
        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:XHandler.View.Dialog"
        xmlns:str="clr-namespace:XHandler.Properties"
        xmlns:ctrls="clr-namespace:XHandler.Controls"
        mc:Ignorable="d"
        Title="选择确认" Width="520" Height="300" WindowStyle="None" AllowsTransparency="True" ResizeMode="NoResize" Background="#00FFFFFF" Loaded="Window_Loaded">
    <Grid >
        <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Width="520" Height="300">
            <Grid.RowDefinitions>
                <RowDefinition Height="40"/>
                <RowDefinition Height="*"/>
            </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 x:Name="btnClose" 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}" Click="btnClose_Click"/>
                </Grid>
            </Border>
 
            <Border Grid.Row="1" Background="White" CornerRadius="0 0 10 10" BorderThickness="2" BorderBrush="{DynamicResource blueBrush}">
                <Grid x:Name="gdContent">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="50"/>
                        <RowDefinition Height="60"/>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="60"/>
                    </Grid.RowDefinitions>
                    <TextBlock x:Name="textblockMsg" Grid.Row="1"  VerticalAlignment="Center" TextWrapping="Wrap" HorizontalAlignment="Center" Margin="0 0 0 0" FontSize="16" />
                    <Grid Grid.Row="1">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="150"></ColumnDefinition>
                            <ColumnDefinition Width="*"></ColumnDefinition>
                            <ColumnDefinition Width="150"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock x:Name="tbkArm" Grid.Column="0"  VerticalAlignment="Center" Text="{x:Static str:Resources.strArm}" Margin="0,0,10,0"  HorizontalAlignment="Right" FontSize="16" />
                        <ComboBox x:Name="cbArm" Grid.Column="1" Height="30" BorderThickness="0" Background="{DynamicResource lightGrayBrush}"
                      DisplayMemberPath="device_arm_name" SelectedValuePath="device_arm_id" SelectionChanged="cbArm_SelectionChanged" IsEditable="False"/>
                    </Grid>
 
                    <Grid Grid.Row="2">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="150"></ColumnDefinition>
                            <ColumnDefinition Width="*"></ColumnDefinition>
                            <ColumnDefinition Width="150"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" Text="{x:Static str:Resources.strChannelText}" FontSize="16" 
                   VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0 5 15 0"/>
                        <ctrls:TipsChannel x:Name="tipsChannel" Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" TotalChannels="8" Height="70" Background="White" CanEdit="False"
                               HorizontalAlignment="Left" SelectedChangedEvent="tipsChannel_SelectedChangedEvent"/>
                    </Grid>
 
                    <Grid Grid.Row="4">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <Button x:Name="btnCancel" Grid.Column="0" Content="{x:Static str:Resources.btnCancel}" 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="btnOK" Grid.Column="1" Content="{x:Static str:Resources.btnOK}" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="20 0" FontSize="16" Width="80" Height="40"
                            Foreground="White" Style="{DynamicResource BlueButtonStyle}" Background="{DynamicResource blueBrush}" Click="btnOK_Click"/>
 
                    </Grid>
                </Grid>
            </Border>
        </Grid>
    </Grid>
</Window>