Browse by Tags

All Tags » design patterns (RSS)
Implementing the ListCollectionView
The ListCollectionView is a WPF wrapper for an IList. When you add or remove something from the IList, the ListCollectionView must be notified of the change by calling its OnCollectionChanged method so it can sync with the IList. The problem is, OnCollectionChanged...

Posted by smash | with no comments

Filed under: , ,

The ViewController and XAML
About two nights ago, I learned how to use an external XAML in a WPF application. It was so simple. Just read the XAML, parse it, and then wire the elements to your code. Now if this is how we are supposed to code in WPF, then I might just as well stick...

Posted by smash | with no comments

Filed under: , , , ,

implementing undo and redo
for a command to be undone, we need to store it somewhere. to facilitate this, we need to create a class for every command and we also need to create a class that will process and then store these commands upon request. interface ICommand { void Execute...

Posted by smash | 9 comment(s)

Filed under: , ,