|
7 | 7 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
8 | 8 | xmlns:ui="http://schemas.modernwpf.com/2019"
|
9 | 9 | Title="{DynamicResource changePriorityWindow}"
|
10 |
| - Background="#F3F3F3" |
11 |
| - BorderBrush="#cecece" |
| 10 | + Width="350" |
| 11 | + Background="{DynamicResource PopuBGColor}" |
| 12 | + Foreground="{DynamicResource PopupTextColor}" |
12 | 13 | Loaded="PriorityChangeWindow_Loaded"
|
13 | 14 | MouseDown="window_MouseDown"
|
14 | 15 | ResizeMode="NoResize"
|
15 |
| - SizeToContent="WidthAndHeight" |
| 16 | + SizeToContent="Height" |
16 | 17 | WindowStartupLocation="CenterScreen"
|
17 | 18 | mc:Ignorable="d">
|
18 |
| - <Grid Width="350"> |
| 19 | + <WindowChrome.WindowChrome> |
| 20 | + <WindowChrome CaptionHeight="32" ResizeBorderThickness="{x:Static SystemParameters.WindowResizeBorderThickness}" /> |
| 21 | + </WindowChrome.WindowChrome> |
| 22 | + <Grid> |
19 | 23 | <Grid.RowDefinitions>
|
20 | 24 | <RowDefinition />
|
21 | 25 | <RowDefinition Height="80" />
|
22 | 26 | </Grid.RowDefinitions>
|
23 |
| - <Border |
24 |
| - Padding="26,26,26,0" |
25 |
| - Background="#ffffff" |
26 |
| - BorderBrush="#e5e5e5" |
27 |
| - BorderThickness="0,0,0,1"> |
28 |
| - <Grid> |
| 27 | + |
| 28 | + <StackPanel Grid.Row="0"> |
| 29 | + <StackPanel> |
| 30 | + <Grid> |
| 31 | + <Grid.ColumnDefinitions> |
| 32 | + <ColumnDefinition Width="Auto" /> |
| 33 | + <ColumnDefinition Width="*" /> |
| 34 | + <ColumnDefinition Width="Auto" /> |
| 35 | + <ColumnDefinition Width="Auto" /> |
| 36 | + <ColumnDefinition Width="Auto" /> |
| 37 | + </Grid.ColumnDefinitions> |
| 38 | + <Button |
| 39 | + Grid.Column="4" |
| 40 | + Click="BtnCancel_OnClick" |
| 41 | + Style="{StaticResource TitleBarCloseButtonStyle}"> |
| 42 | + <Path |
| 43 | + Width="46" |
| 44 | + Height="32" |
| 45 | + Data="M 18,11 27,20 M 18,20 27,11" |
| 46 | + Stroke="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type Button}}}" |
| 47 | + StrokeThickness="1"> |
| 48 | + <Path.Style> |
| 49 | + <Style TargetType="Path"> |
| 50 | + <Style.Triggers> |
| 51 | + <DataTrigger Binding="{Binding Path=IsActive, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" Value="False"> |
| 52 | + <Setter Property="Opacity" Value="0.5" /> |
| 53 | + </DataTrigger> |
| 54 | + </Style.Triggers> |
| 55 | + </Style> |
| 56 | + </Path.Style> |
| 57 | + </Path> |
| 58 | + </Button> |
| 59 | + </Grid> |
| 60 | + </StackPanel> |
| 61 | + <StackPanel Margin="26,12,26,0"> |
| 62 | + <StackPanel Margin="0,0,0,12"> |
| 63 | + <TextBlock |
| 64 | + Grid.Column="0" |
| 65 | + Margin="0,0,0,0" |
| 66 | + FontFamily="Segoe UI" |
| 67 | + FontSize="20" |
| 68 | + FontWeight="SemiBold" |
| 69 | + Text="{DynamicResource changePriorityWindow}" |
| 70 | + TextAlignment="Left" /> |
| 71 | + </StackPanel> |
29 | 72 | <StackPanel>
|
30 |
| - <StackPanel Grid.Row="0" Margin="0,0,0,12"> |
31 |
| - <TextBlock |
32 |
| - Grid.Column="0" |
33 |
| - Margin="0,0,0,0" |
34 |
| - FontFamily="Segoe UI" |
35 |
| - FontSize="20" |
36 |
| - FontWeight="SemiBold" |
37 |
| - Text="{DynamicResource changePriorityWindow}" |
38 |
| - TextAlignment="Left" /> |
39 |
| - </StackPanel> |
40 |
| - <StackPanel> |
41 |
| - <TextBlock |
42 |
| - FontSize="14" |
43 |
| - Foreground="#1b1b1b" |
44 |
| - Text="{DynamicResource priority_tips}" |
45 |
| - TextAlignment="Left" |
46 |
| - TextWrapping="WrapWithOverflow" /> |
47 |
| - </StackPanel> |
| 73 | + <TextBlock |
| 74 | + FontSize="14" |
| 75 | + Text="{DynamicResource priority_tips}" |
| 76 | + TextAlignment="Left" |
| 77 | + TextWrapping="WrapWithOverflow" /> |
| 78 | + </StackPanel> |
48 | 79 |
|
49 |
| - <StackPanel Margin="0,24,0,24" Orientation="Horizontal"> |
50 |
| - <TextBlock |
51 |
| - HorizontalAlignment="Right" |
52 |
| - VerticalAlignment="Center" |
53 |
| - FontSize="14" |
54 |
| - Text="{DynamicResource priority}" /> |
55 |
| - <ui:NumberBox |
56 |
| - x:Name="tbAction" |
57 |
| - Width="190" |
58 |
| - Height="34" |
59 |
| - Margin="10,0,15,0" |
60 |
| - HorizontalAlignment="Left" |
61 |
| - VerticalAlignment="Center" |
62 |
| - Minimum="0" |
63 |
| - SmallChange="1" |
64 |
| - SpinButtonPlacementMode="Inline" /> |
65 |
| - </StackPanel> |
| 80 | + <StackPanel Margin="0,24,0,24" Orientation="Horizontal"> |
| 81 | + <TextBlock |
| 82 | + HorizontalAlignment="Right" |
| 83 | + VerticalAlignment="Center" |
| 84 | + FontSize="14" |
| 85 | + Text="{DynamicResource priority}" /> |
| 86 | + <ui:NumberBox |
| 87 | + x:Name="tbAction" |
| 88 | + Width="200" |
| 89 | + Margin="10,0,15,0" |
| 90 | + HorizontalAlignment="Left" |
| 91 | + VerticalAlignment="Center" |
| 92 | + CornerRadius="4" |
| 93 | + Minimum="0" |
| 94 | + SmallChange="1" |
| 95 | + SpinButtonPlacementMode="Inline" /> |
66 | 96 | </StackPanel>
|
67 |
| - </Grid> |
68 |
| - </Border> |
69 |
| - <StackPanel |
70 |
| - Grid.Row="1" |
71 |
| - HorizontalAlignment="Center" |
72 |
| - Orientation="Horizontal"> |
73 |
| - <Button |
74 |
| - x:Name="btnCancel" |
75 |
| - Width="100" |
76 |
| - Height="30" |
77 |
| - Margin="0,0,5,0" |
78 |
| - Click="BtnCancel_OnClick" |
79 |
| - Content="{DynamicResource cancel}" /> |
80 |
| - <Button |
81 |
| - x:Name="btnDone" |
82 |
| - Width="100" |
83 |
| - Height="30" |
84 |
| - Margin="5,0,0,0" |
85 |
| - Click="btnDone_OnClick"> |
86 |
| - <TextBlock x:Name="lblAdd" Text="{DynamicResource done}" /> |
87 |
| - </Button> |
| 97 | + </StackPanel> |
88 | 98 | </StackPanel>
|
| 99 | + <Border |
| 100 | + Grid.Row="1" |
| 101 | + Background="{DynamicResource PopupButtonAreaBGColor}" |
| 102 | + BorderBrush="{DynamicResource PopupButtonAreaBorderColor}" |
| 103 | + BorderThickness="0,1,0,0"> |
| 104 | + <StackPanel HorizontalAlignment="Center" Orientation="Horizontal"> |
| 105 | + <Button |
| 106 | + x:Name="btnCancel" |
| 107 | + Width="100" |
| 108 | + Height="30" |
| 109 | + Margin="0,0,5,0" |
| 110 | + Click="BtnCancel_OnClick" |
| 111 | + Content="{DynamicResource cancel}" /> |
| 112 | + <Button |
| 113 | + x:Name="btnDone" |
| 114 | + Width="100" |
| 115 | + Height="30" |
| 116 | + Margin="5,0,0,0" |
| 117 | + Click="btnDone_OnClick"> |
| 118 | + <TextBlock x:Name="lblAdd" Text="{DynamicResource done}" /> |
| 119 | + </Button> |
| 120 | + </StackPanel> |
| 121 | + </Border> |
89 | 122 | </Grid>
|
90 | 123 | </Window>
|
0 commit comments