Monday, October 11, 2010

Windows Ribbon for WinForms v2.5 Released - Event handling reworked

Arik Poznanski's Blog - Windows Ribbon for WinForms v2.5 Released – New Events Mechanism

“The Windows Ribbon for WinForms is a managed wrapper around Windows Ribbon Framework, a free ribbon control that Microsoft provides in Windows 7 and Vista.
More details on this project can be found in the project site: windowsribbon.codeplex.com .

I’ve just released another update to the project.

Note: this release contains breaking changes, only take it if you are starting a new project, or you don’t mind the needed updates to your code.

Basically I’ve changed how events are exposed in the library, made it a little more .NET friendly.

The benefits of these changes are:

  • You now get the control which generated the event as the sender of the event.
    For example, this allows registering the same callback function to different buttons and have the ability to know which button raised the event.
  • You can now use the Windows Ribbon for WinForms library in languages that can work only with proper .NET event handlers. The first request for this feature was from someone who wanted to use it in Progress ABL… There is a world beyond C#, C++ and VB.NET…

image…”

The new event signatures are much more “.Net” like… I like that.

 

Related Past Post XRef:
Windows Ribbon for WinForms v2.1 – Now with Visual Basic samples and number of new series entries too
Windows 7 Ribbon for WinForms – Yes you can…

No comments: