Archive | June, 2017

Observing Objects for Changes

When waiting for changes in the MVVM pattern, there are many ways to implement the INotifyPropertyChanged interface on your own objects. For example, each of the next approaches has benefits and drawbacks: Manually implement the interface. This can be good for small projects, because you will have no dependencies on other libraries. On the other […]

Continue Reading 0

Creating Branches with Commands

In the previous article, Creating Composite Commands, we have seen a command composition pattern that is like a sequence. In this article, we are going to explore one resembling to branching. With the combination of the two, complex workflows can be described as reactions to user initiated actions. CanExecute The CanExecute method of this command […]

Continue Reading 0

Creating Composite Commands

In the previous week’s article, Why Should You use Commands in WPF Applications, we explored the benefits of using commands in the WPF applications. Now that we’ve seen how useful can this be, here is an interesting trick. You can think of a command as a function that is changing or processing an object in […]

Continue Reading 0

Powered by WordPress. Designed by WooThemes