I suspect that the QnA forums do not allow you to write XAML in the post. Can someone from Microsoft please confirm this? I removed the XAML and was able to post my question to the right forum.
I'm unable to post any questions.
How do I ask a question on here?
6 answers
Sort by: Newest
-
-
Abhijit Shrikhande 317 Reputation points
2021-11-23T15:38:14.357+00:00 I suspect that the QnA forums do not allow you to write XAML in the post. Can someone from Microsoft please confirm this? I removed the XAML and was able to post my question to the right forum.
-
Abhijit Shrikhande 317 Reputation points
2021-11-23T15:36:00.773+00:00 this is the question I wanted to post to the XAMARIN forums.
I have created a simple xamarin form that depicts the login flow in an application. One of the features in the application is a show/hide password icon. When I run the project, I notice that the breakpoint does get hit, but there is no effect on the application.
The complete project (2 Xamarin pages) has been uploaded to github
https://github.com/abhidotnet/ShowHidePass.git
The C# code in the loginviewmodel isusing System.Windows.Input; using ShowHidePass.Views; using System; using System.Collections.Generic; using System.Text; using Xamarin.Forms; using Android.Content.Res; namespace ShowHidePass.ViewModels { public class LoginViewModel : BaseViewModel { public string UserName { get; set; } public string Password { get; set; } public bool HidePassword { get; set; } public string EyeIcon { get { return HidePassword ? "eye.png" : "eyehidden.png"; } set { EyeIcon = value; OnPropertyChanged(nameof(EyeIcon)); } } public ICommand ShowPasswordCommand => new Command(HidePasswordChange); public Command LoginCommand { get; } public LoginViewModel() { HidePassword = true; LoginCommand = new Command(OnLoginClicked); } private void HidePasswordChange() { HidePassword = !HidePassword; } private async void OnLoginClicked(object obj) { // Prefixing with `//` switches to a different navigation stack instead of pushing to the active one await Application.Current.MainPage.Navigation.PushAsync(new NavigationPage(new AboutPage())); } } }
-
Abhijit Shrikhande 317 Reputation points
2021-11-23T15:36:00.553+00:00 this is the question I wanted to post to the XAMARIN forums.
I have created a simple xamarin form that depicts the login flow in an application. One of the features in the application is a show/hide password icon. When I run the project, I notice that the breakpoint does get hit, but there is no effect on the application.
The complete project (2 Xamarin pages) has been uploaded to github
https://github.com/abhidotnet/ShowHidePass.git
The C# code in the loginviewmodel isusing System.Windows.Input; using ShowHidePass.Views; using System; using System.Collections.Generic; using System.Text; using Xamarin.Forms; using Android.Content.Res; namespace ShowHidePass.ViewModels { public class LoginViewModel : BaseViewModel { public string UserName { get; set; } public string Password { get; set; } public bool HidePassword { get; set; } public string EyeIcon { get { return HidePassword ? "eye.png" : "eyehidden.png"; } set { EyeIcon = value; OnPropertyChanged(nameof(EyeIcon)); } } public ICommand ShowPasswordCommand => new Command(HidePasswordChange); public Command LoginCommand { get; } public LoginViewModel() { HidePassword = true; LoginCommand = new Command(OnLoginClicked); } private void HidePasswordChange() { HidePassword = !HidePassword; } private async void OnLoginClicked(object obj) { // Prefixing with `//` switches to a different navigation stack instead of pushing to the active one await Application.Current.MainPage.Navigation.PushAsync(new NavigationPage(new AboutPage())); } } }
-
Abhijit Shrikhande 317 Reputation points
2021-11-23T15:36:00.31+00:00 this is the question I wanted to post to the XAMARIN forums.
I have created a simple xamarin form that depicts the login flow in an application. One of the features in the application is a show/hide password icon. When I run the project, I notice that the breakpoint does get hit, but there is no effect on the application.
The complete project (2 Xamarin pages) has been uploaded to github
https://github.com/abhidotnet/ShowHidePass.git
The C# code in the loginviewmodel isusing System.Windows.Input; using ShowHidePass.Views; using System; using System.Collections.Generic; using System.Text; using Xamarin.Forms; using Android.Content.Res; namespace ShowHidePass.ViewModels { public class LoginViewModel : BaseViewModel { public string UserName { get; set; } public string Password { get; set; } public bool HidePassword { get; set; } public string EyeIcon { get { return HidePassword ? "eye.png" : "eyehidden.png"; } set { EyeIcon = value; OnPropertyChanged(nameof(EyeIcon)); } } public ICommand ShowPasswordCommand => new Command(HidePasswordChange); public Command LoginCommand { get; } public LoginViewModel() { HidePassword = true; LoginCommand = new Command(OnLoginClicked); } private void HidePasswordChange() { HidePassword = !HidePassword; } private async void OnLoginClicked(object obj) { // Prefixing with `//` switches to a different navigation stack instead of pushing to the active one await Application.Current.MainPage.Navigation.PushAsync(new NavigationPage(new AboutPage())); } } }