Кнопка показать пароль работает неправильно

This commit is contained in:
Vlad Torop 2025-03-13 14:47:44 +03:00
parent 9458a1c3ea
commit 9436ddca06
6 changed files with 34 additions and 0 deletions

View File

@ -123,8 +123,10 @@
IsReadOnly="False"
TextColor="#6A6A6A" />
<Button
x:Name="btnPassOpen"
Grid.Column="1"
BackgroundColor="#f7f7f9"
Clicked="btnPassOpen_Clicked"
FontSize="16"
HeightRequest="40"
Text="◉"

View File

@ -14,6 +14,11 @@
await Navigation.PushAsync(new NewPage1());
}
private async void btnPassOpen_Clicked(object sender, EventArgs e)
{
await Navigation.PushAsync(new NewPage2());
}
//private void OnCounterClicked(object sender, EventArgs e)
//{
// count++;

View File

@ -66,6 +66,9 @@
<MauiXaml Update="NewPage1.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="NewPage2.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
</ItemGroup>
</Project>

View File

@ -11,6 +11,9 @@
<MauiXaml Update="NewPage1.xaml">
<SubType>Designer</SubType>
</MauiXaml>
<MauiXaml Update="NewPage2.xaml">
<SubType>Designer</SubType>
</MauiXaml>
</ItemGroup>
<ItemGroup>
<None Update="App.xaml">

12
NewPage2.xaml Normal file
View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MobailApp.NewPage2"
Title="NewPage2">
<VerticalStackLayout>
<Label
Text="Welcome to .NET MAUI!"
VerticalOptions="Center"
HorizontalOptions="Center" />
</VerticalStackLayout>
</ContentPage>

9
NewPage2.xaml.cs Normal file
View File

@ -0,0 +1,9 @@
namespace MobailApp;
public partial class NewPage2 : ContentPage
{
public NewPage2()
{
InitializeComponent();
}
}