|
365 | 365 | <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="true" />
|
366 | 366 | <Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="true" />
|
367 | 367 | </MultiDataTrigger.Conditions>
|
368 |
| - <Setter Property="BorderBrush" Value="{DynamicResource PrimaryHueMidBrush}" /> |
| 368 | + <Setter Property="BorderBrush" Value="{Binding Path=(wpf:TextFieldAssist.UnderlineBrush), RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" /> |
369 | 369 | </MultiDataTrigger>
|
370 | 370 | <Trigger Property="IsPressed" Value="true">
|
371 |
| - <Setter TargetName="arrow" Property="Fill" Value="{DynamicResource PrimaryHueDarkBrush}" /> |
| 371 | + <Setter TargetName="arrow" Property="Fill" Value="{DynamicResource PrimaryHueMidBrush}" /> |
372 | 372 | </Trigger>
|
373 | 373 | <Trigger Property="IsEnabled" Value="false">
|
374 | 374 | <Setter TargetName="arrow" Property="Fill" Value="{DynamicResource MaterialDesignCheckBoxDisabled}" />
|
|
451 | 451 | <wpf:Underline x:Name="Underline"
|
452 | 452 | Grid.ColumnSpan="2"
|
453 | 453 | IsActive="{Binding ElementName=PART_EditableTextBox, Path=IsKeyboardFocused}"
|
454 |
| - Visibility="{Binding Path=(wpf:TextFieldAssist.DecorationVisibility), RelativeSource={RelativeSource TemplatedParent}}"/> |
| 454 | + Visibility="{Binding Path=(wpf:TextFieldAssist.DecorationVisibility), RelativeSource={RelativeSource TemplatedParent}}" |
| 455 | + Background="{Binding Path=(wpf:TextFieldAssist.UnderlineBrush), RelativeSource={RelativeSource TemplatedParent}}" /> |
455 | 456 |
|
456 | 457 | <wpf:ComboBoxPopup x:Name="PART_Popup"
|
457 | 458 | AllowsTransparency="true"
|
|
513 | 514 | <Condition Property="wpf:HintAssist.IsFloating" Value="True" />
|
514 | 515 | <Condition Property="IsKeyboardFocusWithin" Value="True" />
|
515 | 516 | </MultiTrigger.Conditions>
|
516 |
| - <Setter TargetName="Hint" Property="Foreground" Value="{DynamicResource PrimaryHueMidBrush}" /> |
| 517 | + <Setter TargetName="Hint" Property="Foreground" Value="{Binding Path=(wpf:HintAssist.Foreground), RelativeSource={RelativeSource TemplatedParent}}" /> |
517 | 518 | <Setter TargetName="Hint" Property="HintOpacity" Value="1" />
|
518 | 519 | </MultiTrigger>
|
519 | 520 | <MultiTrigger>
|
|
522 | 523 | <Condition SourceName="Hint" Property="IsHintInFloatingPosition" Value="True" />
|
523 | 524 | <Condition Property="IsKeyboardFocusWithin" Value="True" />
|
524 | 525 | </MultiTrigger.Conditions>
|
525 |
| - <Setter TargetName="Hint" Property="Foreground" Value="{DynamicResource PrimaryHueMidBrush}" /> |
| 526 | + <Setter TargetName="Hint" Property="Foreground" Value="{Binding Path=(wpf:HintAssist.Foreground), RelativeSource={RelativeSource TemplatedParent}}" /> |
526 | 527 | <Setter TargetName="Hint" Property="HintOpacity" Value="1" />
|
527 | 528 | </MultiTrigger>
|
528 | 529 | <MultiTrigger>
|
529 | 530 | <MultiTrigger.Conditions>
|
530 | 531 | <Condition SourceName="Hint" Property="IsContentNullOrEmpty" Value="False" />
|
531 | 532 | <Condition SourceName="PART_EditableTextBox" Property="IsKeyboardFocused" Value="True" />
|
532 | 533 | </MultiTrigger.Conditions>
|
533 |
| - <Setter TargetName="Hint" Property="Foreground" Value="{DynamicResource PrimaryHueMidBrush}" /> |
| 534 | + <Setter TargetName="Hint" Property="Foreground" Value="{Binding Path=(wpf:HintAssist.Foreground), RelativeSource={RelativeSource TemplatedParent}}" /> |
534 | 535 | <Setter TargetName="Hint" Property="HintOpacity" Value="1" />
|
535 | 536 | </MultiTrigger>
|
536 | 537 | <MultiTrigger>
|
537 | 538 | <MultiTrigger.Conditions>
|
538 | 539 | <Condition SourceName="Hint" Property="IsContentNullOrEmpty" Value="False" />
|
539 | 540 | <Condition Property="IsDropDownOpen" Value="True" />
|
540 | 541 | </MultiTrigger.Conditions>
|
541 |
| - <Setter TargetName="Hint" Property="Foreground" Value="{DynamicResource PrimaryHueMidBrush}" /> |
| 542 | + <Setter TargetName="Hint" Property="Foreground" Value="{Binding Path=(wpf:HintAssist.Foreground), RelativeSource={RelativeSource TemplatedParent}}" /> |
542 | 543 | <Setter TargetName="Hint" Property="HintOpacity" Value="1" />
|
543 | 544 | </MultiTrigger>
|
544 | 545 | <MultiTrigger>
|
|
568 | 569 | <Condition Property="IsMouseOver" Value="true" />
|
569 | 570 | <Condition Property="Validation.HasError" Value="false" />
|
570 | 571 | </MultiTrigger.Conditions>
|
571 |
| - <Setter Property="BorderBrush" Value="{DynamicResource PrimaryHueMidBrush}"/> |
572 |
| - <Setter TargetName="Underline" Property="Background" Value="{DynamicResource PrimaryHueMidBrush}"/> |
| 572 | + <Setter Property="BorderBrush" Value="{Binding Path=(wpf:TextFieldAssist.UnderlineBrush), RelativeSource={RelativeSource Self}}" /> |
| 573 | + <Setter TargetName="Underline" Property="Background" Value="{Binding Path=(wpf:TextFieldAssist.UnderlineBrush), RelativeSource={RelativeSource TemplatedParent}}" /> |
573 | 574 | </MultiTrigger>
|
574 | 575 | </ControlTemplate.Triggers>
|
575 | 576 | </ControlTemplate>
|
|
593 | 594 | <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
|
594 | 595 | <Setter Property="Validation.ErrorTemplate" Value="{StaticResource MaterialDesignValidationErrorTemplate}"/>
|
595 | 596 | <Setter Property="wpf:TextFieldAssist.TextBoxViewMargin" Value="1 0 1 0" />
|
| 597 | + <Setter Property="wpf:TextFieldAssist.UnderlineBrush" Value="{DynamicResource PrimaryHueMidBrush}" /> |
| 598 | + <Setter Property="wpf:HintAssist.Foreground" Value="{DynamicResource PrimaryHueMidBrush}" /> |
596 | 599 | <Setter Property="Template" Value="{StaticResource MaterialDesignFloatingHintComboBoxTemplate}" />
|
597 | 600 | <Style.Triggers>
|
598 | 601 | <Trigger Property="IsKeyboardFocused" Value="true">
|
599 |
| - <Setter Property="BorderBrush" Value="{DynamicResource PrimaryHueMidBrush}" /> |
| 602 | + <Setter Property="BorderBrush" Value="{Binding Path=(wpf:TextFieldAssist.UnderlineBrush), RelativeSource={RelativeSource Self}}" /> |
600 | 603 | </Trigger>
|
601 | 604 | <Trigger Property="IsKeyboardFocusWithin" Value="true">
|
602 |
| - <Setter Property="BorderBrush" Value="{DynamicResource PrimaryHueMidBrush}" /> |
| 605 | + <Setter Property="BorderBrush" Value="{Binding Path=(wpf:TextFieldAssist.UnderlineBrush), RelativeSource={RelativeSource Self}}" /> |
603 | 606 | </Trigger>
|
604 | 607 | <Trigger Property="IsEditable" Value="true">
|
605 | 608 | <Setter Property="IsTabStop" Value="false" />
|
|
0 commit comments