I would use a RelayCommand and ICommand combo to bind to the XAML. Put the below into your ViewModel and don't forget to set the DataContext!
// Execute method here
private void LoadVersionControl(object param) {
// do stuff here (if you are binding to same view Model for your MainWindow)
//MainWindow.TextBoxInput.Visibility = Visibility.Visible
}
// Controls conditions to allow command execution
private bool LoadVersionControlCanExecute(object param) { return true; }
// Relay Command for method
public RelayCommand _LoadVersionControl;
// Property for binding to XAML
public ICommand LoadVersionControlCommand {
get {
if(_LoadVersionControl == null) {
_LoadVersionControl = new RelayCommand(LoadVersionControl, LoadVersionControlCanExecute);
}
return _LoadVersionControlCommand;
}
}