|
233 | 233 | HorizontalAlignment="Right"
|
234 | 234 | VerticalAlignment="Center"
|
235 | 235 | Data="M7,10L12,15L17,10H7Z"
|
236 |
| - Fill="{TemplateBinding BorderBrush}" |
| 236 | + Fill="{TemplateBinding Foreground}" |
237 | 237 | RenderTransformOrigin="0.5,0.5"
|
238 | 238 | Stretch="Uniform" />
|
239 | 239 | </Border>
|
|
318 | 318 | <ColumnDefinition Width="0" MinWidth="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" />
|
319 | 319 | </Grid.ColumnDefinitions>
|
320 | 320 | <ToggleButton x:Name="toggleButton"
|
| 321 | + Foreground="{TemplateBinding Foreground}" |
321 | 322 | Grid.ColumnSpan="2"
|
| 323 | + Opacity="{TemplateBinding wpf:HintAssist.HintOpacity}" |
322 | 324 | Padding="{TemplateBinding Padding}"
|
323 | 325 | VerticalContentAlignment="Center"
|
324 | 326 | BorderBrush="{TemplateBinding BorderBrush}"
|
|
476 | 478 | <Button x:Name="PART_ClearButton"
|
477 | 479 | Grid.Column="5"
|
478 | 480 | Height="Auto"
|
| 481 | + Opacity="{TemplateBinding wpf:HintAssist.HintOpacity}" |
479 | 482 | Padding="2,0,0,0"
|
480 | 483 | Command="{x:Static internal:ClearText.ClearCommand}"
|
481 | 484 | Focusable="False"
|
| 485 | + Foreground="{TemplateBinding Foreground}" |
482 | 486 | VerticalAlignment="Center"
|
483 | 487 | Style="{StaticResource MaterialDesignToolButton}">
|
484 | 488 | <Button.Visibility>
|
|
576 | 580 |
|
577 | 581 | <!-- Outlined combo box -->
|
578 | 582 | <Trigger Property="wpf:TextFieldAssist.HasOutlinedTextField" Value="True">
|
579 |
| - <Setter TargetName="HintWrapper" Property="Opacity" Value="{Binding Path=(wpf:HintAssist.HintOpacity), RelativeSource={RelativeSource TemplatedParent}}" /> |
580 | 583 | <Setter TargetName="PART_Popup" Property="ContentMargin" Value="6,0,6,6" />
|
581 | 584 | <Setter TargetName="PART_Popup" Property="ContentMinWidth" Value="{Binding Path=ActualWidth, ElementName=OuterBorder}" />
|
582 | 585 | <Setter TargetName="PART_Popup" Property="CornerRadius" Value="{Binding Path=(wpf:TextFieldAssist.TextFieldCornerRadius), RelativeSource={RelativeSource TemplatedParent}}" />
|
|
601 | 604 | </MultiTrigger>
|
602 | 605 |
|
603 | 606 | <!-- Floating hint -->
|
604 |
| - <Trigger Property="wpf:HintAssist.IsFloating" Value="True"> |
| 607 | + <MultiTrigger> |
| 608 | + <MultiTrigger.Conditions> |
| 609 | + <Condition Property="wpf:HintAssist.IsFloating" Value="True" /> |
| 610 | + <Condition SourceName="Hint" Property="IsHintInFloatingPosition" Value="True" /> |
| 611 | + </MultiTrigger.Conditions> |
605 | 612 | <Setter TargetName="Hint" Property="HintOpacity" Value="1" />
|
606 |
| - </Trigger> |
| 613 | + </MultiTrigger> |
607 | 614 | <MultiTrigger>
|
608 | 615 | <MultiTrigger.Conditions>
|
609 | 616 | <Condition Property="wpf:HintAssist.IsFloating" Value="True" />
|
610 | 617 | <Condition Property="IsKeyboardFocusWithin" Value="True" />
|
611 | 618 | </MultiTrigger.Conditions>
|
| 619 | + <Setter TargetName="Hint" Property="HintOpacity" Value="1" /> |
612 | 620 | <Setter TargetName="Hint" Property="Foreground" Value="{Binding Path=(wpf:HintAssist.Foreground), RelativeSource={RelativeSource TemplatedParent}}" />
|
613 | 621 | </MultiTrigger>
|
614 | 622 |
|
|
622 | 630 | <Setter TargetName="OuterBorder" Property="Opacity" Value="{x:Static wpf:Constants.TextBoxNotEnabledOpacity}" />
|
623 | 631 | <Setter TargetName="OuterBorder" Property="wpf:BottomDashedLineAdorner.IsAttached" Value="True" />
|
624 | 632 | <Setter TargetName="OuterBorder" Property="wpf:BottomDashedLineAdorner.DashStyle" Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(wpf:TextFieldAssist.HasFilledTextField), Converter={StaticResource BooleanToDashStyleConverter}}" />
|
| 633 | + <Setter TargetName="toggleButton" Property="Opacity" Value="1" /> |
625 | 634 | </MultiTrigger>
|
626 | 635 | <MultiTrigger>
|
627 | 636 | <MultiTrigger.Conditions>
|
628 | 637 | <Condition Property="IsEnabled" Value="False" />
|
629 | 638 | <Condition Property="wpf:TextFieldAssist.HasOutlinedTextField" Value="True" />
|
630 | 639 | </MultiTrigger.Conditions>
|
631 | 640 | <Setter Property="BorderBrush" Value="{DynamicResource MaterialDesign.Brush.ComboBox.OutlineInactiveBorder}" />
|
632 |
| - <Setter TargetName="HintWrapper" Property="Opacity"> |
633 |
| - <Setter.Value> |
634 |
| - <Binding Converter="{StaticResource MathMultiplyConverter}" |
635 |
| - ConverterParameter="{x:Static wpf:Constants.TextBoxNotEnabledOpacity}" |
636 |
| - Path="(wpf:HintAssist.HintOpacity)" |
637 |
| - RelativeSource="{RelativeSource TemplatedParent}" /> |
638 |
| - </Setter.Value> |
639 |
| - </Setter> |
640 |
| - <Setter TargetName="PART_ClearButton" Property="Opacity" Value="{x:Static wpf:Constants.TextBoxNotEnabledOpacity}" /> |
641 |
| - <Setter TargetName="PART_EditableTextBox" Property="Opacity" Value="{x:Static wpf:Constants.TextBoxNotEnabledOpacity}" /> |
642 |
| - <Setter TargetName="PrefixTextBlock" Property="Opacity" Value="{x:Static wpf:Constants.TextBoxNotEnabledOpacity}" /> |
643 |
| - <Setter TargetName="SuffixTextBlock" Property="Opacity" Value="{x:Static wpf:Constants.TextBoxNotEnabledOpacity}" /> |
| 641 | + <Setter TargetName="HintWrapper" Property="Opacity" Value="{x:Static wpf:Constants.TextBoxNotEnabledOpacity}" /> |
| 642 | + <Setter TargetName="PART_ClearButton" Property="Opacity" Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(wpf:HintAssist.HintOpacity), Converter={StaticResource MathMultiplyConverter}, ConverterParameter={x:Static wpf:Constants.TextBoxNotEnabledOpacity}}" /> |
| 643 | + <Setter TargetName="LeadingPackIcon" Property="Opacity" Value="{Binding ElementName=PART_ClearButton, Path=Opacity}" /> |
| 644 | + <Setter TargetName="PrefixTextBlock" Property="Opacity" Value="{Binding ElementName=PART_ClearButton, Path=Opacity}" /> |
| 645 | + <Setter TargetName="SuffixTextBlock" Property="Opacity" Value="{Binding ElementName=PART_ClearButton, Path=Opacity}" /> |
| 646 | + <Setter TargetName="TrailingPackIcon" Property="Opacity" Value="{Binding ElementName=PART_ClearButton, Path=Opacity}" /> |
644 | 647 | <Setter TargetName="contentPresenter" Property="Opacity" Value="{x:Static wpf:Constants.TextBoxNotEnabledOpacity}" />
|
| 648 | + <Setter TargetName="PART_EditableTextBox" Property="Opacity" Value="{x:Static wpf:Constants.TextBoxNotEnabledOpacity}" /> |
| 649 | + <Setter TargetName="toggleButton" Property="Opacity" Value="1" /> |
645 | 650 | </MultiTrigger>
|
646 | 651 |
|
647 | 652 | <!-- IsKeyboardFocused -->
|
|
0 commit comments