|
2403 | 2403 | <TextBlock Style="{DynamicResource SettingSubTitleLabel}" Text="{DynamicResource AnimationTip}" />
|
2404 | 2404 | </StackPanel>
|
2405 | 2405 | <ui:ToggleSwitch
|
| 2406 | + x:Name="Animation" |
2406 | 2407 | Grid.Row="0"
|
2407 | 2408 | Grid.Column="2"
|
2408 | 2409 | IsOn="{Binding UseAnimation, Mode=TwoWay}"
|
|
2414 | 2415 | </TextBlock>
|
2415 | 2416 | </ItemsControl>
|
2416 | 2417 | </Border>
|
2417 |
| - <Border |
2418 |
| - Margin="0" |
2419 |
| - BorderThickness="0" |
2420 |
| - Style="{DynamicResource SettingGroupBox}"> |
| 2418 | + <Separator |
| 2419 | + Width="Auto" |
| 2420 | + BorderThickness="1" |
| 2421 | + Style="{StaticResource SettingSeparatorStyle}" /> |
| 2422 | + <Border Margin="0" BorderThickness="0"> |
| 2423 | + <Border.Style> |
| 2424 | + <Style BasedOn="{StaticResource SettingGroupBox}" TargetType="Border"> |
| 2425 | + <Setter Property="Visibility" Value="Collapsed" /> |
| 2426 | + <Style.Triggers> |
| 2427 | + <DataTrigger Binding="{Binding ElementName=Animation, Path=IsOn}" Value="True"> |
| 2428 | + <Setter Property="Visibility" Value="Visible" /> |
| 2429 | + </DataTrigger> |
| 2430 | + </Style.Triggers> |
| 2431 | + </Style> |
| 2432 | + </Border.Style> |
| 2433 | + |
2421 | 2434 | <ItemsControl Style="{StaticResource SettingGrid}">
|
2422 | 2435 | <StackPanel Style="{StaticResource TextPanel}">
|
2423 |
| - <TextBlock Style="{DynamicResource SettingTitleLabel}" Text="{DynamicResource animationLength}" /> |
2424 |
| - <TextBlock Style="{DynamicResource SettingSubTitleLabel}" Text="{DynamicResource animationLengthToolTip}" /> |
| 2436 | + <TextBlock Style="{DynamicResource SettingTitleLabel}" Text="{DynamicResource AnimationSpeed}" /> |
| 2437 | + <TextBlock Style="{DynamicResource SettingSubTitleLabel}" Text="{DynamicResource AnimationSpeedTip}" /> |
2425 | 2438 | </StackPanel>
|
2426 | 2439 | <StackPanel Grid.Column="2" Orientation="Horizontal">
|
2427 |
| - <TextBlock |
2428 |
| - Width="Auto" |
2429 |
| - Margin="0,0,8,2" |
2430 |
| - VerticalAlignment="Center" |
2431 |
| - Foreground="{DynamicResource Color05B}" |
2432 |
| - Text="{Binding ElementName=AnimationLengthValue, Path=Value, UpdateSourceTrigger=PropertyChanged}" |
2433 |
| - TextAlignment="Right" /> |
2434 |
| - <Slider |
2435 |
| - Name="AnimationLengthValue" |
2436 |
| - Width="250" |
| 2440 | + <ComboBox |
| 2441 | + x:Name="AnimationSpeed" |
| 2442 | + MinWidth="160" |
2437 | 2443 | Margin="0,0,18,0"
|
2438 | 2444 | VerticalAlignment="Center"
|
2439 |
| - IsMoveToPointEnabled="True" |
2440 |
| - IsSnapToTickEnabled="True" |
2441 |
| - Maximum="2000" |
2442 |
| - Minimum="100" |
2443 |
| - TickFrequency="10" |
2444 |
| - Value="{Binding AnimationLength, Mode=TwoWay}" /> |
| 2445 | + DisplayMemberPath="Display" |
| 2446 | + FontSize="14" |
| 2447 | + ItemsSource="{Binding AnimationSpeeds}" |
| 2448 | + SelectedValue="{Binding Settings.AnimationSpeed}" |
| 2449 | + SelectedValuePath="Value"> |
| 2450 | + </ComboBox> |
| 2451 | + <StackPanel Margin="0,0,18,0" Orientation="Horizontal"> |
| 2452 | + <StackPanel.Style> |
| 2453 | + <Style TargetType="StackPanel"> |
| 2454 | + <Setter Property="Visibility" Value="Collapsed" /> |
| 2455 | + <Style.Triggers> |
| 2456 | + <DataTrigger Binding="{Binding ElementName=AnimationSpeed, Path=SelectedValue}" Value="{x:Static userSettings:AnimationSpeeds.Custom}"> |
| 2457 | + <Setter Property="Visibility" Value="Visible" /> |
| 2458 | + </DataTrigger> |
| 2459 | + </Style.Triggers> |
| 2460 | + </Style> |
| 2461 | + </StackPanel.Style> |
| 2462 | + <TextBox |
| 2463 | + Height="35" |
| 2464 | + MinWidth="80" |
| 2465 | + Text="{Binding Settings.CustomAnimationLength}" |
| 2466 | + TextWrapping="NoWrap" /> |
| 2467 | + </StackPanel> |
2445 | 2468 | </StackPanel>
|
2446 | 2469 | <TextBlock Style="{StaticResource Glyph}">
|
2447 | 2470 | 
|
2448 | 2471 | </TextBlock>
|
2449 | 2472 | </ItemsControl>
|
2450 | 2473 | </Border>
|
2451 |
| - <Separator |
2452 |
| - Width="Auto" |
2453 |
| - BorderThickness="1" |
2454 |
| - Style="{StaticResource SettingSeparatorStyle}" /> |
2455 |
| - <Border |
2456 |
| - Margin="0" |
2457 |
| - BorderThickness="0" |
2458 |
| - Style="{DynamicResource SettingGroupBox}"> |
2459 |
| - <ItemsControl Style="{StaticResource SettingGrid}"> |
2460 |
| - <StackPanel Style="{StaticResource TextPanel}"> |
2461 |
| - <TextBlock Style="{DynamicResource SettingTitleLabel}" Text="{DynamicResource SoundEffect}" /> |
2462 |
| - <TextBlock Style="{DynamicResource SettingSubTitleLabel}" Text="{DynamicResource SoundEffectTip}" /> |
2463 |
| - </StackPanel> |
2464 |
| - <ui:ToggleSwitch |
| 2474 | + </StackPanel> |
| 2475 | + </Border> |
| 2476 | + |
| 2477 | + |
| 2478 | + <Border |
| 2479 | + Margin="0" |
| 2480 | + BorderThickness="0" |
| 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 |
2465 | 2488 | Grid.Row="0"
|
2466 | 2489 | Grid.Column="2"
|
2467 | 2490 | IsOn="{Binding UseSound, Mode=TwoWay}"
|
2468 | 2491 | OffContent="{DynamicResource disable}"
|
2469 | 2492 | OnContent="{DynamicResource enable}"
|
2470 | 2493 | Style="{DynamicResource SideToggleSwitch}" />
|
2471 |
| - <TextBlock Style="{StaticResource Glyph}"> |
| 2494 | + <TextBlock Style="{StaticResource Glyph}"> |
2472 | 2495 | 
|
2473 |
| - </TextBlock> |
2474 |
| - </ItemsControl> |
2475 |
| - </Border> |
2476 |
| - </StackPanel> |
| 2496 | + </TextBlock> |
| 2497 | + </ItemsControl> |
2477 | 2498 | </Border>
|
2478 | 2499 |
|
2479 | 2500 | <Border Margin="0,12,0,12" Style="{DynamicResource SettingGroupBox}">
|
|
0 commit comments