private async void Button_NewOnClick(object sender, RoutedEventArgs e) { AssociationsStackPanel.Visibility = Visibility.Collapsed; ItemEditView.Visibility = Visibility.Visible; await Input.BlockNavigator.BlockNavigator.RefreshLayout(ListPanel); Input.BlockNavigator.BlockNavigator.SetFocus(TextBox_Exec, true); _selectedProfileAssociation = new ListItemData(); TextBox_Exec.Text = ""; TextBox_Window.Text = ""; }
private async void Button_EditOnClick(object sender, RoutedEventArgs e) { AssociationsStackPanel.Visibility = Visibility.Collapsed; ItemEditView.Visibility = Visibility.Visible; await Input.BlockNavigator.BlockNavigator.RefreshLayout(ListPanel); Input.BlockNavigator.BlockNavigator.SetFocus(TextBox_Exec, true); _selectedProfileAssociation = (sender as FrameworkElement).DataContext as ListItemData; TextBox_Exec.Text = _selectedProfileAssociation.Data.Executable; TextBox_Window.Text = _selectedProfileAssociation.Data.WindowTitle; }