Skip to content

Commit

Permalink
NR Fix set searchBox Focus issue by adding an additional delay
Browse files Browse the repository at this point in the history
  • Loading branch information
jbe2277 committed Aug 26, 2017
1 parent b77280d commit 1d14cac
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System;
using System.ComponentModel;
using System.Composition;
using System.Threading.Tasks;
using Windows.System;
using Windows.UI.Core;
using Windows.UI.Text;
Expand Down Expand Up @@ -82,6 +83,7 @@ private async void ShowSearch()
searchButton.Visibility = Visibility.Collapsed;
searchBox.Visibility = Visibility.Visible;
await Dispatcher.RunIdleAsync(ha => { });
await Task.Delay(25);
searchBox.Focus(FocusState.Programmatic);
}

Expand Down

0 comments on commit 1d14cac

Please sign in to comment.