private async void EditName_OnTapped(object sender, EventArgs e) { if (NameEntry.InputTransparent) { NameEntry.InputTransparent = false; await PenIcon.FadeTo(0, 100u); } NameEntry.Focus(); NameEntry.CursorPosition = NameEntry.Text.Length; }
public SettingsPage() { InitializeComponent(); this.SetBinding(IsDetailPageVisibleProperty, nameof(SettingsViewModel.ShowDetails), BindingMode.TwoWay); NameEntry.Unfocused += (sender, args) => { // if accessibility is enabled the namechange should be possible NameEntry.InputTransparent = !Accessibility.IsEnabled; PenIcon.FadeTo(1, 100u); }; }