Кнопка показать пароль работает правильно
This commit is contained in:
parent
9436ddca06
commit
57bc4d0963
@ -118,6 +118,7 @@
|
||||
<ColumnDefinition Width="40" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Entry
|
||||
x:Name="etyPass"
|
||||
HeightRequest="48"
|
||||
IsPassword="True"
|
||||
IsReadOnly="False"
|
||||
|
@ -3,6 +3,7 @@
|
||||
public partial class MainPage : ContentPage
|
||||
{
|
||||
//int count = 0;
|
||||
bool Pass = false;
|
||||
|
||||
public MainPage()
|
||||
{
|
||||
@ -16,7 +17,20 @@
|
||||
|
||||
private async void btnPassOpen_Clicked(object sender, EventArgs e)
|
||||
{
|
||||
await Navigation.PushAsync(new NewPage2());
|
||||
if(Pass == false)
|
||||
{
|
||||
btnPassOpen.Text = "◎";
|
||||
etyPass.IsPassword = false;
|
||||
Pass = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
btnPassOpen.Text = "◉";
|
||||
etyPass.IsPassword = true;
|
||||
Pass = false;
|
||||
}
|
||||
|
||||
//await Navigation.PushAsync(new NewPage2());
|
||||
}
|
||||
|
||||
//private void OnCounterClicked(object sender, EventArgs e)
|
||||
|
Loading…
x
Reference in New Issue
Block a user