schangxiang@126.com
2025-11-04 ca398287db3f5ea01f03aac4a85edb13b28100a6
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
<Window x:Class="XHandler.View.PlsLookWin"
        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"
        xmlns:ctrls="clr-namespace:XHandler.Controls"
        xmlns:str="clr-namespace:XHandler.Properties"
        mc:Ignorable="d"
        Title="PlsLookWin" Height="450" Width="800" WindowStyle="None" AllowsTransparency="True" ResizeMode="NoResize" Background="#00FFFFFF">
    <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="400" Height="220">
            <Grid.RowDefinitions>
                <RowDefinition Height="50"/>
                <RowDefinition Height="30"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Border Grid.Row="0" Background="{DynamicResource blueBrush}" CornerRadius="10 10 0 0" BorderThickness="0">
                <Grid>
                    <TextBlock x:Name="tbxTitle" Text="{x:Static str:Resources.strLookWinTitle}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="20 0" FontSize="20"
                               Foreground="White" FontWeight="Bold" />
                </Grid>
            </Border>
            <Border Grid.Row="1" Background="White" BorderThickness="2,0,2,0" BorderBrush="{DynamicResource blueBrush}">
                <Grid>
                    <TextBlock Grid.Row="1" Grid.Column="2" x:Name="tbError" Text="" Foreground="Red" FontSize="16" 
                   VerticalAlignment="Center" HorizontalAlignment="Left" Margin="20 20 5 0"/>
                </Grid>
            </Border>
 
            <Border Grid.Row="2" Background="White" CornerRadius="0 0 10 10" BorderThickness="2,0,2,2" BorderBrush="{DynamicResource blueBrush}">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="60"/>
                    </Grid.RowDefinitions>
                    <Grid Grid.Row="0">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="100"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <TextBox x:Name="textblockText" Grid.Column="0" VerticalAlignment="Center" Text="{x:Static str:Resources.strLookPwd}" HorizontalAlignment="Center" Margin="0 0 0 0" FontSize="16"/>
                        <PasswordBox x:Name="textblockMsg" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Left"  Background="{DynamicResource lightGrayBrush}"
                     BorderThickness="0" Margin="0 0 0 0" FontSize="32" Width="250" Height="40" />
                    </Grid>
                    <Grid Grid.Row="1">
                        <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}" Visibility="Hidden"/>
                        <Button x:Name="btnRetry" Grid.Column="1" Content="{x:Static str:Resources.btnOK}" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="20 0" FontSize="16" Width="80" Height="40"
                            Foreground="White" Style="{DynamicResource BlueButtonStyle}" Background="{DynamicResource blueBrush}" Click="btnRetry_Click"/>
 
                    </Grid>
 
                </Grid>
            </Border>
        </Grid>
    </Grid>
</Window>