private void OnItemActivated(object sender, ItemActivatedArgs args)
 {
     if (_options.SelectedItem.Text.StartsWith("Search"))
     {
         HideAll();
         _search.Visible      = true;
         _searchEntry.Visible = true;
         _searchEntry.Focus();
     }
     return;
 }
 private void OnItemActivated(object sender, ItemActivatedArgs args)
 {
     if (_options.SelectedItem.Text.StartsWith("URL"))
     {
         HideAll();
         _url.Visible      = true;
         _urlEntry.Visible = true;
         _urlEntry.Focus();
     }
     else if (_options.SelectedItem.Text.StartsWith("Password"))
     {
         HideAll();
         _password.Visible      = true;
         _passwordEntry.Visible = true;
         _passwordEntry.Focus();
     }
     return;
 }
Пример #3
0
        /**
         * Function: ShowEditor
         *
         * Shows the editor.
         *
         * Author: wellinthatcase
         *
         * Date: 12/25/2020
         */

        private void ShowEditor()
        {
            HideMDView();
            TextEntry.Visibility = Visibility.Visible;
            TextEntry.Focus();
        }
Пример #4
0
 public override void Focus()
 {
     TextEntry.Focus();
 }
Пример #5
0
 private void _searchButton_Click(object sender, EventArgs e)
 {
     HideAll();
     _searchEntry.Visible = true;
     _searchEntry.Focus();
 }