public OOBENetwork() { this.InitializeComponent(); OOBENetworkPageDispatcher = Window.Current.Dispatcher; NetworkInformation.NetworkStatusChanged += NetworkInformation_NetworkStatusChanged; NetworkControl.NetworkConnected += NetworkGrid_NetworkConnected; this.NavigationCacheMode = Windows.UI.Xaml.Navigation.NavigationCacheMode.Enabled; this.DataContext = LanguageManager.GetInstance(); this.Loaded += async(sender, e) => { await OOBENetworkPageDispatcher.RunAsync(CoreDispatcherPriority.Low, async() => { NetworkControl.SetupDirectConnection(); await NetworkControl.RefreshWifiListViewItemsAsync(true); }); }; }