private void OnBrowse(object sender, RoutedEventArgs e) { var dialog = new OpenFileDialog { CheckFileExists = true, Multiselect = false, Filter = "Final Fantasy VIII Executable|ff8_en.exe;ffviii.exe", Title = "Select game location" }; if (dialog.ShowDialog() == true) { GameLocation.Text = dialog.FileName; GameLocation.GetBindingExpression(TextBox.TextProperty).UpdateSource(); } }