|
15 | 15 | <sys:Double x:Key="QrcodeWidth">400</sys:Double> |
16 | 16 | </UserControl.Resources> |
17 | 17 |
|
18 | | - <Grid Margin="32"> |
19 | | - <Grid.RowDefinitions> |
20 | | - <RowDefinition Height="Auto" /> |
21 | | - <RowDefinition Height="Auto" /> |
22 | | - <RowDefinition Height="80" /> |
23 | | - </Grid.RowDefinitions> |
| 18 | + <DockPanel Margin="{StaticResource Margin8}"> |
| 19 | + <StackPanel Margin="{StaticResource Margin8}" DockPanel.Dock="Bottom"> |
| 20 | + <Button |
| 21 | + Width="100" |
| 22 | + HorizontalAlignment="Right" |
| 23 | + Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}" |
| 24 | + Content="{x:Static resx:ResUI.menuClose}" |
| 25 | + IsCancel="True" |
| 26 | + IsDefault="True" |
| 27 | + Style="{StaticResource DefButton}" /> |
| 28 | + </StackPanel> |
24 | 29 |
|
25 | | - <Image |
26 | | - x:Name="imgQrcode" |
27 | | - Grid.Row="0" |
28 | | - Width="{StaticResource QrcodeWidth}" |
29 | | - Height="{StaticResource QrcodeWidth}" |
30 | | - Stretch="UniformToFill" /> |
| 30 | + <Grid Margin="{StaticResource Margin8}"> |
| 31 | + <Grid.RowDefinitions> |
| 32 | + <RowDefinition Height="Auto" /> |
| 33 | + <RowDefinition Height="Auto" /> |
| 34 | + </Grid.RowDefinitions> |
31 | 35 |
|
32 | | - <TextBox |
33 | | - x:Name="txtContent" |
34 | | - Grid.Row="1" |
35 | | - Width="{StaticResource QrcodeWidth}" |
36 | | - Margin="0,8" |
37 | | - VerticalAlignment="Center" |
38 | | - IsReadOnly="True" |
39 | | - MaxLines="3" |
40 | | - TextWrapping="Wrap" |
41 | | - VerticalScrollBarVisibility="Auto" /> |
| 36 | + <Image |
| 37 | + x:Name="imgQrcode" |
| 38 | + Grid.Row="0" |
| 39 | + Width="{StaticResource QrcodeWidth}" |
| 40 | + Height="{StaticResource QrcodeWidth}" |
| 41 | + Stretch="UniformToFill" /> |
42 | 42 |
|
43 | | - <Button |
44 | | - Grid.Row="2" |
45 | | - Width="100" |
46 | | - Margin="{StaticResource Margin8}" |
47 | | - HorizontalAlignment="Right" |
48 | | - Command="{x:Static materialDesign:DialogHost.CloseDialogCommand}" |
49 | | - Content="{x:Static resx:ResUI.menuClose}" |
50 | | - IsCancel="True" |
51 | | - IsDefault="True" |
52 | | - Style="{StaticResource DefButton}" /> |
53 | | - </Grid> |
| 43 | + <TextBox |
| 44 | + x:Name="txtContent" |
| 45 | + Grid.Row="1" |
| 46 | + Width="{StaticResource QrcodeWidth}" |
| 47 | + Margin="0,8" |
| 48 | + VerticalAlignment="Center" |
| 49 | + IsReadOnly="True" |
| 50 | + MaxLines="3" |
| 51 | + TextWrapping="Wrap" |
| 52 | + VerticalScrollBarVisibility="Auto" /> |
| 53 | + </Grid> |
| 54 | + </DockPanel> |
54 | 55 | </UserControl> |
0 commit comments