Fix null reference exception in GetCanExecute()
General refactoring of sample
Basic command binding implemented.