//Constructor public MainViewModel() { DataModel = new Models.SocketWrapper(); buttonCommand = new SimpleCommand { ExecuteDelegate = x => startListening(), CanExecuteDelegate = y => true }; }