Esempio n. 1
0
 /// <summary>
 /// Goes to the URL bar after the keyboard shortcut is given
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void EditURLBarCommand_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     FolderPath.CaretIndex = FolderPath.Text.Length; // Moves the cursor to the end
     FolderPath.Focus();
 }
Esempio n. 2
0
 /// <summary>
 /// An event that handles the control getting focus
 /// </summary>
 /// <param name="sender">The event sender</param>
 /// <param name="e">An unused event argument</param>
 void FolderPathEntry_GotFocus(object sender, EventArgs e)
 {
     try { FolderPath.Focus(); }
     catch { }
 }