コード例 #1
0
 private void OnItemActivated(object sender, ItemActivatedArgs args)
 {
     if (_options.SelectedItem.Text.StartsWith("Search"))
     {
         HideAll();
         _search.Visible      = true;
         _searchEntry.Visible = true;
         _searchEntry.Focus();
     }
     return;
 }
コード例 #2
0
 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();
 }