Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
        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);
            };
        }