Uncategorized

Add on to Mike Taulty’s XAML: ViewModels, ICommands in Dictionaries

I was reading about Mike’s implementation of CommandableViewModelBase class to avoid repetitive boilerplate code we have to write to use Commands in our ViewModel class. I slightly modified the class to support commands with parameter and optional canexecute param(if needed or it is set to null by default and the command is always active) Please… Continue reading Add on to Mike Taulty’s XAML: ViewModels, ICommands in Dictionaries

Windows 8.1 · Windows Phone 8.1

ViewModelBase and UI thread blocking IsBusy Property issue

When ever you have a ViewModel derived from your ViewModelBase class and try to set IsBusy property inside asynchronous method ( invoked from any event handler), it will block the UI thread and the code execution will stop. In the following example, the code will stop executing after this line this.IsBusy = true (in my… Continue reading ViewModelBase and UI thread blocking IsBusy Property issue