Skip to main content.

Use Design Patterns to Simplify the Relationship Between Menus and Form Elements in .NET

While reading the interesting article about Commands in WPF, I found the following also very interesting article from MSDN Magazine:

In Windows Forms applications, similar commands, such as those in a menu and their counterparts on a toolbar, are not automatically related. They don't fire the same event or run the same handler routine. Yet code that allows the same or similar user commands to fire the same code simplifies development.

This article describes the principles of command management and why it's important to have functional commands that are not exclusive to any one UI element. In order to provide an MFC-like command management infrastructure, a design pattern is developed and applied as a series of C# classes.

Read the full article

Comments

No comments yet

Add Comment

You must be logged in as a member to add comment to this blog