|
2474 | 2474 | </StackPanel> |
2475 | 2475 | </Border> |
2476 | 2476 |
|
2477 | | - |
2478 | 2477 | <Border |
2479 | | - Margin="0" |
2480 | | - BorderThickness="0" |
| 2478 | + Margin="0,12,0,12" |
| 2479 | + Padding="0" |
| 2480 | + CornerRadius="5" |
2481 | 2481 | Style="{DynamicResource SettingGroupBox}"> |
2482 | | - <ItemsControl Style="{StaticResource SettingGrid}"> |
2483 | | - <StackPanel Style="{StaticResource TextPanel}"> |
2484 | | - <TextBlock Style="{DynamicResource SettingTitleLabel}" Text="{DynamicResource SoundEffect}" /> |
2485 | | - <TextBlock Style="{DynamicResource SettingSubTitleLabel}" Text="{DynamicResource SoundEffectTip}" /> |
2486 | | - </StackPanel> |
2487 | | - <ui:ToggleSwitch |
| 2482 | + <StackPanel Orientation="Vertical"> |
| 2483 | + <Border |
| 2484 | + Margin="0" |
| 2485 | + BorderThickness="0" |
| 2486 | + Style="{DynamicResource SettingGroupBox}"> |
| 2487 | + <ItemsControl Style="{StaticResource SettingGrid}"> |
| 2488 | + <StackPanel Style="{StaticResource TextPanel}"> |
| 2489 | + <TextBlock Style="{DynamicResource SettingTitleLabel}" Text="{DynamicResource SoundEffect}" /> |
| 2490 | + <TextBlock Style="{DynamicResource SettingSubTitleLabel}" Text="{DynamicResource SoundEffectTip}" /> |
| 2491 | + </StackPanel> |
| 2492 | + <ui:ToggleSwitch |
| 2493 | + x:Name="SoundEffect" |
2488 | 2494 | Grid.Row="0" |
2489 | 2495 | Grid.Column="2" |
2490 | 2496 | IsOn="{Binding UseSound, Mode=TwoWay}" |
2491 | 2497 | OffContent="{DynamicResource disable}" |
2492 | 2498 | OnContent="{DynamicResource enable}" |
2493 | 2499 | Style="{DynamicResource SideToggleSwitch}" /> |
2494 | | - <TextBlock Style="{StaticResource Glyph}"> |
| 2500 | + <TextBlock Style="{StaticResource Glyph}"> |
| 2501 | +  |
| 2502 | + </TextBlock> |
| 2503 | + </ItemsControl> |
| 2504 | + </Border> |
| 2505 | + <Separator |
| 2506 | + Width="Auto" |
| 2507 | + BorderThickness="1" |
| 2508 | + Style="{StaticResource SettingSeparatorStyle}" /> |
| 2509 | + <Border Margin="0" BorderThickness="0"> |
| 2510 | + <Border.Style> |
| 2511 | + <Style BasedOn="{StaticResource SettingGroupBox}" TargetType="Border"> |
| 2512 | + <Setter Property="Visibility" Value="Collapsed" /> |
| 2513 | + <Style.Triggers> |
| 2514 | + <DataTrigger Binding="{Binding ElementName=SoundEffect, Path=IsOn}" Value="True"> |
| 2515 | + <Setter Property="Visibility" Value="Visible" /> |
| 2516 | + </DataTrigger> |
| 2517 | + </Style.Triggers> |
| 2518 | + </Style> |
| 2519 | + </Border.Style> |
| 2520 | + |
| 2521 | + <ItemsControl Style="{StaticResource SettingGrid}"> |
| 2522 | + <StackPanel Style="{StaticResource TextPanel}"> |
| 2523 | + <TextBlock Style="{DynamicResource SettingTitleLabel}" Text="{DynamicResource SoundEffectVolume}" /> |
| 2524 | + <TextBlock Style="{DynamicResource SettingSubTitleLabel}" Text="{DynamicResource SoundEffectVolumeTip}" /> |
| 2525 | + </StackPanel> |
| 2526 | + <StackPanel Grid.Column="2" Orientation="Horizontal"> |
| 2527 | + <TextBlock |
| 2528 | + Width="Auto" |
| 2529 | + Margin="0,0,8,2" |
| 2530 | + VerticalAlignment="Center" |
| 2531 | + Foreground="{DynamicResource Color05B}" |
| 2532 | + Text="{Binding ElementName=SoundEffectValue, Path=Value, UpdateSourceTrigger=PropertyChanged}" |
| 2533 | + TextAlignment="Right" /> |
| 2534 | + <Slider |
| 2535 | + Name="SoundEffectValue" |
| 2536 | + Width="250" |
| 2537 | + Margin="0,0,18,0" |
| 2538 | + VerticalAlignment="Center" |
| 2539 | + IsMoveToPointEnabled="True" |
| 2540 | + IsSnapToTickEnabled="True" |
| 2541 | + Maximum="100" |
| 2542 | + Minimum="0" |
| 2543 | + TickFrequency="1" |
| 2544 | + Value="{Binding SoundEffectVolume, Mode=TwoWay}" /> |
| 2545 | + </StackPanel> |
| 2546 | + <TextBlock Style="{StaticResource Glyph}"> |
2495 | 2547 |  |
2496 | | - </TextBlock> |
2497 | | - </ItemsControl> |
| 2548 | + </TextBlock> |
| 2549 | + </ItemsControl> |
| 2550 | + </Border> |
| 2551 | + </StackPanel> |
2498 | 2552 | </Border> |
2499 | 2553 |
|
2500 | 2554 | <Border Margin="0,12,0,12" Style="{DynamicResource SettingGroupBox}"> |
|
0 commit comments