|
546 | 546 | <Grid.ColumnDefinitions> |
547 | 547 | <ColumnDefinition /> |
548 | 548 | <ColumnDefinition Width="Auto" /> |
| 549 | + <ColumnDefinition Width="Auto" /> |
549 | 550 | </Grid.ColumnDefinitions> |
550 | 551 | <Grid |
551 | 552 | x:Name="grid" |
|
569 | 570 | Grid.Column="1" |
570 | 571 | Panel.ZIndex="1"> |
571 | 572 |
|
572 | | - <Grid.ColumnDefinitions> |
573 | | - <ColumnDefinition Width="*" /> |
574 | | - <ColumnDefinition Width="Auto" /> |
575 | | - </Grid.ColumnDefinitions> |
576 | 573 | <ScrollViewer |
577 | 574 | x:Name="PART_ContentHost" |
578 | 575 | wpf:ScrollViewerAssist.IgnorePadding="True" |
|
596 | 593 | Padding="{Binding ElementName=PART_ContentHost, Path=Padding}" |
597 | 594 | Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(wpf:PasswordBoxAssist.Password), UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" |
598 | 595 | Visibility="{Binding ElementName=ContentGrid, Path=(wpf:PasswordBoxAssist.IsPasswordRevealed), Converter={StaticResource BooleanToVisibilityConverter}}"/> |
599 | | - <ToggleButton |
600 | | - x:Name="RevealPasswordButton" |
601 | | - Grid.Column="1" |
602 | | - IsChecked="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(wpf:PasswordBoxAssist.IsPasswordRevealed), Mode=TwoWay}" |
603 | | - Style="{StaticResource MaterialDesignRawToggleButton}"> |
604 | | - <wpf:PackIcon |
605 | | - x:Name="RevealPasswordIcon" |
606 | | - Foreground="{Binding ElementName=PART_ClearButton, Path=Foreground}" |
607 | | - HorizontalAlignment="Right" /> |
608 | | - </ToggleButton> |
609 | 596 | </Grid> |
610 | 597 |
|
611 | 598 | <wpf:SmartHint |
|
635 | 622 | Opacity="{TemplateBinding wpf:HintAssist.HintOpacity}" |
636 | 623 | Text="{TemplateBinding wpf:TextFieldAssist.SuffixText}" /> |
637 | 624 | </Grid> |
| 625 | + <ToggleButton |
| 626 | + x:Name="RevealPasswordButton" |
| 627 | + Grid.Column="1" |
| 628 | + Height="Auto" |
| 629 | + Padding="2,0,0,0" |
| 630 | + IsChecked="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(wpf:PasswordBoxAssist.IsPasswordRevealed), Mode=TwoWay}" |
| 631 | + Style="{StaticResource MaterialDesignRawToggleButton}"> |
| 632 | + <wpf:PackIcon |
| 633 | + x:Name="RevealPasswordIcon" |
| 634 | + Foreground="{Binding ElementName=PART_ClearButton, Path=Foreground}" |
| 635 | + HorizontalAlignment="Right" /> |
| 636 | + </ToggleButton> |
638 | 637 | <Button |
639 | 638 | x:Name="PART_ClearButton" |
640 | | - Grid.Column="1" |
| 639 | + Grid.Column="2" |
641 | 640 | Height="Auto" |
642 | 641 | Padding="2,0,0,0" |
643 | 642 | Command="{x:Static internal:ClearText.ClearCommand}" |
|
769 | 768 | </Setter.Value> |
770 | 769 | </Setter> |
771 | 770 | </MultiTrigger> |
772 | | - <Trigger Property="wpf:HintAssist.IsFloating" Value="True"> |
773 | | - <Setter TargetName="RevealPasswordButton" Property="Margin" Value="0 -12 0 0" /> |
774 | | - </Trigger> |
775 | 771 | <Trigger Property="wpf:TextFieldAssist.HasFilledTextField" Value="True"> |
776 | 772 | <Setter Property="Padding" Value="16 8 12 8" /> |
777 | 773 | <Setter Property="Background" Value="{DynamicResource MaterialDesignTextFieldBoxBackground}" /> |
|
800 | 796 | </Setter> |
801 | 797 | <Setter TargetName="HelperTextWrapper" Property="Margin" Value="16 0 0 0" /> |
802 | 798 | <Setter TargetName="RevealPasswordTextBox" Property="Margin" Value="2 0 0 0"></Setter> |
803 | | - <Setter TargetName="RevealPasswordButton" Property="Margin" Value="0" /> |
804 | 799 | </Trigger> |
805 | 800 | <MultiTrigger> |
806 | 801 | <MultiTrigger.Conditions> |
|
0 commit comments