-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from DevEddy/develop
Develop into main
- Loading branch information
Showing
13 changed files
with
2,316 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -403,3 +403,4 @@ obj/ | |
/packages/ | ||
riderModule.iml | ||
/_ReSharper.Caches/ | ||
/.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,10 @@ public partial class MainPageViewModel : BasePageViewModel | |
public MainPageViewModel() | ||
{ | ||
AddValidations(); | ||
|
||
Email.Value = "[email protected]"; | ||
} | ||
|
||
private bool IsInputValid() => IsValid; | ||
|
||
[RelayCommand(CanExecute = nameof(IsInputValid))] | ||
|
@@ -53,13 +56,11 @@ private void AddValidations() | |
|
||
Email.OnValidated = _ => | ||
{ | ||
Password.Validate(false); | ||
CheckValidation(); | ||
}; | ||
|
||
Password.OnValidated = _ => | ||
{ | ||
Email.Validate(false); | ||
CheckValidation(); | ||
}; | ||
} | ||
|
18 changes: 18 additions & 0 deletions
18
src/Resolved.It.Maui.Controls/Converters/BoolToVisibilityGlyphConverter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
using System.Globalization; | ||
using Microsoft.Maui.Controls; | ||
|
||
namespace Resolved.It.Maui.Controls.Converters; | ||
|
||
internal class BoolToVisibilityGlyphConverter : IValueConverter | ||
{ | ||
public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture) | ||
{ | ||
return value is true ? Core.Icons.Material.Visibility : Core.Icons.Material.Visibility_off; | ||
} | ||
|
||
public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture) | ||
{ | ||
return value?.ToString() == Core.Icons.Material.Visibility; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.