|
7 | 7 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
8 | 8 | xmlns:ui="http://schemas.modernwpf.com/2019"
|
9 | 9 | Title="{DynamicResource fileManagerWindow}"
|
10 |
| - Background="#f3f3f3" |
| 10 | + Width="600" |
| 11 | + Background="{DynamicResource PopuBGColor}" |
11 | 12 | DataContext="{Binding RelativeSource={RelativeSource Self}}"
|
| 13 | + Foreground="{DynamicResource PopupTextColor}" |
12 | 14 | ResizeMode="NoResize"
|
13 |
| - SizeToContent="WidthAndHeight" |
| 15 | + SizeToContent="Height" |
14 | 16 | WindowStartupLocation="CenterScreen"
|
15 | 17 | mc:Ignorable="d">
|
16 |
| - <Grid Width="600"> |
| 18 | + <WindowChrome.WindowChrome> |
| 19 | + <WindowChrome CaptionHeight="32" ResizeBorderThickness="{x:Static SystemParameters.WindowResizeBorderThickness}" /> |
| 20 | + </WindowChrome.WindowChrome> |
| 21 | + <!--<Border |
| 22 | + Padding="26,26,26,0" |
| 23 | + Background="{DynamicResource PopupContentAreaBGColor}" |
| 24 | + BorderBrush="{DynamicResource PopupContentAreaBorderColor}" |
| 25 | + BorderThickness="0,0,0,1">--> |
| 26 | + <Grid> |
17 | 27 | <Grid.RowDefinitions>
|
18 | 28 | <RowDefinition />
|
19 | 29 | <RowDefinition Height="80" />
|
20 | 30 | </Grid.RowDefinitions>
|
21 |
| - <Border |
22 |
| - Padding="26,26,26,0" |
23 |
| - Background="#ffffff" |
24 |
| - BorderBrush="#e5e5e5" |
25 |
| - BorderThickness="0,0,0,1"> |
26 |
| - <Grid> |
| 31 | + <Grid> |
| 32 | + <StackPanel> |
27 | 33 | <StackPanel>
|
28 |
| - <StackPanel Grid.Row="0" Margin="0,0,0,12"> |
| 34 | + <Grid Grid.Row="0"> |
| 35 | + <Grid.ColumnDefinitions> |
| 36 | + <ColumnDefinition Width="Auto" /> |
| 37 | + <ColumnDefinition Width="*" /> |
| 38 | + <ColumnDefinition Width="Auto" /> |
| 39 | + <ColumnDefinition Width="Auto" /> |
| 40 | + <ColumnDefinition Width="Auto" /> |
| 41 | + </Grid.ColumnDefinitions> |
| 42 | + <Button |
| 43 | + Grid.Column="4" |
| 44 | + Click="btnCancel_Click" |
| 45 | + Style="{StaticResource TitleBarCloseButtonStyle}"> |
| 46 | + <Path |
| 47 | + Width="46" |
| 48 | + Height="32" |
| 49 | + Data="M 18,11 27,20 M 18,20 27,11" |
| 50 | + Stroke="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType={x:Type Button}}}" |
| 51 | + StrokeThickness="1"> |
| 52 | + <Path.Style> |
| 53 | + <Style TargetType="Path"> |
| 54 | + <Style.Triggers> |
| 55 | + <DataTrigger Binding="{Binding Path=IsActive, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" Value="False"> |
| 56 | + <Setter Property="Opacity" Value="0.5" /> |
| 57 | + </DataTrigger> |
| 58 | + </Style.Triggers> |
| 59 | + </Style> |
| 60 | + </Path.Style> |
| 61 | + </Path> |
| 62 | + </Button> |
| 63 | + </Grid> |
| 64 | + </StackPanel> |
| 65 | + <StackPanel Margin="26,12,26,0"> |
| 66 | + <StackPanel Grid.Row="1" Margin="0,0,0,12"> |
29 | 67 | <TextBlock
|
30 | 68 | Grid.Column="0"
|
31 | 69 | Margin="0,0,0,0"
|
|
38 | 76 | <StackPanel>
|
39 | 77 | <TextBlock
|
40 | 78 | FontSize="14"
|
41 |
| - Foreground="#1b1b1b" |
42 | 79 | Text="{DynamicResource fileManager_tips}"
|
43 | 80 | TextAlignment="Left"
|
44 | 81 | TextWrapping="WrapWithOverflow" />
|
45 |
| - <TextBlock |
46 |
| - Margin="0,14,0,0" |
47 |
| - FontSize="14" |
48 |
| - Foreground="#1b1b1b"> |
| 82 | + <TextBlock Margin="0,14,0,0" FontSize="14"> |
49 | 83 | <TextBlock Text="{DynamicResource fileManager_tips2}" TextWrapping="WrapWithOverflow" />
|
50 | 84 | </TextBlock>
|
51 | 85 | </StackPanel>
|
|
86 | 120 | <Rectangle
|
87 | 121 | Height="1"
|
88 | 122 | Margin="0,20,0,12"
|
89 |
| - Fill="#cecece" /> |
| 123 | + Fill="{StaticResource Color03B}" /> |
90 | 124 | <StackPanel
|
91 | 125 | Margin="0,0,0,0"
|
92 | 126 | HorizontalAlignment="Stretch"
|
|
199 | 233 | </Grid>
|
200 | 234 | </StackPanel>
|
201 | 235 | </StackPanel>
|
202 |
| - </Grid> |
| 236 | + </StackPanel> |
| 237 | + </Grid> |
| 238 | + |
| 239 | + <Border |
| 240 | + Grid.Row="2" |
| 241 | + Background="{DynamicResource PopupButtonAreaBGColor}" |
| 242 | + BorderBrush="{DynamicResource PopupButtonAreaBorderColor}" |
| 243 | + BorderThickness="0,1,0,0"> |
| 244 | + <StackPanel HorizontalAlignment="Center" Orientation="Horizontal"> |
| 245 | + <Button |
| 246 | + x:Name="btnCancel" |
| 247 | + Width="100" |
| 248 | + Height="30" |
| 249 | + Margin="0,0,5,0" |
| 250 | + Click="btnCancel_Click" |
| 251 | + Content="{DynamicResource cancel}" /> |
| 252 | + <Button |
| 253 | + x:Name="btnDone" |
| 254 | + Width="100" |
| 255 | + Height="30" |
| 256 | + Margin="5,0,0,0" |
| 257 | + Click="btnDone_Click" |
| 258 | + Content="{DynamicResource done}" |
| 259 | + ForceCursor="True"> |
| 260 | + <Button.Style> |
| 261 | + <Style BasedOn="{StaticResource DefaultButtonStyle}" TargetType="{x:Type Button}"> |
| 262 | + <Style.Triggers> |
| 263 | + <DataTrigger Binding="{Binding Text.Length, ElementName=ProfileTextBox, UpdateSourceTrigger=PropertyChanged}" Value="0"> |
| 264 | + <Setter Property="IsEnabled" Value="False" /> |
| 265 | + </DataTrigger> |
| 266 | + <DataTrigger Binding="{Binding Text.Length, ElementName=PathTextBox, UpdateSourceTrigger=PropertyChanged}" Value="0"> |
| 267 | + <Setter Property="IsEnabled" Value="False" /> |
| 268 | + </DataTrigger> |
| 269 | + <DataTrigger Binding="{Binding Text.Length, ElementName=directoryArgTextBox, UpdateSourceTrigger=PropertyChanged}" Value="0"> |
| 270 | + <Setter Property="IsEnabled" Value="False" /> |
| 271 | + </DataTrigger> |
| 272 | + <DataTrigger Binding="{Binding Text.Length, ElementName=fileArgTextBox, UpdateSourceTrigger=PropertyChanged}" Value="0"> |
| 273 | + <Setter Property="IsEnabled" Value="False" /> |
| 274 | + </DataTrigger> |
| 275 | + </Style.Triggers> |
| 276 | + </Style> |
| 277 | + </Button.Style> |
| 278 | + </Button> |
| 279 | + </StackPanel> |
203 | 280 | </Border>
|
204 |
| - <StackPanel |
205 |
| - Grid.Row="1" |
206 |
| - HorizontalAlignment="Center" |
207 |
| - Orientation="Horizontal"> |
208 |
| - <Button |
209 |
| - x:Name="btnCancel" |
210 |
| - Width="100" |
211 |
| - Height="30" |
212 |
| - Margin="0,0,5,0" |
213 |
| - Click="btnCancel_Click" |
214 |
| - Content="{DynamicResource cancel}" /> |
215 |
| - <Button |
216 |
| - x:Name="btnDone" |
217 |
| - Width="100" |
218 |
| - Height="30" |
219 |
| - Margin="5,0,0,0" |
220 |
| - Click="btnDone_Click" |
221 |
| - Content="{DynamicResource done}" |
222 |
| - ForceCursor="True"> |
223 |
| - <Button.Style> |
224 |
| - <Style BasedOn="{StaticResource DefaultButtonStyle}" TargetType="{x:Type Button}"> |
225 |
| - <Style.Triggers> |
226 |
| - <DataTrigger Binding="{Binding Text.Length, ElementName=ProfileTextBox, UpdateSourceTrigger=PropertyChanged}" Value="0"> |
227 |
| - <Setter Property="IsEnabled" Value="False" /> |
228 |
| - </DataTrigger> |
229 |
| - <DataTrigger Binding="{Binding Text.Length, ElementName=PathTextBox, UpdateSourceTrigger=PropertyChanged}" Value="0"> |
230 |
| - <Setter Property="IsEnabled" Value="False" /> |
231 |
| - </DataTrigger> |
232 |
| - <DataTrigger Binding="{Binding Text.Length, ElementName=directoryArgTextBox, UpdateSourceTrigger=PropertyChanged}" Value="0"> |
233 |
| - <Setter Property="IsEnabled" Value="False" /> |
234 |
| - </DataTrigger> |
235 |
| - <DataTrigger Binding="{Binding Text.Length, ElementName=fileArgTextBox, UpdateSourceTrigger=PropertyChanged}" Value="0"> |
236 |
| - <Setter Property="IsEnabled" Value="False" /> |
237 |
| - </DataTrigger> |
238 |
| - </Style.Triggers> |
239 |
| - </Style> |
240 |
| - </Button.Style> |
241 |
| - </Button> |
242 |
| - </StackPanel> |
243 | 281 | </Grid>
|
244 | 282 | </Window>
|
0 commit comments