Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
db3f3ac
Initial PasswordBox "revealed" styles
nicolaihenriksen Aug 23, 2022
135cee0
Fixed alignment and initial wiring up
nicolaihenriksen Aug 23, 2022
f6e44e6
Showcasing style in sample app + alignment of reveal button
nicolaihenriksen Aug 23, 2022
66f1834
Showcase that password can still be set from XAML
nicolaihenriksen Aug 23, 2022
8d9c4f7
Change PasswordChanged event handler to weak event pattern
nicolaihenriksen Aug 24, 2022
22c0d31
Updated showcasing in the demo tool with a bit more stuff
nicolaihenriksen Aug 24, 2022
dd93d4a
Fixed CA warning
nicolaihenriksen Aug 24, 2022
9396459
Added UI test for 3-way binding
nicolaihenriksen Aug 29, 2022
df940a8
[Icon update detected by Github Action]. Auto generated pull request.…
github-actions[bot] Aug 30, 2022
8361fb8
Cursor fix (#2832)
nicolaihenriksen Aug 30, 2022
76eab1e
Fixed embedded dialog host style (#2826) (#2829)
Erapchu Aug 30, 2022
e6f81bf
Fix for 2596 - Align left margin for error message on outlined TextBo…
nicolaihenriksen Aug 30, 2022
6a08d55
Let DataGridCell handle mouse events itself when already editing (#2821)
nicolaihenriksen Aug 30, 2022
13b2483
Refactoring DataGridAssist input handling (#2824)
nicolaihenriksen Aug 30, 2022
63fed76
Initial PasswordBox "revealed" styles
nicolaihenriksen Aug 23, 2022
7798000
Fixed alignment and initial wiring up
nicolaihenriksen Aug 23, 2022
17aacdd
Showcasing style in sample app + alignment of reveal button
nicolaihenriksen Aug 23, 2022
1506b49
Showcase that password can still be set from XAML
nicolaihenriksen Aug 23, 2022
293f9cf
Change PasswordChanged event handler to weak event pattern
nicolaihenriksen Aug 24, 2022
a3c60ba
Updated showcasing in the demo tool with a bit more stuff
nicolaihenriksen Aug 24, 2022
438eae1
Fixed CA warning
nicolaihenriksen Aug 24, 2022
e0d208d
Added UI test for 3-way binding
nicolaihenriksen Aug 29, 2022
a7f23a4
Resolving merge conflicts
nicolaihenriksen Aug 30, 2022
cb8bbd1
Merge remote-tracking branch 'origin/featureRevealPasswordBox' into f…
nicolaihenriksen Aug 30, 2022
52c3c23
Resolving merge conflicts
nicolaihenriksen Aug 30, 2022
7b2c56e
Fixing hint proxy issues with password box
Keboo Aug 30, 2022
87070e3
Moved samples and added SMTX wrapper
nicolaihenriksen Aug 30, 2022
0f8187a
Apply cursor fix
nicolaihenriksen Aug 31, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updated showcasing in the demo tool with a bit more stuff
  • Loading branch information
nicolaihenriksen committed Aug 30, 2022
commit a3c60baa7848ffaadb3a4d946ad1c168cf02d4ee
15 changes: 6 additions & 9 deletions MainDemo.Wpf/Domain/FieldsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,16 @@ public string? Password2
set => SetProperty(ref _password2, value);
}

public FieldsTestObject TestObject => new() { Name = "Mr. Test" };

public string? Text1
{
get => _text1;
set => SetProperty(ref _text1, value);
}
public ICommand SetPassword1FromViewModelCommand { get; }
public ICommand SetPassword2FromViewModelCommand { get; }

public string? Text2
public FieldsViewModel()
{
get => _text2;
set => SetProperty(ref _text2, value);
SetPassword1FromViewModelCommand = new AnotherCommandImplementation(_ => Password1 = "Set from code-behind!");
SetPassword2FromViewModelCommand = new AnotherCommandImplementation(_ => Password2 = "Set from code-behind!");
}
public FieldsTestObject TestObject => new() { Name = "Mr. Test" };
}

public class FieldsTestObject : ViewModelBase
Expand Down
10 changes: 7 additions & 3 deletions MainDemo.Wpf/Fields.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="30" />
<RowDefinition Height="100" />
<RowDefinition Height="70" />
<RowDefinition Height="80" />
</Grid.RowDefinitions>

<TextBlock Grid.Column="0" Grid.Row="0" Style="{StaticResource MaterialDesignBody2TextBlock}" VerticalAlignment="Top" Text="MaterialDesignRevealPasswordBox" />
Expand All @@ -67,14 +68,14 @@
materialDesign:PasswordBoxAssist.Password="{Binding Password1, Mode=TwoWay}"
materialDesign:HintAssist.Hint="Password"
materialDesign:TextFieldAssist.HasClearButton="True"
materialDesign:HintAssist.HelperText="Bound password"/>
materialDesign:HintAssist.HelperText="Bound to Password1"/>
<PasswordBox
Grid.Column="2" Grid.Row="1" VerticalAlignment="Top"
Style="{StaticResource MaterialDesignFloatingHintRevealPasswordBox}"
materialDesign:PasswordBoxAssist.Password="{Binding Password2, Mode=TwoWay}"
materialDesign:HintAssist.Hint="Password"
materialDesign:TextFieldAssist.HasClearButton="True"
materialDesign:HintAssist.HelperText="Bound password"/>
materialDesign:HintAssist.HelperText="Bound to Password2"/>
<PasswordBox
Grid.Column="4" Grid.Row="1" VerticalAlignment="Top"
Style="{StaticResource MaterialDesignFilledRevealPasswordBox}"
Expand All @@ -88,6 +89,9 @@
materialDesign:HintAssist.Hint="Password"
materialDesign:TextFieldAssist.HasClearButton="True"
materialDesign:HintAssist.HelperText="Not bound password"/>

<Button Grid.Column="0" Grid.Row="2" Command="{Binding SetPassword1FromViewModelCommand}" Content="Set Password1 from VM" VerticalAlignment="Top" />
<Button Grid.Column="2" Grid.Row="2" Command="{Binding SetPassword2FromViewModelCommand}" Content="Set Password2 from VM" VerticalAlignment="Top" />
</Grid>

<Grid VerticalAlignment="Top">
Expand Down