private async void Button_Click(object sender, RoutedEventArgs e) { if (string.IsNullOrEmpty(await vm.BindDevice(textBox.Text))) { (Window.Current.Content as Frame).Navigate(typeof(SignPage)); } }