Commit cb77263
New feature - PasswordBox styles with "reveal password" functionality (#2828)
* Initial PasswordBox "revealed" styles
There are still issues with the positioning of the floating hint when password is revealed but empty; the hint should float up, but it does not.
* Fixed alignment and initial wiring up
Floating hint still misplaced when password is empty and revealed
* Showcasing style in sample app + alignment of reveal button
Reveal button aligns with the "clear text" button for consistency. Although I think the "clear text" button is floating a little too high in 2 of the styles (but that is the same for the normal PasswordBox and TextBox styles)
* Showcase that password can still be set from XAML
* Change PasswordChanged event handler to weak event pattern
Avoid leaking memory by replacing the regular event handler with a weak event handler.
* Updated showcasing in the demo tool with a bit more stuff
* Fixed CA warning
* Added UI test for 3-way binding
* [Icon update detected by Github Action]. Auto generated pull request. (#2830)
Co-authored-by: Material Design Service Account <[email protected]>
* Cursor fix (#2832)
Respects a cursor set from outside, otherwise falls back to the desired defaults
* Fixed embedded dialog host style (#2826) (#2829)
Using materialDesign:TransitionAssist.DisableTransitions="true" duration of animation for content cover opacity should be set to 0 to skip animations at all on close dialog host
* Fix for 2596 - Align left margin for error message on outlined TextBox with helper text left margin (#2820)
* Fix left margin for error message on outlined TextBox
The error message and helper text should have the same Margin.Left value for the outlined TextBox.
* Adjusted error text left margin for filled text fields
ComboBoxes, DatePicker and TimePicker all rely on the fields internally, and thus inherit these changes.
* Added UI test for the filled style as well
* Retain original bottom margin
I want to make as few changes as possible to the original style (margin)
* Let DataGridCell handle mouse events itself when already editing (#2821)
* Refactoring DataGridAssist input handling (#2824)
* Refactoring DataGridAssist mouse handling
Rather than handling the tunneling event and "pre-processing", it now handles the (already handled - by the cell) bubbling event to perform additional actions.
* Added template column example
Fixed issue where it would not switch to edit on click
Co-authored-by: Kevin Bost <[email protected]>
* Initial PasswordBox "revealed" styles
There are still issues with the positioning of the floating hint when password is revealed but empty; the hint should float up, but it does not.
* Fixed alignment and initial wiring up
Floating hint still misplaced when password is empty and revealed
* Showcasing style in sample app + alignment of reveal button
Reveal button aligns with the "clear text" button for consistency. Although I think the "clear text" button is floating a little too high in 2 of the styles (but that is the same for the normal PasswordBox and TextBox styles)
* Showcase that password can still be set from XAML
* Change PasswordChanged event handler to weak event pattern
Avoid leaking memory by replacing the regular event handler with a weak event handler.
* Updated showcasing in the demo tool with a bit more stuff
* Fixed CA warning
* Added UI test for 3-way binding
* Resolving merge conflicts
* Resolving merge conflicts
* Fixing hint proxy issues with password box
* Moved samples and added SMTX wrapper
Also fixed a bug regarding the opacity of the PART_ClearButton which was not consistent across the styles.
* Apply cursor fix
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Material Design Service Account <[email protected]>
Co-authored-by: Andrey Nasonov <[email protected]>
Co-authored-by: Kevin Bost <[email protected]>1 parent 13b2483 commit cb77263
File tree
13 files changed
+982
-299
lines changed- MainDemo.Wpf
- Domain
- MaterialDesignThemes.UITests/WPF/PasswordBoxes
- MaterialDesignThemes.Wpf
- Converters
- Themes
13 files changed
+982
-299
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
| 1 | + | |
5 | 2 | | |
6 | | - | |
| 3 | + | |
7 | 4 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 5 | + | |
| 6 | + | |
12 | 7 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
17 | 12 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
25 | 20 | | |
26 | | - | |
| 21 | + | |
27 | 22 | | |
28 | | - | |
| 23 | + | |
29 | 24 | | |
30 | | - | |
| 25 | + | |
31 | 26 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
37 | 32 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
43 | 38 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
49 | 44 | | |
50 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
51 | 49 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| 50 | + | |
59 | 51 | | |
| 52 | + | |
| 53 | + | |
60 | 54 | | |
61 | 55 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | | - | |
10 | | - | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
39 | 53 | | |
40 | 54 | | |
41 | 55 | | |
42 | 56 | | |
43 | | - | |
| 57 | + | |
44 | 58 | | |
45 | 59 | | |
46 | 60 | | |
47 | | - | |
| 61 | + | |
48 | 62 | | |
49 | | - | |
| 63 | + | |
50 | 64 | | |
51 | 65 | | |
52 | 66 | | |
53 | 67 | | |
54 | | - | |
| 68 | + | |
55 | 69 | | |
56 | 70 | | |
57 | 71 | | |
58 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
59 | 82 | | |
60 | 83 | | |
61 | 84 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
426 | | - | |
427 | | - | |
428 | | - | |
| 426 | + | |
429 | 427 | | |
430 | 428 | | |
431 | 429 | | |
| |||
570 | 568 | | |
571 | 569 | | |
572 | 570 | | |
573 | | - | |
574 | | - | |
575 | | - | |
| 571 | + | |
576 | 572 | | |
577 | 573 | | |
578 | 574 | | |
579 | 575 | | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
580 | 686 | | |
581 | 687 | | |
582 | 688 | | |
| |||
0 commit comments