Yogesh Jagota's Personal Blog
small c# code snippets and free code libraries

How to place all WPF commands and related events centrally in a static class

Friday, 25 July 2008 00:33 by Yogesh Jagota

Commands in WPF can be defined and maintained in a static class. The commands need to be bind with the window whose controls use them. To bind the commands, events CanExecute and Executed events need to defined in the window itself. But most of the times, people want all their commands and related CanExecute and Executed events in one single static class which makes it easier to maintain the program logic from one central place. The purpose of this article which I posted on codeproject is to tell you how to enable this facility.

Del.icio.usDigg It!DZone It!kick it on DotNetKicks.com
Tags:  
Categories:   C# | WPF
Actions:   E-mail | Permalink | Comments (1) | Comment RSSRSS comment feed

Comments

Add comment


 

biuquote
Loading